projectmoon-overlay/docs/Updating-Kernel-Ebuild.md

27 lines
1.3 KiB
Markdown
Raw Normal View History

2023-03-05 09:03:33 +00:00
How to update the Linux-libre Kernel ebuild for a new version
---
1. Check for new stable version of `gentoo-kernel` on packages.gentoo.org.
2. If so, version bump `libre-kernel` ebuild to match new
`gentoo-kernel` version.
3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and
patches versions.
4. If the Gentoo patchset version has changed:
2023-05-31 17:54:08 +00:00
1. Make sure the patch version offset thingy matches gentoo-kernel.
2. Make sure config version is the same.
3. Make sure the config hash is the same.
4. Make sure ebuild applies config changes with `ebuild
2023-03-05 09:03:33 +00:00
libre-kernel-X.Y.Z.ebuild clean prepare`.
2023-05-31 17:54:08 +00:00
5. Run `pkgdev manifest` to have portage download the libre kernel files
and update the manifest.
2023-03-05 09:03:33 +00:00
5. Attempt to build the kernel using `ebuild libre-kernel-X.Y.Z.ebuild
clean merge`. You might need to use `sudo` or `doas` for this.
2023-05-31 17:54:08 +00:00
6. Update `virtual/dist-kernel` package to new version, by copying the
proper dist-kernel ebuild from the gentoo repo, and adding
`sys-kernel/libre-kernel` to its list of possible deps.
7. Make sure `virtual/linux-sources` is up to date. This package rarely
changes, but updating it follows the same procedure as
`virtual/dist-kernel`.
2023-03-05 09:03:33 +00:00
2023-03-23 20:01:31 +00:00
If the build succeeds, the new ebuilds can be pushed to the repository.