diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-31 06:31:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-31 06:31:03 +0000 |
commit | 2e36bcecf24a3f583ae8f27b71ba13b3cfd39778 (patch) | |
tree | f2362fa4c0f61f631c2b7a484fb90b8283618656 /sys-kernel | |
parent | 7d7cc3f0fa58454952dec67b110b41d503bca422 (diff) |
gentoo auto-resync : 31:12:2024 - 06:31:02
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/Manifest.gz | bin | 5074 -> 5073 bytes | |||
-rw-r--r-- | sys-kernel/genkernel/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch | 11 | ||||
-rw-r--r-- | sys-kernel/genkernel/genkernel-4.3.16-r3.ebuild | 291 | ||||
-rw-r--r-- | sys-kernel/genkernel/genkernel-9999.ebuild | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 7 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.68-r1.ebuild | 181 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 5 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.ebuild | 144 | ||||
-rw-r--r-- | sys-kernel/gentoo-sources/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-sources/gentoo-sources-6.6.68-r1.ebuild | 27 | ||||
-rw-r--r-- | sys-kernel/installkernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/installkernel/installkernel-50.ebuild | 240 |
13 files changed, 916 insertions, 2 deletions
diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz Binary files differindex 36f50ccb3dea..6acb36d7ff0d 100644 --- a/sys-kernel/Manifest.gz +++ b/sys-kernel/Manifest.gz diff --git a/sys-kernel/genkernel/Manifest b/sys-kernel/genkernel/Manifest index a4f99c99877b..08edd3b2c243 100644 --- a/sys-kernel/genkernel/Manifest +++ b/sys-kernel/genkernel/Manifest @@ -7,6 +7,7 @@ AUX genkernel-4.3.16-posix-shell.patch 1291 BLAKE2B fc75c84a6ba7a00a3afb44c4913b AUX genkernel-4.bash 2479 BLAKE2B e5504698ab49bb62623fcdfdd4a54b19ee6d88f96a682f08dc282e46ec26bd22d9c54bcdc9b2bdcc6a96295de1ab96351d35b304eb176f5d177c221cd8d82180 SHA512 6a5709a410c5c07b7a343ecc141aa72de73d3b4acd0a69c05c61c801835a59dd17d9a528f6b68f12ac00ff4b6e5954b03237472501383aa390eb1365dd69c281 AUX initramfs.mounts 816 BLAKE2B 4f36e51fef78435369d43647db853c7bfde217cc93002fc010900692f67171512366e6599f08c5f2093490713aa7715e903b7e06528e3f2c6d8468f506938ed5 SHA512 97e5f92d135cff3911a68c7f1afd0f781ec1c1b794cdc824d74f8c119104ecb40bd7180be8414dc72f3a5a811143d6b4bf443ac1d3ff7a71b1e88cbf7c179665 AUX lvm2-2.03.20-dm_lvm_rules_no_systemd.patch 673 BLAKE2B ac8eec01814bced1b172793207764536907a439b76d006c2e41486048edeecd6a780795a98f52584053923ae060de5b72df0cf9abf11052ba1b6a474d47cc83e SHA512 1a5dbbf3e2bb2bee4fa918a4553f0f99afd3606ddf05cfbaca5476faeb1ed727ab9aa2d2b3662e7c6e3c82b1b859e77f290e579320f158d1def8044804fb969c +AUX lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch 686 BLAKE2B 6b96b91b4b1a127889736e7d873b8e849f2fd35df8e919ba93a2f2479a105d596d4798ab45f6a6337c53db37dd380ea7cb0711a0868841067bfc879ca9d22b9c SHA512 948177eae0cd4facc31f1ce4c53af3859cae9d809fddfa0ca87f3def55232ab50bf7ed3143d00259ff6bfada883e9ceece8d230f116717426703ad386921a23d DIST LVM2.2.02.188.tgz 2421550 BLAKE2B bed90c8454cd4b20fdeec6dcbf5a9f97c9310671aea3b2252f8069cfa439fcb050f5ad95f928a7125a1734a4dc5ac985da99a4a570538e377a7205191a505476 SHA512 8c9db17c49dc8ebcab6c7f246ab85870a80658be811cf7f4d8f36abbebafa355b030bfc1e3bcbad73ccccb7fcd06d4a95ac547ca15d18d33715126da92703dca DIST LVM2.2.03.22.tgz 2755031 BLAKE2B 79bbea84bd82f111c1bb5de336e6a9f1368b2c9e43f075dccaa90c7746a364259ad278adf650379eca75f2803ed74e74dd372be2cca8518462182657f96a0033 SHA512 17cd24ceee8026481566824b688dafd03ec816201d5cb3549cb7fc8a36f4cdaa982faaef4dcd26debfe775dea5ffa2744798164314ea6dc99a84f8ccccfc33ff DIST bcache-tools-1.0.8_p20141204.tar.gz 22158 BLAKE2B dd36102c5668cab3072ea635a5a30128df6cd75b75e7f8bba17ad0a830746ff2f75a46b56d4211aeb4657453d3bbeb98b8b794c53ff724b3fbf0874068d70dc9 SHA512 53d6e764d6d42c4367b0bd98199cae3c18054d5707a7880af3a422f9db332b44941015eaed7e1cd170b3546307ed54a2f99558a68d98c76b7bb6234d29206b54 @@ -72,6 +73,7 @@ EBUILD genkernel-4.3.12.ebuild 9917 BLAKE2B 341f394ee4569e36d67518d39c0720d3bc31 EBUILD genkernel-4.3.14.ebuild 9996 BLAKE2B 18a0e82f3836f922485e8608c4fdbf65a5d058ca2463b51e4a0784931fda7a162155b49d41cb256da11cda94c63b153161a01e4e84f2dfb9e2c66c92fd82d58d SHA512 2da55f3e6f8ee02cc47e9fa0b9dd1bb32cb61009abcbce7fddd64913179946df532a140f42e15f43a8e3ce76674aaa41860a01d7776489715e88ee04a15d688e EBUILD genkernel-4.3.15.ebuild 10299 BLAKE2B 711cb46ed892bd7e5f50585c0eabdb047df13e85f9bf3dcc1bba3c701d072d33cf58fa6f30d151b31e5c73bcb3c58918c1d96c3d273dae8de96d0ed0292868df SHA512 e3315a3fbff290aa8f738243fa0d906caa5fbdf601abb13ec0af2dbd1d7fe58dba57a89c01f1cb3006a809bea86212ac867fa1ed10cad9d313a398b0c3ca3b9c EBUILD genkernel-4.3.16-r2.ebuild 10684 BLAKE2B daaef8b3b96af8d913c297526a45a075e4fa4ec89a1b10b042be3f75a064864506f3fe453c166d7e8a94303949a6afa62042a56be487f095ddf272fcac94f473 SHA512 d60214bc270759892377382b13be00565449b2f3ef2b8e6252426f0147a4986948141b2ffce0c81b6d044038a776debbaa2234fc347353fa093ab1ac1807eda0 +EBUILD genkernel-4.3.16-r3.ebuild 10691 BLAKE2B fd1302e3512431a76843bb5918b8c6c0eb3c47a4eb28ecc562b41f0ce7e71a9e537ff29a25bcc08d6fcde9bde74087b6eef4b17ec3683f4efe3208cf18174947 SHA512 11d08d086a052d96eb494400d5859238aec35086d34b3604787c690a0a91adf042e82a77a97f986c99e8327885ceb2207e067a0d18219e36f2b84a98620e8ad4 EBUILD genkernel-4.3.16.ebuild 10153 BLAKE2B 05ab76fa15d6a541ae4f9dbe2c7c7f1db70715b6dbfe3ea6cf11d16f1d03509257fd506e503b82226bf6638f673014a8eb63bf1bc1273dfb9e9263602b4dc9db SHA512 9c3c60ab142d80e928935150c8b922a10d8949c2ab0600f783e4fa5c980e928be774b0ed1e27c73c8fae6c28c45d837ecef312a7a8d4fa24a3307bc69c95818d -EBUILD genkernel-9999.ebuild 10567 BLAKE2B 3c293e7d5ddf12bc7760477609355e54c17502a43dd37157ca5f24c99052b322073998115527fd789cf6704604fdd85a0fd7fa4b57dc9e589fdb18562d8b8345 SHA512 d99a5446f0a5d42e4b5d6ef7a06858393501dca6141211618a4fe9fc921b02c5f53703f23ff6488a82d40f56b6d9018200167de848773ad01980db22f5f7a25d +EBUILD genkernel-9999.ebuild 10570 BLAKE2B ef93b5e0c5ca6f59e1ed15acde7f7893d85f148a431e00c6780da6ac13770e8335fff46ce5bc5b9deaeade31590dab3e0d942294a3f4e603c90bd0c2022e16e6 SHA512 66b33fb42fb1573c4539c3d6fe8973e5324b5a6937c496de22cac62ef10b8ec75a2accd4f16bbcac2f25f12cd0b8b430863080cf4f2460aa6743f96745066b2b MISC metadata.xml 480 BLAKE2B 8b1b1655cb13d866985a92755b0696bef00841a7626cb6cd10f39d7a7ad196c1ec2f5895f86e23fc3ee1345c48d7c659346d2bc7bb2a2bdaa9c997511f002fd8 SHA512 5030d4505b077faec4e2eb9cb2dcc47195a1864057bcb5f110314bab97b90b1bdcd3f293f76116a23dd0e694c7c8ee66ed46d39c9b7b0c506b22fe23e86febc4 diff --git a/sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch b/sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch new file mode 100644 index 000000000000..29c050bbd6ff --- /dev/null +++ b/sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch @@ -0,0 +1,11 @@ +--- a/udev/69-dm-lvm.rules.in ++++ b/udev/69-dm-lvm.rules.in +@@ -76,7 +76,7 @@ + # it's better suited to appearing in the journal. + + IMPORT{program}="(LVM_EXEC)/lvm pvscan --cache --listvg --checkcomplete --vgonline --autoactivation event --udevoutput --journal=output $env{DEVNAME}" +-ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(SYSTEMDRUN) --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} (LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}" ++ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(LVM_EXEC)/lvm vgchange -aay --nohints --noudevsync --autoactivation event $env{LVM_VG_NAME_COMPLETE}" + GOTO="lvm_end" + + LABEL="lvm_end" diff --git a/sys-kernel/genkernel/genkernel-4.3.16-r3.ebuild b/sys-kernel/genkernel/genkernel-4.3.16-r3.ebuild new file mode 100644 index 000000000000..0291eb16c00a --- /dev/null +++ b/sys-kernel/genkernel/genkernel-4.3.16-r3.ebuild @@ -0,0 +1,291 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# genkernel-9999 -> latest Git branch "master" +# genkernel-VERSION -> normal genkernel release + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit bash-completion-r1 python-single-r1 + +# Whenever you bump a GKPKG, check if you have to move +# or add new patches! +VERSION_BCACHE_TOOLS="1.1_p20230217" +# boost-1.84.0 needs dev-build/b2 packaged +VERSION_BOOST="1.79.0" +VERSION_BTRFS_PROGS="6.7.1" +VERSION_BUSYBOX="1.36.1" +VERSION_COREUTILS="9.4" +VERSION_CRYPTSETUP="2.6.1" +VERSION_DMRAID="1.0.0.rc16-3" +VERSION_DROPBEAR="2022.83" +VERSION_EUDEV="3.2.14" +VERSION_EXPAT="2.5.0" +VERSION_E2FSPROGS="1.47.0" +VERSION_FUSE="2.9.9" +# gnupg-2.x needs several new deps packaged +VERSION_GPG="1.4.23" +VERSION_HWIDS="20210613" +# open-iscsi-2.1.9 static build not working yet +VERSION_ISCSI="2.1.8" +# json-c-0.17 needs gkbuild ported to meson +VERSION_JSON_C="0.17" +VERSION_KMOD="31" +VERSION_LIBAIO="0.3.113" +VERSION_LIBGCRYPT="1.10.3" +VERSION_LIBGPGERROR="1.47" +VERSION_LIBXCRYPT="4.4.36" +VERSION_LVM="2.03.22" +VERSION_LZO="2.10" +VERSION_MDADM="4.2" +VERSION_POPT="1.19" +VERSION_STRACE="6.7" +VERSION_THIN_PROVISIONING_TOOLS="0.9.0" +# unionfs-fuse-3.4 needs fuse:3 +VERSION_UNIONFS_FUSE="2.0" +VERSION_USERSPACE_RCU="0.14.0" +VERSION_UTIL_LINUX="2.39.3" +VERSION_XFSPROGS="6.4.0" +VERSION_XZ="5.4.2" +VERSION_ZLIB="1.3.1" +VERSION_ZSTD="1.5.5" +VERSION_KEYUTILS="1.6.3" + +COMMON_URI=" + https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/snapshot/a5e3753516bd39c431def86c8dfec8a9cea1ddd4.tar.gz -> bcache-tools-${VERSION_BCACHE_TOOLS}.tar.gz + https://boostorg.jfrog.io/artifactory/main/release/${VERSION_BOOST}/source/boost_${VERSION_BOOST//./_}.tar.bz2 + https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${VERSION_BTRFS_PROGS}.tar.xz + https://www.busybox.net/downloads/busybox-${VERSION_BUSYBOX}.tar.bz2 + mirror://gnu/coreutils/coreutils-${VERSION_COREUTILS}.tar.xz + https://www.kernel.org/pub/linux/utils/cryptsetup/v$(ver_cut 1-2 ${VERSION_CRYPTSETUP})/cryptsetup-${VERSION_CRYPTSETUP}.tar.xz + https://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-${VERSION_DMRAID}.tar.bz2 + https://matt.ucc.asn.au/dropbear/releases/dropbear-${VERSION_DROPBEAR}.tar.bz2 + https://github.com/eudev-project/eudev/releases/download/v${VERSION_EUDEV}/eudev-${VERSION_EUDEV}.tar.gz + https://github.com/libexpat/libexpat/releases/download/R_${VERSION_EXPAT//\./_}/expat-${VERSION_EXPAT}.tar.xz + https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v${VERSION_E2FSPROGS}/e2fsprogs-${VERSION_E2FSPROGS}.tar.xz + https://github.com/libfuse/libfuse/releases/download/fuse-${VERSION_FUSE}/fuse-${VERSION_FUSE}.tar.gz + mirror://gnupg/gnupg/gnupg-${VERSION_GPG}.tar.bz2 + https://github.com/gentoo/hwids/archive/hwids-${VERSION_HWIDS}.tar.gz + https://github.com/open-iscsi/open-iscsi/archive/${VERSION_ISCSI}.tar.gz -> open-iscsi-${VERSION_ISCSI}.tar.gz + https://s3.amazonaws.com/json-c_releases/releases/json-c-${VERSION_JSON_C}.tar.gz + https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-${VERSION_KMOD}.tar.xz + https://releases.pagure.org/libaio/libaio-${VERSION_LIBAIO}.tar.gz + mirror://gnupg/libgcrypt/libgcrypt-${VERSION_LIBGCRYPT}.tar.bz2 + mirror://gnupg/libgpg-error/libgpg-error-${VERSION_LIBGPGERROR}.tar.bz2 + https://github.com/besser82/libxcrypt/releases/download/v${VERSION_LIBXCRYPT}/libxcrypt-${VERSION_LIBXCRYPT}.tar.xz + https://mirrors.kernel.org/sourceware/lvm2/LVM2.${VERSION_LVM}.tgz + https://www.oberhumer.com/opensource/lzo/download/lzo-${VERSION_LZO}.tar.gz + https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-${VERSION_MDADM}.tar.xz + http://ftp.rpm.org/popt/releases/popt-1.x/popt-${VERSION_POPT}.tar.gz + https://github.com/strace/strace/releases/download/v${VERSION_STRACE}/strace-${VERSION_STRACE}.tar.xz + https://github.com/jthornber/thin-provisioning-tools/archive/v${VERSION_THIN_PROVISIONING_TOOLS}.tar.gz -> thin-provisioning-tools-${VERSION_THIN_PROVISIONING_TOOLS}.tar.gz + https://github.com/rpodgorny/unionfs-fuse/archive/v${VERSION_UNIONFS_FUSE}.tar.gz -> unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.gz + https://lttng.org/files/urcu/userspace-rcu-${VERSION_USERSPACE_RCU}.tar.bz2 + https://www.kernel.org/pub/linux/utils/util-linux/v${VERSION_UTIL_LINUX:0:4}/util-linux-${VERSION_UTIL_LINUX}.tar.xz + https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-${VERSION_XFSPROGS}.tar.xz + https://tukaani.org/xz/xz-${VERSION_XZ}.tar.gz + https://zlib.net/zlib-${VERSION_ZLIB}.tar.gz + https://github.com/facebook/zstd/archive/v${VERSION_ZSTD}.tar.gz -> zstd-${VERSION_ZSTD}.tar.gz + https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-${VERSION_KEYUTILS}.tar.gz +" + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git" + inherit git-r3 + S="${WORKDIR}/${P}" + SRC_URI="${COMMON_URI}" +else + SRC_URI="https://dev.gentoo.org/~bkohler/dist/${P}.tar.xz + ${COMMON_URI}" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Gentoo automatic kernel building scripts" +HOMEPAGE="https://wiki.gentoo.org/wiki/Genkernel https://gitweb.gentoo.org/proj/genkernel.git/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="ibm +firmware systemd" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Note: +# We need sys-devel/* deps like autoconf or automake at _runtime_ +# because genkernel will usually build things like LVM2, cryptsetup, +# mdadm... during initramfs generation which will require these +# things. +DEPEND=" + app-text/asciidoc +" +RDEPEND="${PYTHON_DEPS} + app-alternatives/cpio + >=app-misc/pax-utils-1.2.2 + app-portage/elt-patches + app-portage/portage-utils + dev-util/gperf + sys-apps/sandbox + dev-build/autoconf + dev-build/autoconf-archive + dev-build/automake + app-alternatives/bc + app-alternatives/yacc + app-alternatives/lex + dev-build/libtool + virtual/pkgconfig + elibc_glibc? ( sys-libs/glibc[static-libs(+)] ) + firmware? ( sys-kernel/linux-firmware ) +" + +PATCHES=( + "${FILESDIR}"/genkernel-4.3.16-globbing-workaround.patch + "${FILESDIR}"/${PN}-4.3.16-musl.patch + "${FILESDIR}"/${PN}-4.3.16-posix-shell.patch +) + +src_unpack() { + if [[ ${PV} == 9999* ]]; then + git-r3_src_unpack + else + local gk_src_file + for gk_src_file in ${A} ; do + if [[ ${gk_src_file} == genkernel-* ]] ; then + unpack "${gk_src_file}" + fi + done + fi +} + +src_prepare() { + default + + if [[ ${PV} == 9999* ]] ; then + einfo "Updating version tag" + GK_V="$(git describe --tags | sed 's:^v::')-git" + sed "/^GK_V/s,=.*,='${GK_V}',g" -i "${S}"/genkernel + einfo "Producing ChangeLog from Git history..." + pushd "${S}/.git" >/dev/null || die + git log > "${S}"/ChangeLog || die + popd >/dev/null || die + fi + + # Export all the versions that may be used by genkernel build. + for v in $(set |awk -F= '/^VERSION_/{print $1}') ; do + export ${v} + done + + if use ibm ; then + cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die + else + cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die + fi + +} + +src_compile() { + emake PREFIX=/usr +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + dodoc AUTHORS ChangeLog README TODO + + python_fix_shebang "${ED}"/usr/share/genkernel/path_expander.py + + newbashcomp "${FILESDIR}"/genkernel-4.bash "${PN}" + insinto /etc + doins "${FILESDIR}"/initramfs.mounts + + pushd "${DISTDIR}" &>/dev/null || die + insinto /usr/share/genkernel/distfiles + doins ${A/${P}.tar.xz/} + popd &>/dev/null || die + + # Workaround for bug 944499, for now this patch will live in FILESDIR and is + # conditionally installed but we could add it to genkernel.git and conditionally + # remove it here instead. + if ! use systemd; then + insinto /usr/share/genkernel/patches/lvm/${VERSION_LVM}/ + doins "${FILESDIR}"/lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch + fi +} + +pkg_postinst() { + # Wiki is out of date + #echo + #elog 'Documentation is available in the genkernel manual page' + #elog 'as well as the following URL:' + #echo + #elog 'https://wiki.gentoo.org/wiki/Genkernel' + #echo + + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 4 ; then + # This is an upgrade which requires user review + + ewarn "" + ewarn "Genkernel v4.x is a new major release which touches" + ewarn "nearly everything. Be careful, read updated manpage" + ewarn "and pay special attention to program output regarding" + ewarn "changed kernel command-line parameters!" + + # Show this elog only once + break + fi + done + + if [[ $(find /boot -name 'kernel-genkernel-*' 2>/dev/null | wc -l) -gt 0 ]] ; then + ewarn '' + ewarn 'Default kernel filename was changed from "kernel-genkernel-<ARCH>-<KV>"' + ewarn 'to "vmlinuz-<KV>". Please be aware that due to lexical ordering the' + ewarn '*default* boot entry in your boot manager could still point to last kernel' + ewarn 'built with genkernel before that name change, resulting in booting old' + ewarn 'kernel when not paying attention on boot.' + fi + + # Show special warning for users depending on remote unlock capabilities + local gk_config="${EROOT}/etc/genkernel.conf" + if [[ -f "${gk_config}" ]] ; then + if grep -q -E "^SSH=[\"\']?yes" "${gk_config}" 2>/dev/null ; then + if ! grep -q dosshd /proc/cmdline 2>/dev/null ; then + ewarn "" + ewarn "IMPORTANT: SSH is currently enabled in your genkernel config" + ewarn "file (${gk_config}). However, 'dosshd' is missing from current" + ewarn "kernel command-line. You MUST add 'dosshd' to keep sshd enabled" + ewarn "in genkernel v4+ initramfs!" + fi + fi + + if grep -q -E "^CMD_CALLBACK=.*emerge.*@module-rebuild" "${gk_config}" 2>/dev/null ; then + elog "" + elog "Please remove 'emerge @module-rebuild' from genkernel config" + elog "file (${gk_config}) and make use of new MODULEREBUILD option" + elog "instead." + fi + fi + + local n_root_args=$(grep -o -- '\<root=' /proc/cmdline 2>/dev/null | wc -l) + if [[ ${n_root_args} -gt 1 ]] ; then + ewarn "WARNING: Multiple root arguments (root=) on kernel command-line detected!" + ewarn "If you are appending non-persistent device names to kernel command-line," + ewarn "next reboot could fail in case running system and initramfs do not agree" + ewarn "on detected root device name!" + fi + + if [[ -d /run ]] ; then + local permission_run_expected="drwxr-xr-x" + local permission_run=$(stat -c "%A" /run) + if [[ "${permission_run}" != "${permission_run_expected}" ]] ; then + ewarn "Found the following problematic permissions:" + ewarn "" + ewarn " ${permission_run} /run" + ewarn "" + ewarn "Expected:" + ewarn "" + ewarn " ${permission_run_expected} /run" + ewarn "" + ewarn "This is known to be causing problems for any UDEV-enabled service." + fi + fi +} diff --git a/sys-kernel/genkernel/genkernel-9999.ebuild b/sys-kernel/genkernel/genkernel-9999.ebuild index 7a4664595e87..fd10e8071694 100644 --- a/sys-kernel/genkernel/genkernel-9999.ebuild +++ b/sys-kernel/genkernel/genkernel-9999.ebuild @@ -204,7 +204,7 @@ src_install() { # remove it here instead. if ! use systemd; then insinto /usr/share/genkernel/patches/lvm/${VERSION_LVM}/ - doins "${FILESDIR}"/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch + doins "${FILESDIR}"/lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch fi } diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index fa6297d124ae..b7909bd13ece 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -12,6 +12,8 @@ DIST genpatches-6.6-75.base.tar.xz 4089936 BLAKE2B f88b0f84e3d73f87025389a3a66ed DIST genpatches-6.6-75.extras.tar.xz 4056 BLAKE2B 6e2e14f16a7ebc675e84b180a8f26f485aece3f22de1d27bef60b414deea8f3744cbd95536b58722d793aee320b505d5ca3c0af0b1e20f238b02c29a12abada9 SHA512 c8030df10b17675adf3c48931f04c59d1795598c955eef39c7b3dd4f36c1af1d79e8d7405004952cfe4922cf100aa95d2fe3d7c6f6e0d683276d5382bebce399 DIST genpatches-6.6-76.base.tar.xz 4119292 BLAKE2B 643510f5f01b8b7ac5c24098cd65b21ef02fd75b2682b371b00e8be48c6c335e7135569c58ad91ab6549e298b1dca15b83806143bf260a9e594feeffb2178fc5 SHA512 1345c21e33f3f0433691e03921c7b3d47bfdaad47376c06610170cf82214e3648cbbd2cb250ea4877d5c238f324f499b52e50dd2e5b51b4e336f2a1a5a431a1e DIST genpatches-6.6-76.extras.tar.xz 4056 BLAKE2B 51631e3f138ac1f5146bc8d70f3381ad64e8341336cb1d706b2b3f838c6b5e884a1c60745bebf73ea25ae7ec26ec049d76db7e260593b3e7a4795b98d4488734 SHA512 fdff2ce695891603f3b9bd6b3a44df526559f454edde20e5159c9e53d73fc9820eba1836ef81b22da9d3adf7906fda16e9b6e6a3df65bff56519c40dad56ccc5 +DIST genpatches-6.6-77.base.tar.xz 4120472 BLAKE2B 99c511e049d8b375eb54c8c00688e695d22629a758234fa47e11222b5ab2a448c22e2fc29bff59c95e1c39992e38a22286e791a9dab16b0e3acf59f1681c6adf SHA512 1626b4b76bfe3ae1c6c01d11909fb65fbec2e570d987268aefdcad5558aaf2a3a95f3f159b73e1eeef4d66abc5f42b965d3c9200224433b788fc1a3400a3b9bc +DIST genpatches-6.6-77.extras.tar.xz 4056 BLAKE2B 72ee0f92105f7e24d08e54614b5fa1514ee8ff75de5781474f56a3655665c5d3152771e3379bb431fb73ce19780620de72858cf64585109033c851be05efb0f0 SHA512 afd1947987efc0268727e6019910aff4f8860ab60707a32a289a454253519137dd7e8da92ea2743706b124ef873f854ff8ed6b3eac719523ca5ff94f466b261e DIST gentoo-kernel-5.10.232-1.amd64.gpkg.tar 63672320 BLAKE2B 43d75308443842d0dbc65d355c09ae0806c187c4ea3e9c87d5322a236081aefa6a1af8661ae1d6203fef60b574996b0dd53699bfe07eb67b08b58f1aa20c3995 SHA512 f5838299ec65113eeabd7e516375641857de9512e9b6bc4e85ecffffb91519baeea4b0eb2769d5e675740620e431fc9955d76fa04524c50f1c292518e8c42d33 DIST gentoo-kernel-5.10.232-1.arm64.gpkg.tar 56852480 BLAKE2B 6f628a7d0b7feb82c903e2814b2f02ceac867270356ffd3d06ad5bf03a55da340e089739fac83ef727fa03148a7adcef5f00e295a26f7f88ea46cdecb7183b94 SHA512 dc06388259a4d5878c7045eeece9393edbd0981538ae9b7208e3dd4aedc49d9b5f71178812765242cd0383145529af4a273de165c15c1d72f2e852a18620227c DIST gentoo-kernel-5.10.232-1.ppc64le.gpkg.tar 52828160 BLAKE2B 1a77533dc0bd3072311120b62246fe8ed2ee57c06354cdd1aa3657ef2aa21f3adaa780910a3f357804fedd6d65006bcb5ba29d5786d291f51acd1142c706118e SHA512 de8aa68bc5960b5dcca618641fdb570dbb77b83f4f02a28f0522f491af0a7d83795879d9b50a1a19c780ef6d4b941019d9cc945af31b8eac7219f5647ede6440 @@ -40,6 +42,10 @@ DIST gentoo-kernel-6.6.68-1.amd64.gpkg.tar 267837440 BLAKE2B 739f981f2d04c9ee5c7 DIST gentoo-kernel-6.6.68-1.arm64.gpkg.tar 242391040 BLAKE2B afa95daf6586db7aaca1f76c8db57590b6046edd3f130f4b5ff56d87b6f5e63a8487969f46e3c6caf03d655332e7f547a9c38cbf0d26f92d8901e2c243017d84 SHA512 1bcd6e1b868fff20f4c85658b683796573f8c33b1cddeb367456cb1f6ffa38cc1c03a025ae078031f3768ac6158029aa8971aced6345089b4070064b4ba0d7d9 DIST gentoo-kernel-6.6.68-1.ppc64le.gpkg.tar 64399360 BLAKE2B 89f8c4095d6348058c03675b905b1484ddb058e6f8329b9b06fb9c9e3082fb5f48f0d32d1618a3c591d1ac0f81cb135139314f9797a9b19d8d93f0ed30dbc8f0 SHA512 0fce07afd3d590d63e54cb2adac5ffbce6d7053c2339245ff85b8e1efa5008094cad896b946a8b39f49d9dc1a5346a60ceea23128170d1562ddc3a5c12d63560 DIST gentoo-kernel-6.6.68-1.x86.gpkg.tar 68546560 BLAKE2B 632080048137222a79feb436ba8d82e0ac94d8c2d9d5e60c44fc3e68e53ab1e42c1e6d3f8858688e9b72824eb76e24ff1f8b1d1b119c78678a9264819c29d07d SHA512 ee350fd348a4493200ce61567b8dca79bc4ddfca8292d794e7429c26620f08ac66f7fc06145becab5fb0d32415aba1b10f3c19d3046b024d1785b1cd62485346 +DIST gentoo-kernel-6.6.68-r1-1.amd64.gpkg.tar 267929600 BLAKE2B 0c528d6ce1ac12f1c0f18de8ab0d472f49c074135255a185c4a59c9549fa96dddefb2a72cf260e6990441066c84a8efd248bf0d87099a0aeb581e18a29b8713a SHA512 eb370c828792c50426a72b356ebac609f1f941fdded9063861a678efbed4d31cb022cdf9554439e99726e347adf49a90ac874ee0c7f08df731a6cc726bb75eb0 +DIST gentoo-kernel-6.6.68-r1-1.arm64.gpkg.tar 242442240 BLAKE2B 16b23d8610329efded5161e971373ea6d79235dd15f09f4f07b2b9f4bd6259762e13d379c861660813313c0f478ccf56e74b70a2003739108f3baa9c940c214e SHA512 5d657ef9cf777957566ee55e480b10e420dc0fb310594e3457a37c4736a9ff283ba7a1156aa07adf4193862eac4ed4c1739f10dd9ff61737618b49290d5b5d4c +DIST gentoo-kernel-6.6.68-r1-1.ppc64le.gpkg.tar 64389120 BLAKE2B 93e588eebbad6af84c947b6466397a17df1a0ff1d4d0bf98fe4ee777b87556e4994c8053ac8ae146898e7a0f909734797cb964d4dfeb7f2917e22e51908ece94 SHA512 19313998663719837d05c3a0140c0a93ca5ed9d134e7d324e7416fdbda00957954c817897750a71c1568f00bc8482c6f2d0f7555e528731553aa66726f998145 +DIST gentoo-kernel-6.6.68-r1-1.x86.gpkg.tar 68546560 BLAKE2B 52f703001f82e8ad0e4cc6b93ef6ee9e8869ec5addaf2901b41471a92c6764c2f7c3911542ad325f0803a4327860d90f8fdc2eb2f2bfa8e8a75b39e33fc9b8c5 SHA512 c3df574696f672c04e89478905fed5be470b8881090ab3b665a22a377ff4847da311d27190b6b4ad13cdd83d73f63a0907582c786c4280a9930cf3c03ceefa0e DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 @@ -51,5 +57,6 @@ EBUILD gentoo-kernel-bin-6.1.121.ebuild 3411 BLAKE2B 9243c250c96f33a719b8dc4f06a EBUILD gentoo-kernel-bin-6.1.122.ebuild 3415 BLAKE2B a055768b284fe252a8561a59800cf358d680f071fb13909e608232e14d4c1eb043d87500945c2e79ea7f1c05172c8cdafc547a9d005543bf6b7836f0a70f7ae4 SHA512 4decdcb1a99cd302054f110cb204dc34ba17516b0b3c8936c08ddc588b84e5c504d5a8b9e76c3b85ca4ddd7e3a0fe573ad49bc8ef730a66c6ca4ac9c2b69c74d EBUILD gentoo-kernel-bin-6.12.7.ebuild 4772 BLAKE2B 4814b375c522f1c7497989597ed579a811cc2905a4f85ce09b779c7d5d598108c4108b254e40a6c29f36039748befde712e48ab3f91afcad84d995a07020aaac SHA512 af52f166cf00daac4cd7ceddacc4920f6d328d4f0bf11746d47df40c90d4eca7ca91537017037c20bf7587668ecdcfc2bfc131d8539d5d9e064885bfdae93320 EBUILD gentoo-kernel-bin-6.6.67.ebuild 4732 BLAKE2B 81dfd37444aa76204e847ec6cc48dea2b2f96d93ca099199a80b494bf3cf4035a6f5d271fc2cfecfc1cce82839e805169733c1df8d91735967094cea7bf61f55 SHA512 ec422e6742e7e725cadc2aa5bf4af91e6b4180c59fb83ac2f19853ccfcf687177d33e6ade4504f2035c612ff160f31e269042acb72136700cb0d1743de2baeb1 +EBUILD gentoo-kernel-bin-6.6.68-r1.ebuild 4736 BLAKE2B 1cd2e414a7000bd2de4245c9cd622157eca83eb121d995ea362f42093b728e714f53b893aab8fcee23434493b1a0b55ee7198daef33ee963bd072cdd463d9063 SHA512 8673d8fe1e93d80bb7b69d25ea4c95eabf36b6a744439e30db8f6b8e636c9a9064d0f711fe3b9bc2b8b41d106d17873826c71866edfc3a5811c0abf0612af055 EBUILD gentoo-kernel-bin-6.6.68.ebuild 4736 BLAKE2B b6fcee48143cf24075e2fe50cf1d7aa3fbb3a1192bee00fc823833293d650695aade4e346a196a5456901935765b3f1ce79e84e16087b411717db71fd40eba11 SHA512 8070598c8e0345f674daecf5ff1e9530f1b901c9414397b4972106fe3eed323ba2f07449f34145f6dc8fae51adba9c98273210a5cc0510fec0d3ae5210fac669 MISC metadata.xml 482 BLAKE2B 3e7e4723542cbb8ac93dae78248fb8c26b96b7bfb2a3cd7913e4e7aef9beff07d9e8301219ae95bbbe4282d0806614b2733bea5d818797d19b0070c9119c0e1d SHA512 e3de887610d2c063fde21d52ce78c5d15301bffff49a82508c50dc1b03e606bf3e87506b376f10c6c10334949f577bc0f5307c3f45f2544fac799c57cf75d4d4 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.68-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.68-r1.ebuild new file mode 100644 index 000000000000..dbe800373773 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.68-r1.ebuild @@ -0,0 +1,181 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_EFI_ZBOOT=1 +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_SECUREBOOT=1 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 )) +BINPKG=${PF/-bin}-1 + +DESCRIPTION="Pre-built Linux kernel with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + dev-util/pahole + virtual/libelf + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + cd "${MY_P}" || die + default +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + kernel-install_test "${KPV}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/boot "${ED}"/ || die + fi + + # strip out-of-source build stuffs from modprep + # and then copy built files + find modprep -type f '(' \ + -name Makefile -o \ + -name '*.[ao]' -o \ + '(' -name '.*' -a -not -name '.config' ')' \ + ')' -delete || die + rm modprep/source || die + cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules + + # Mirror the logic from kernel-build_src_install, for architectures + # where USE=debug is used. + if use ppc64; then + dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)" + elif use debug && { use amd64 || use arm64; }; then + dostrip -x "${rel_kernel_dir}/vmlinux" + dostrip -x "${rel_kernel_dir}/vmlinux.ctfa" + fi +} diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 338c1ea3f971..8c701cf6326f 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -15,7 +15,11 @@ DIST genpatches-6.6-75.extras.tar.xz 4056 BLAKE2B 6e2e14f16a7ebc675e84b180a8f26f DIST genpatches-6.6-76.base.tar.xz 4119292 BLAKE2B 643510f5f01b8b7ac5c24098cd65b21ef02fd75b2682b371b00e8be48c6c335e7135569c58ad91ab6549e298b1dca15b83806143bf260a9e594feeffb2178fc5 SHA512 1345c21e33f3f0433691e03921c7b3d47bfdaad47376c06610170cf82214e3648cbbd2cb250ea4877d5c238f324f499b52e50dd2e5b51b4e336f2a1a5a431a1e DIST genpatches-6.6-76.experimental.tar.xz 5764 BLAKE2B bb585f5067c7a9fdf4db9ddded50678e192a97aa9e635701255432bf7525110b2aa9424f61562514f8cac165dbf3f2f3ebfc1ce418f58b8a54d6341475465aeb SHA512 9757c33baceea2a37f890562582cda6777423bb3201eccdf2b2acc573c03605b41701ea1c44e0846dddd0ee92be8960c4dd53005015bb13372ccce986b494d11 DIST genpatches-6.6-76.extras.tar.xz 4056 BLAKE2B 51631e3f138ac1f5146bc8d70f3381ad64e8341336cb1d706b2b3f838c6b5e884a1c60745bebf73ea25ae7ec26ec049d76db7e260593b3e7a4795b98d4488734 SHA512 fdff2ce695891603f3b9bd6b3a44df526559f454edde20e5159c9e53d73fc9820eba1836ef81b22da9d3adf7906fda16e9b6e6a3df65bff56519c40dad56ccc5 +DIST genpatches-6.6-77.base.tar.xz 4120472 BLAKE2B 99c511e049d8b375eb54c8c00688e695d22629a758234fa47e11222b5ab2a448c22e2fc29bff59c95e1c39992e38a22286e791a9dab16b0e3acf59f1681c6adf SHA512 1626b4b76bfe3ae1c6c01d11909fb65fbec2e570d987268aefdcad5558aaf2a3a95f3f159b73e1eeef4d66abc5f42b965d3c9200224433b788fc1a3400a3b9bc +DIST genpatches-6.6-77.experimental.tar.xz 5764 BLAKE2B f725aaf5fabf0f103206a7d5d191d4b041e73fed0d582d79e547d62f9edb9e0e9f433ab0cd4cf284f768c6c4d2f7b797a4992067e2fc412cfc4ffaf6d84301ff SHA512 49a8f105a67447f8fa2cebe90b0cfb3e00bc17e78c7805fe785a96f49d5e7e6920f7fcbe3302af8b095609f7b795f689e44cc43638401308440e7787ce09aa6b +DIST genpatches-6.6-77.extras.tar.xz 4056 BLAKE2B 72ee0f92105f7e24d08e54614b5fa1514ee8ff75de5781474f56a3655665c5d3152771e3379bb431fb73ce19780620de72858cf64585109033c851be05efb0f0 SHA512 afd1947987efc0268727e6019910aff4f8860ab60707a32a289a454253519137dd7e8da92ea2743706b124ef873f854ff8ed6b3eac719523ca5ff94f466b261e DIST gentoo-kernel-config-g14.tar.gz 5686 BLAKE2B e5147ff4ffab92428b3e7f1b0897b997f8a298805f4f43b0a4d3047607bbb1a5ebfc268e0bb9688372a5eda561df9f256c78e00cdd7e3caf7868724214722f56 SHA512 f79638f9ff9dd0154512baf0234024216b6708d35a3c03a580ca5913286ad1ea13bdde5ea9b4722c6a7cd8d591c11ec52c1e225111a260343cd56aa1f1a88502 +DIST gentoo-kernel-config-g15.tar.gz 5746 BLAKE2B 2baef40e18cbf3bb975362d71ad674604ad80338d1e6914ffa2fc03af26f1b9c9cec66d39a56077693a7327060bc29bd5eb5787549857dd3779e841192cb2016 SHA512 45d609ee25a529988868b8c99c808f4e6abbde34ae501bf35523431ee85c9f3657663d6f938f2036a5f012a55a68965b32fd41fc44d8f6ca606a6fd38f952445 DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437 DIST kernel-aarch64-fedora.config.6.12.5-gentoo 288068 BLAKE2B 4290157a17df36fccd2ead9fa381b5d6aa2079ca918773aa65e389a35127bcbd40074d2f2072371b9b50937bfaa2944168dcba628148dd654811ec93ed028b1e SHA512 62723af8ac13650cef09873f2d57c550171bfe5fa1a4ba00a12bf0650d3aea9f7af52a1d9e0662dd95df51bd0da5aaeb9fc0a0c0450fbb7fa1f76c1ab46bb099 @@ -43,5 +47,6 @@ EBUILD gentoo-kernel-6.1.121.ebuild 3936 BLAKE2B dcf88459003e6870e2fac0577ea2baf EBUILD gentoo-kernel-6.1.122.ebuild 3940 BLAKE2B e25216f0e811fcf6b8fdebf47e1b37359e0d2a828663c3dca599a861e4e504d1c2e6e0d3dfe5a5ce0cdd2535c7db93dae937f2f000908d08ffe0ef6eaa919c07 SHA512 95704de64275cc7b118e4e45427ed742c4f356eb14145df02bda8852a15555b5ed23cc5487b0762a64b10c201b059d28966a8e8c4a94e4d0441d0572a5427929 EBUILD gentoo-kernel-6.12.7.ebuild 4187 BLAKE2B bb85bd698eb5080f332b7d751533d72383812e796f57f2377e695ed9b181b01c7edba86e6b416b496519746b4211579fffebf9bf440bd805953522e01b14e555 SHA512 0cc6fcb09cfe7d9b9add4a0d2f952173a181dd05993210cf3b733b5aeca9d210347ea95b72fe56c7213be003a2e9ab92c9ee584dcd063ae8022f6d44443a5260 EBUILD gentoo-kernel-6.6.67.ebuild 4183 BLAKE2B 0598a06064bd5c90bea8d3eea31933a15ad4a749d3e3648ddb29a6024c12bed813854e3447cb6a82067d917a3c777b6dd5ce22d97581e6b24bb4854883f0b143 SHA512 ff4ff9dbf3854ff063ce7b47d1534036828c200264864f0e32d587c40c6ef67d132983c8a0a269c45016a560e0a0fec5bf95b20f7228d41a6f985da3aea2d8bc +EBUILD gentoo-kernel-6.6.68-r1.ebuild 4187 BLAKE2B eeb0566d25b36334c32a389cf50053fb50f55beabe54b78babac4b66d23c1ce648c3e7e1dfb95baf7314cc123027fd4429f761f98978eacb1928f15320da17cc SHA512 b88628814a2488b1a53455af8ba7765fba62e9789533c374900f2699b7b6d6c8169b20afdcd3ca0d4bd803bacb22f7c7073589939b8f40bd85ca8690b5cc04ab EBUILD gentoo-kernel-6.6.68.ebuild 4187 BLAKE2B 3c01463be2bbf082983d3a7d7c4f5cf98b0824b5f0b077874a4e78b4193b81b497414e800e51f747095a87f3a6ae5f818ccfb972d8bc58a2b6565f287294df9d SHA512 beda23b415caa04be906399091d675881247f86d57bab888800649bfd040c4b93f4fc9c930dd511f5c66fedb58580cb4d17f9accccf7af7927fae763a0379fc8 MISC metadata.xml 837 BLAKE2B 4a479438c85425dc4b1450f546cda4cb516284062391554a7944b56e11643c96dfcfdf354670b8e733ef3c1e86f6e47cee7e37445fed688123185c5e970a6669 SHA512 fc8982b0c939c006971bdaea1d91a13d232d41aa62451db5a07ebe55e5b87de548d40dd1d953f60fab8fd7567f56c8c918db76d34cd3c6239c6e0b545a539f94 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.ebuild new file mode 100644 index 000000000000..354b15e5e5d7 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.68-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.6.12-gentoo +GENTOO_CONFIG_VER=g15 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE=" + https://wiki.gentoo.org/wiki/Project:Distribution_Kernel + https://www.kernel.org/ +" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + experimental? ( + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.tar.xz + ) + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + amd64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-gentoo-dist" + use hardened && myversion+="-hardened" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + ) + if use hardened; then + merge_configs+=( "${dist_conf_path}"/hardened-base.config ) + + tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) + + if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then + merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) + fi + fi + + # this covers ppc64 and aarch64_be only for now + if [[ ${biendian} == true && $(tc-endian) == big ]]; then + merge_configs+=( "${dist_conf_path}/big-endian.config" ) + fi + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/sys-kernel/gentoo-sources/Manifest b/sys-kernel/gentoo-sources/Manifest index 73eddff35abb..efe088dbcf8b 100644 --- a/sys-kernel/gentoo-sources/Manifest +++ b/sys-kernel/gentoo-sources/Manifest @@ -52,6 +52,9 @@ DIST genpatches-6.6-75.extras.tar.xz 4056 BLAKE2B 6e2e14f16a7ebc675e84b180a8f26f DIST genpatches-6.6-76.base.tar.xz 4119292 BLAKE2B 643510f5f01b8b7ac5c24098cd65b21ef02fd75b2682b371b00e8be48c6c335e7135569c58ad91ab6549e298b1dca15b83806143bf260a9e594feeffb2178fc5 SHA512 1345c21e33f3f0433691e03921c7b3d47bfdaad47376c06610170cf82214e3648cbbd2cb250ea4877d5c238f324f499b52e50dd2e5b51b4e336f2a1a5a431a1e DIST genpatches-6.6-76.experimental.tar.xz 5764 BLAKE2B bb585f5067c7a9fdf4db9ddded50678e192a97aa9e635701255432bf7525110b2aa9424f61562514f8cac165dbf3f2f3ebfc1ce418f58b8a54d6341475465aeb SHA512 9757c33baceea2a37f890562582cda6777423bb3201eccdf2b2acc573c03605b41701ea1c44e0846dddd0ee92be8960c4dd53005015bb13372ccce986b494d11 DIST genpatches-6.6-76.extras.tar.xz 4056 BLAKE2B 51631e3f138ac1f5146bc8d70f3381ad64e8341336cb1d706b2b3f838c6b5e884a1c60745bebf73ea25ae7ec26ec049d76db7e260593b3e7a4795b98d4488734 SHA512 fdff2ce695891603f3b9bd6b3a44df526559f454edde20e5159c9e53d73fc9820eba1836ef81b22da9d3adf7906fda16e9b6e6a3df65bff56519c40dad56ccc5 +DIST genpatches-6.6-77.base.tar.xz 4120472 BLAKE2B 99c511e049d8b375eb54c8c00688e695d22629a758234fa47e11222b5ab2a448c22e2fc29bff59c95e1c39992e38a22286e791a9dab16b0e3acf59f1681c6adf SHA512 1626b4b76bfe3ae1c6c01d11909fb65fbec2e570d987268aefdcad5558aaf2a3a95f3f159b73e1eeef4d66abc5f42b965d3c9200224433b788fc1a3400a3b9bc +DIST genpatches-6.6-77.experimental.tar.xz 5764 BLAKE2B f725aaf5fabf0f103206a7d5d191d4b041e73fed0d582d79e547d62f9edb9e0e9f433ab0cd4cf284f768c6c4d2f7b797a4992067e2fc412cfc4ffaf6d84301ff SHA512 49a8f105a67447f8fa2cebe90b0cfb3e00bc17e78c7805fe785a96f49d5e7e6920f7fcbe3302af8b095609f7b795f689e44cc43638401308440e7787ce09aa6b +DIST genpatches-6.6-77.extras.tar.xz 4056 BLAKE2B 72ee0f92105f7e24d08e54614b5fa1514ee8ff75de5781474f56a3655665c5d3152771e3379bb431fb73ce19780620de72858cf64585109033c851be05efb0f0 SHA512 afd1947987efc0268727e6019910aff4f8860ab60707a32a289a454253519137dd7e8da92ea2743706b124ef873f854ff8ed6b3eac719523ca5ff94f466b261e DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 @@ -75,5 +78,6 @@ EBUILD gentoo-sources-6.6.62.ebuild 740 BLAKE2B 69a70dbc59d92706c7f8f14094a2f2b8 EBUILD gentoo-sources-6.6.65.ebuild 748 BLAKE2B fe755388f0fd34bfb11482825dbded25fb88a92727f43627df3c1f1a4692028677415efd9d37ab993d266fc2242d4277e59a68f68cd05f2b5660f8f3db990eed SHA512 ec2afdc2f9672ee9034ddf06583a3ca8ba45c0f271343e5011bb120621b916905e0ab3ce169d328afd13333eb269adb127bb731b2abe0186cb9b96709ebeb6e1 EBUILD gentoo-sources-6.6.66.ebuild 748 BLAKE2B 9b515e512fc7178fec95be8bf58ff10b4d6862a2a71e56c9522f4743ff33cc2348199fc6750c797673edeabff88fe5e196a152b50b2af1cf07c2d15a0848d0c4 SHA512 0aab96da95878f9e40842c8ea79bee700cca3bfe9dc000e2d4f4c55fc6c5503473eeff89965f239debb0ddd99ab4a7b98190e1153dec61c4a5d60dd77c709972 EBUILD gentoo-sources-6.6.67.ebuild 746 BLAKE2B 2a63fff6a304504deec752e66f696cf7e88cbd25a5a9f26631c3f41e51fcbd864d176d6190affca8be3c00a2746d8fb17467110334712f3b0f04974cb595be2c SHA512 6c2a15e636a61319d6a310483d36741b491207d68edf8ab6dd524adacfd3726bea56c0671aae830d8dc0190456dc3dca9cb997531e7d7d013ac36bdba1a38ca2 +EBUILD gentoo-sources-6.6.68-r1.ebuild 748 BLAKE2B 5651601132965b7872ab5120010d6c825ffe1f1f60a3c1bf62ee39be722161cd2c92e30368b9e42c9858cf9e27054c3613d1b9113346e165c522d126825cc583 SHA512 eab1f6a9a81d8abd3ed4b372b9b972910fb29ee73ec0505899796e37f09d90b50d7099e5cd0c28f5588c74b97ba197eed9bbeb655d7a5b8f1d8e043f9e8d00cb EBUILD gentoo-sources-6.6.68.ebuild 748 BLAKE2B 01d1b0ffdb418ccbe449ef5c017d988deadfd4552f078da0e6b0c11b4ca26ff2d30c81fad7711f6e8c7b56b05b3dbe7d48314c2d0b1ad871a30501d8c0ea59f4 SHA512 032ed9a825dc97d65ea47dcc924cbb20e814a21cb666ddb1fe9d8f5adea0c58ac7f178b0b2489711d14532e6ec02e217fab685624b30107d4bcd54c78b813d59 MISC metadata.xml 501 BLAKE2B f5363c8a19540d5bb924b38bdebeb8dbc60c84e58d1d87a9148a3e7abb09b0a1b733c98b130b778b8ab3a88375598444aa9d537d8c5338864a3d4497600d7836 SHA512 bc1ba0d75dbf5b95b3f93e666389c6408f20aebeec99bc8ec00653758b67588e07214285ed106fd9e5aed2c8d57c625d666c797212fda51e1ab98ce1df816467 diff --git a/sys-kernel/gentoo-sources/gentoo-sources-6.6.68-r1.ebuild b/sys-kernel/gentoo-sources/gentoo-sources-6.6.68-r1.ebuild new file mode 100644 index 000000000000..6b1f616fb494 --- /dev/null +++ b/sys-kernel/gentoo-sources/gentoo-sources-6.6.68-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +ETYPE="sources" +K_WANT_GENPATCHES="base extras experimental" +K_GENPATCHES_VER="77" + +inherit kernel-2 +detect_version +detect_arch + +DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree" +HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="experimental" + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} diff --git a/sys-kernel/installkernel/Manifest b/sys-kernel/installkernel/Manifest index 089f2f1fba0a..d4f2266a3595 100644 --- a/sys-kernel/installkernel/Manifest +++ b/sys-kernel/installkernel/Manifest @@ -1,5 +1,7 @@ DIST installkernel-48.tar.gz 25079 BLAKE2B 73bf66071dc7dd76afd1ee42d4c3528430f2b00e38c94ff274d6af78c302243fe33959b721c29435819feeed56d94fb1d6f9381b92d8718acee1d9934cfbf5b8 SHA512 302ec0657564dfe3f8d02f564f39a1d7203dcb81d9dd748d3b0b30b0c73b8e9d94758f53076d7b685f57f2a3beeec1a75ad5f807b91200a2f0a2de5510191cb1 DIST installkernel-49.tar.gz 25238 BLAKE2B c2b5f165dc3aaabe24833916d47ac072f10db004ee3d33ee2b2320e30eea908d0ddb143ab3c01fd164c99a59d59a0e3d9d49cb992c4cb942f96be2f58e7e4541 SHA512 6967367499d0ddea4311028b1ccf2d4c28ca57691ff02b515f436710a218c4abd9b9c1ba6e62c718101b62a04e2fe04238c6209769d7f0956d7ffc90248eec1b +DIST installkernel-50.tar.gz 25265 BLAKE2B 12fe64bc584d7ead4a24a7d81b83c69fb0aad21fb0f88195e5608519ade5dbf9e6009b6b6d0f81190b96cf170b6b5e7f220522bded20d99fa95b3fe65e8476a6 SHA512 fb780d7e0c724e93c2c0a0f43fc17a95862a55733ad76df43daab3ce09f4d06e2c357a0bac0decd821c9c36dbda846cf89f8cc60d721f0cb32b39f336da2c72c EBUILD installkernel-48-r1.ebuild 7371 BLAKE2B 5528865b3d7ba198ded0fd3697820ed386823c52572e79ca17193fa676109f14b42b477a96997e9a8a3a106ac8e8adcdbdd589154c8529a304e97174367eb7ee SHA512 98f14ba3a6994aff93faadb710a68585880c3ad5462385567a54430e1115c8fe7b8e8ff588ddbd886173aa5dc5e0864cacfa05bfa6935efee3dde5341bc0bd6b EBUILD installkernel-49.ebuild 7408 BLAKE2B 1fa2fd5b2b16e7787b0389b38eedd6e6421b7845d36490c03f1c6270501c51b3dc3b435c44f9402aa8a39c7e8819bcb3c566eda0eb5235295688f7071523ae37 SHA512 b075eccbac649a669f560db5b16f768628a7eae61a2c7f4bbe37b2005f932b7a9ef8c292be6681211f15659b29970e989777ebc78737601049c0ec18f7b1af04 +EBUILD installkernel-50.ebuild 7408 BLAKE2B 1fa2fd5b2b16e7787b0389b38eedd6e6421b7845d36490c03f1c6270501c51b3dc3b435c44f9402aa8a39c7e8819bcb3c566eda0eb5235295688f7071523ae37 SHA512 b075eccbac649a669f560db5b16f768628a7eae61a2c7f4bbe37b2005f932b7a9ef8c292be6681211f15659b29970e989777ebc78737601049c0ec18f7b1af04 MISC metadata.xml 1379 BLAKE2B c141302cfe1dddf7d11d68cafdf97437f037caab171b1c1b071cc366b6a98acb5940c1ab73bcc49bf97fe9c852ad28c8923fbf00f0a51f2a02174a5d542f9edf SHA512 f5a20936b0b569fd2a8eadb76eeb8d7ec8c905b0e15ae285c351d82bef0c001e64d47a19774a6b958b845a20adc3df5e7cc583649dfcf9ef7c684132498e8bf8 diff --git a/sys-kernel/installkernel/installkernel-50.ebuild b/sys-kernel/installkernel/installkernel-50.ebuild new file mode 100644 index 000000000000..fd725cda3fbc --- /dev/null +++ b/sys-kernel/installkernel/installkernel-50.ebuild @@ -0,0 +1,240 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info + +DESCRIPTION="Gentoo fork of installkernel script from debianutils" +HOMEPAGE=" + https://github.com/projg2/installkernel-gentoo + https://wiki.gentoo.org/wiki/Installkernel +" +SRC_URI="https://github.com/projg2/installkernel-gentoo/archive/v${PV}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-gentoo-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="dracut efistub grub refind systemd systemd-boot ugrd uki ukify" +REQUIRED_USE=" + ?? ( efistub grub systemd-boot ) + refind? ( !systemd-boot !grub ) + systemd-boot? ( systemd ) + ukify? ( uki ) + ?? ( dracut ugrd ) +" +# Only select one flag that sets "layout=", except for uki since grub, +# systemd-boot, and efistub booting are all compatible with UKIs and +# the uki layout. +# +# Refind does not set a layout=, it is compatible with the compat, uki +# and efistub layout. So block against only grub and systemd-boot. +# +# systemd-boot could be made to work without the systemd flag, but this +# makes no sense since in systemd(-utils) the boot flag already +# requires the kernel-install flag. +# +# Ukify hooks do nothing if the layout is not uki, so force this here. +# +# Only one initramfs generator flag can be selected. Note that while +# both dracut and ukify are UKI generators we don't block those because +# enabling both results in building an initramfs only with dracut and +# building an UKI with ukify, which is a valid configuration. + +RDEPEND=" + !<=sys-kernel/installkernel-systemd-3 + dracut? ( + >=sys-kernel/dracut-060_pre20240104-r4 + uki? ( + || ( + sys-apps/systemd[boot(-)] + sys-apps/systemd-utils[boot(-)] + ) + ) + ) + efistub? ( + systemd? ( >=app-emulation/virt-firmware-24.2_p20240315-r2 ) + !systemd? ( sys-boot/uefi-mkconfig ) + ) + grub? ( sys-boot/grub ) + refind? ( sys-boot/refind ) + systemd? ( + || ( + sys-apps/systemd[kernel-install(-)] + sys-apps/systemd-utils[kernel-install(-)] + ) + ) + systemd-boot? ( + || ( + sys-apps/systemd[boot(-)] + sys-apps/systemd-utils[boot(-)] + ) + ) + ukify? ( + || ( + sys-apps/systemd[boot(-),ukify(-)] + sys-apps/systemd-utils[boot(-),ukify(-)] + ) + ) + ugrd? ( sys-kernel/ugrd ) + !=sys-apps/systemd-255.2-r1 + !=sys-apps/systemd-255.2-r0 + !~sys-apps/systemd-255.1 + !~sys-apps/systemd-255.0 + !=sys-apps/systemd-254.8-r0 + !=sys-apps/systemd-254.7-r0 + !~sys-apps/systemd-254.6 + !<=sys-apps/systemd-254.5-r1 +" # Block against systemd that still installs dummy install.conf + +pkg_setup() { + use efistub && CONFIG_CHECK="~EFI_STUB" linux-info_pkg_setup +} + +src_install() { + keepdir /etc/kernel/install.d + keepdir /etc/kernel/preinst.d + keepdir /etc/kernel/postinst.d + keepdir /usr/lib/kernel/install.d + keepdir /usr/lib/kernel/preinst.d + keepdir /usr/lib/kernel/postinst.d + + exeinto /usr/lib/kernel/preinst.d + doexe hooks/99-check-diskspace.install + use dracut && doexe hooks/50-dracut.install + use ukify && doexe hooks/60-ukify.install + + exeinto /usr/lib/kernel/postinst.d + doexe hooks/99-write-log.install + use grub && doexe hooks/91-grub-mkconfig.install + use efistub && doexe hooks/95-efistub-uefi-mkconfig.install + use refind && doexe hooks/95-refind-copy-icon.install + + exeinto /usr/lib/kernel/install.d + doexe hooks/systemd/00-00machineid-directory.install + doexe hooks/systemd/10-copy-prebuilt.install + doexe hooks/systemd/85-check-diskspace.install + doexe hooks/systemd/90-compat.install + doexe hooks/systemd/90-zz-update-static.install + doexe hooks/systemd/99-write-log.install + use grub && doexe hooks/systemd/91-grub-mkconfig.install + use efistub && doexe hooks/systemd/95-efistub-kernel-bootcfg.install + use refind && doexe hooks/systemd/95-refind-copy-icon.install + + if use systemd; then + sed -e 's/${SYSTEMD_KERNEL_INSTALL:=0}/${SYSTEMD_KERNEL_INSTALL:=1}/g' -i installkernel || + die "enabling systemd's kernel-install failed" + fi + + # set some default config using the flags we have anyway + touch "${T}/install.conf" || die + echo "# This file is managed by ${CATEGORY}/${PN}" >> "${T}/install.conf" || die + if use uki; then + echo "layout=uki" >> "${T}/install.conf" || die + elif use efistub; then + echo "layout=efistub" >> "${T}/install.conf" || die + elif use grub; then + echo "layout=grub" >> "${T}/install.conf" || die + elif use systemd-boot; then + echo "layout=bls" >> "${T}/install.conf" || die + else + echo "layout=compat" >> "${T}/install.conf" || die + fi + + if use dracut; then + echo "initrd_generator=dracut" >> "${T}/install.conf" || die + if ! use ukify; then + if use uki; then + echo "uki_generator=dracut" >> "${T}/install.conf" || die + else + echo "uki_generator=none" >> "${T}/install.conf" || die + fi + fi + elif use ugrd; then + echo "initrd_generator=ugrd" >> "${T}/install.conf" || die + else + echo "initrd_generator=none" >> "${T}/install.conf" || die + fi + + if use ukify; then + echo "uki_generator=ukify" >> "${T}/install.conf" || die + else + if ! use dracut; then + echo "uki_generator=none" >> "${T}/install.conf" || die + fi + fi + + insinto /usr/lib/kernel + doins "${T}/install.conf" + + insinto /etc/logrotate.d + newins installkernel.logrotate installkernel + keepdir /var/lib/misc + + into / + dosbin installkernel + doman installkernel.8 + + einstalldocs +} + +pkg_postinst() { + # show only when upgrading to 14+ + if [[ -n "${REPLACING_VERSIONS}" ]] && ver_test "${REPLACING_VERSIONS}" -lt 14; then + elog "Version 14 and up of ${PN} effectively merges" + elog "${PN}-gentoo and ${PN}-systemd." + elog "Switching between the traditional installkernel and systemd's" + elog "kernel-install is controlled with the systemd USE flag or the" + elog "SYSTEMD_KERNEL_INSTALL environment variable." + elog + elog "See the installkernel wiki page[1] for more details." + elog + elog "[1]: https://wiki.gentoo.org/wiki/Installkernel" + elog + fi + + # show only on first install of version 20+ + if [[ -z "${REPLACING_VERSIONS}" ]] || ver_test "${REPLACING_VERSIONS}" -lt 20; then + if has_version "sys-boot/grub" && ! use grub; then + elog "sys-boot/grub is installed but the grub USE flag is not enabled." + elog "Users may want to enable this flag to automatically update the" + elog "bootloader configuration on each kernel install." + fi + if ( has_version "sys-apps/systemd[boot]" || + has_version "sys-apps/systemd-utils[boot]" ) && + ! use systemd-boot; then + elog "systemd-boot is installed but the systemd-boot USE flag" + elog "is not enabled. Users should enable this flag to install kernels" + elog "in a layout that systemd-boot understands and to automatically" + elog "update systemd-boot's configuration on each kernel install." + fi + fi + + if use efistub; then + ewarn "Automated EFI Stub booting is highly experimental. UEFI implementations" + ewarn "often differ between vendors and as a result EFI stub booting is not" + ewarn "guaranteed to work for all UEFI systems. Ensure an alternative method" + ewarn "of booting the system is available before rebooting." + fi + + # Initialize log file if there is none + dodir /var/log + local log=${ROOT}/var/log/installkernel.log + if [[ ! -s ${log} ]]; then + echo -e \ +"DATE\t"\ +"KI_VENDOR\t"\ +"VERSION\t"\ +"CONF_ROOT\t"\ +"LAYOUT\t"\ +"INITRD_GEN\t"\ +"UKI_GEN\t"\ +"BOOT_ROOT\t"\ +"KERNEL_REL_PATH\t"\ +"INITRD_REL_PATH\t"\ +"PLUGIN_OVERRIDE\t"\ +>> "${log}" || die + fi +} |