1.3 KiB
1.3 KiB
How to update the Linux-libre Kernel ebuild for a new version
- Check for new stable version of
gentoo-kernel
on packages.gentoo.org. - If so, version bump
libre-kernel
ebuild to match newgentoo-kernel
version. - Check the
gentoo-kernel
ebuild for changes to the Gentoo config and patches versions. - If the Gentoo patchset version has changed:
- Make sure the patch version offset thingy matches gentoo-kernel.
- Make sure config version is the same.
- Make sure the config hash is the same.
- Make sure ebuild applies config changes with
ebuild libre-kernel-X.Y.Z.ebuild clean prepare
.
- Run
pkgdev manifest
to have portage download the libre kernel files and update the manifest. - Attempt to build the kernel using
ebuild libre-kernel-X.Y.Z.ebuild clean merge
. You might need to usesudo
ordoas
for this. - Update
virtual/dist-kernel
package to new version, by copying the proper dist-kernel ebuild from the gentoo repo, and addingsys-kernel/libre-kernel
to its list of possible deps. - Make sure
virtual/linux-sources
is up to date. This package rarely changes, but updating it follows the same procedure asvirtual/dist-kernel
.
If the build succeeds, the new ebuilds can be pushed to the repository.