-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2] package.rpm learns about provide and how to build empty RPMs
Summary: Use Antlir2-native funcitonality for producing an RPM as a package, then installing that RPM via a feature into a layer. This is (eventually) needed for producing kernel-devel RPMs, so add the ability to augment Provides in the RPM and produce truly empty RPM files. Test Plan: Tests updated (and they pass), diff used in a WIP diff (D46280710) and built RPM inspected as: [[email protected] ~/fbsource/fbcode (antlir2-wip3)]$ rpm -qilp --provides ../buck-out/v2/gen/fbcode/b7b9cdc2a40f3aaa/os_foundation/images/impl/v2/centos9/__kernel-devel-1.0-fb0.noarch--package__/image.rpm Name : kernel-devel Epoch : 0 Version : 1.0 Release : fb0 Architecture: noarch Install Date: (not installed) Group : Unspecified Size : 0 License : Facebook Internal Signature : (none) Source RPM : kernel-devel-1.0-fb0.src.rpm Build Date : Mon 05 Jun 2023 08:48:52 PDT Build Host : subvol-compile-55ed9e9d00bd22e6 Relocations : (not relocatable) Summary : kernel-devel Description : kernel-devel = 0:1.0-fb0 kernel-devel = 1.0 (contains no files) [[email protected] ~/fbsource/fbcode (antlir2-wip3)]$ Reviewed By: sergeyfd Differential Revision: D46448257 fbshipit-source-id: 22b3042e4d19e5f336972ca5e1973761d8a16f91
- Loading branch information
1 parent
a8c6eb5
commit 6409343
Showing
6 changed files
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
foo 0 bytes required by foobar | ||
foo-empty 0 bytes required by foo | ||
foobar 0 bytes required by foobarbaz | ||
foobarbaz 0 bytes |