-
Notifications
You must be signed in to change notification settings - Fork 81
Migrate (almost) all versioned coreos-overlay ebuilds away from git eclass #3612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Also use upstream's vendor tarball. Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Note that 9999 does not currently build. Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
It was pinned to an old commit. I will maintain the new Gentoo package. Signed-off-by: James Le Cuirot <[email protected]>
Signed-off-by: James Le Cuirot <[email protected]>
flatcar_workon creates a temporary PORTAGE_TMPDIR. It's probably a good idea for an SDK in general anyway. Signed-off-by: James Le Cuirot <[email protected]>
This was left over from the cros_workon migration. Signed-off-by: James Le Cuirot <[email protected]>
|
CI results http://jenkins.infra.kinvolk.io:8080/job/container/job/sdk/2439/cldsv/ disappeared, because > 1 week passed. It looks good, at least for rust-based projects, afterburn, update-ssh-keys, ue-rs. |
| inherit git-r3 | ||
| else | ||
| EGIT_COMMIT="ee644fc60a32af5fbc4e83c64fcc7ca0eadb9e3f" # flatcar-master | ||
| EGIT_VERSION="a1cb1f901971165827d68188e9f60752c0e33c10" # flatcar-master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EGIT_ seems a little misleading when not using git-r3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little, but it allows us to use the same variable if needing to reference the commit elsewhere, such as in coreos-cloudinit.
Migrate most versioned coreos-overlay ebuilds away from git
We want to have static tarballs for all our keyworded versioned ebuilds, just like Gentoo does, for better reproducibility and caching. This stops using git-r3.eclass for those ebuilds.
Note that I've used
EGIT_VERSIONto reference the commit we're fetching a tarball for. This variable is normally set by git-r3.eclass to the commit that was fetched. This allows us to use the same variable in version strings, if necessary. coreos-cloudinit has an example of this.Be aware that GitHub archive downloads are susceptible to change over time. However, myself and most other Gentoo developers use them all the time with practically no fallout because the mirrors hide the issue. That should be the case for us too. If the files do change, it's not the end of the world. Fixing that would be less work than creating our own tarballs.
app-containers/accelerated-container-image and sys-fs/overlaybd haven't been dealt with yet because they also download things during the actual build, which is hairy. One for later.
coreos-base/afterburn was a slightly special case. It was downloading all the crates using
SRC_URI, but now it uses upstream's vendor tarball. It still needs to download the hostname crate though due to a patch.app-emulation/open-vmdk was another special case. This was pinned to a 2-year-old commit even though there have been many releases since. I have added the package to Gentoo instead, and I will maintain it there.
I took the opportunity to also freshen up the ebuilds a little, so that they now almost entirely pass
pkgcheck scan.How to use
Build an SDK and an image.
Testing done
A Jenkins run for all platforms mostly passed. Azure kept failing the open-iscsi test on arm64 for some reason. qemu_uefi_secure on amd64 repeatedly blew up with scary KVM host errors! I doubt either are related.
I also manually tested building each package locally, both from the versioned and the live ebuilds.
changelog/directory (user-facing change, bug fix, security fix, update) -- N/A/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.