diff options
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/Manifest.gz | bin | 5072 -> 5074 bytes | |||
-rw-r--r-- | sys-kernel/git-sources/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/git-sources/git-sources-6.13_rc5.ebuild | 39 | ||||
-rw-r--r-- | sys-kernel/installkernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/installkernel/installkernel-49.ebuild | 240 |
5 files changed, 283 insertions, 0 deletions
diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz Binary files differindex b86ff83d0150..36f50ccb3dea 100644 --- a/sys-kernel/Manifest.gz +++ b/sys-kernel/Manifest.gz diff --git a/sys-kernel/git-sources/Manifest b/sys-kernel/git-sources/Manifest index e3275196084e..a4d80ac700d4 100644 --- a/sys-kernel/git-sources/Manifest +++ b/sys-kernel/git-sources/Manifest @@ -3,8 +3,10 @@ DIST patch-6.13-rc1.patch 44278336 BLAKE2B 3019b1559cc3038393d1d51d5cce67ba8cc86 DIST patch-6.13-rc2.patch 45755252 BLAKE2B 8ab895aba64d944bd79a0d0ccb9fb61cb243be0e18875414056a34c22fe31f9c629a0a893ed765628b9b795d06321faa3822eca5e9db555cb5605d6441f5fd73 SHA512 09e8693cb824625d2f520e47a3a838b2f6b0add803e9c1b2bcd8d26d80d947de56a2e365460ba05aafa0e1fad4990f6bf6d9f55457a98d662e863187ba107728 DIST patch-6.13-rc3.patch 46670516 BLAKE2B ba0e0bff8c1f32d81b9d5b7fd9f777d3c3b46c7504978ac4d2ec7e66668b1d39ce48ee16b875de0f8a10754237d4ad1944999236a299ee443de05b52deb06a9a SHA512 055ab3a368f3ef1000912c973121d373a108998253240dad1d1ce9cbbc9ecae52a06bab1b89d659a56cce127a9605e46c0997aaeafe01724fcc9df0d63534806 DIST patch-6.13-rc4.patch 46999276 BLAKE2B db5ffe5407033057000a7b6003e7e33c1df39a00e23687228922bf6d25467eaa4a961b4db0bb7a6ae666ca292a81d16a7c941430531a350d058c7013f462fe4f SHA512 0231c8374a24711345cbf88a4ba5a617c0ab22be42053567d53a5a8cbbde57a0ae6dc27d6e1537daaec72b863888bd87be0ef4f5738f814ec5ecefc20abd1816 +DIST patch-6.13-rc5.patch 47079185 BLAKE2B 72e044c4fa41d44d9c61a695c38f40bd617642ec9e65978128a04ea6a514708a5634d409bf3ca10621b636ae1fee888f916a7454ff13e123e07f06cc0d403f86 SHA512 de639760efbf7a2de077003a81e9d9d1dc20df36d9325799377dc7c608fd68c8f4cb5c14e455f8c0561b63a4cd4fca1e70524eacdd3d53b1a60e86afd1cd4fe5 EBUILD git-sources-6.13_rc1.ebuild 1174 BLAKE2B 41670b3c32b90cde58b8458a8b97d9dd3edf65e998d6500434890a550f088f57c8b58d52d8b89984c1d8acc6cddc27e952ee2ffbf92a0741237f9961f9b91f22 SHA512 bc48ea18f3cd197f45784ab2f483d19bbadebcf0836eb237d69628cffc9781efc77bc70f463572079b58e89f9f4da8ee89d06f643af32b5ce90f1f8f681dbea6 EBUILD git-sources-6.13_rc2.ebuild 1174 BLAKE2B 41670b3c32b90cde58b8458a8b97d9dd3edf65e998d6500434890a550f088f57c8b58d52d8b89984c1d8acc6cddc27e952ee2ffbf92a0741237f9961f9b91f22 SHA512 bc48ea18f3cd197f45784ab2f483d19bbadebcf0836eb237d69628cffc9781efc77bc70f463572079b58e89f9f4da8ee89d06f643af32b5ce90f1f8f681dbea6 EBUILD git-sources-6.13_rc3.ebuild 1174 BLAKE2B 41670b3c32b90cde58b8458a8b97d9dd3edf65e998d6500434890a550f088f57c8b58d52d8b89984c1d8acc6cddc27e952ee2ffbf92a0741237f9961f9b91f22 SHA512 bc48ea18f3cd197f45784ab2f483d19bbadebcf0836eb237d69628cffc9781efc77bc70f463572079b58e89f9f4da8ee89d06f643af32b5ce90f1f8f681dbea6 EBUILD git-sources-6.13_rc4.ebuild 1174 BLAKE2B 41670b3c32b90cde58b8458a8b97d9dd3edf65e998d6500434890a550f088f57c8b58d52d8b89984c1d8acc6cddc27e952ee2ffbf92a0741237f9961f9b91f22 SHA512 bc48ea18f3cd197f45784ab2f483d19bbadebcf0836eb237d69628cffc9781efc77bc70f463572079b58e89f9f4da8ee89d06f643af32b5ce90f1f8f681dbea6 +EBUILD git-sources-6.13_rc5.ebuild 1174 BLAKE2B 41670b3c32b90cde58b8458a8b97d9dd3edf65e998d6500434890a550f088f57c8b58d52d8b89984c1d8acc6cddc27e952ee2ffbf92a0741237f9961f9b91f22 SHA512 bc48ea18f3cd197f45784ab2f483d19bbadebcf0836eb237d69628cffc9781efc77bc70f463572079b58e89f9f4da8ee89d06f643af32b5ce90f1f8f681dbea6 MISC metadata.xml 465 BLAKE2B 089bfb0e4af03b69d3d118d39713b54aac6912012cf0e9352d22b4b597abe5b1ef86863c37f6a0be2f81995f2a81a8d08bc7c2927d06ac2042b7b18ba02c77be SHA512 cb2bec5a8cce1e6da593f6ab11ceb854112fb4e828198793820699913f2f7cb2a9443e1cb15c42e16730891a27fe8dcd1713527c2ba2cfa56f6d2296f6f6e001 diff --git a/sys-kernel/git-sources/git-sources-6.13_rc5.ebuild b/sys-kernel/git-sources/git-sources-6.13_rc5.ebuild new file mode 100644 index 000000000000..b345e33fdaba --- /dev/null +++ b/sys-kernel/git-sources/git-sources-6.13_rc5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +UNIPATCH_STRICTORDER="yes" +K_NOUSENAME="yes" +K_NOSETEXTRAVERSION="yes" +K_NOUSEPR="yes" +K_SECURITY_UNSUPPORTED="1" +K_BASE_VER="6.12" +K_EXP_GENPATCHES_NOUSE="1" +K_FROM_GIT="yes" +K_NODRYRUN="yes" +ETYPE="sources" +CKV="${PVR/-r/-git}" + +# only use this if it's not an _rc/_pre release +[ "${PV/_pre}" == "${PV}" ] && [ "${PV/_rc}" == "${PV}" ] && OKV="${PV}" +inherit kernel-2 +detect_version + +DESCRIPTION="The very latest -git version of the Linux kernel" +HOMEPAGE="https://www.kernel.org" +SRC_URI="${KERNEL_URI}" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~s390 ~sparc ~x86" + +K_EXTRAEINFO="This kernel is not supported by Gentoo due to its unstable and +experimental nature. If you have any issues, try a matching vanilla-sources +ebuild -- if the problem is not there, please contact the upstream kernel +developers at https://bugzilla.kernel.org and on the linux-kernel mailing list to +report the problem so it can be fixed in time for the next kernel release." + +DEPEND="${RDEPEND} + >=sys-devel/patch-2.7.6-r5" + +pkg_postinst() { + postinst_sources +} diff --git a/sys-kernel/installkernel/Manifest b/sys-kernel/installkernel/Manifest index 3bce65f99dae..089f2f1fba0a 100644 --- a/sys-kernel/installkernel/Manifest +++ b/sys-kernel/installkernel/Manifest @@ -1,3 +1,5 @@ DIST installkernel-48.tar.gz 25079 BLAKE2B 73bf66071dc7dd76afd1ee42d4c3528430f2b00e38c94ff274d6af78c302243fe33959b721c29435819feeed56d94fb1d6f9381b92d8718acee1d9934cfbf5b8 SHA512 302ec0657564dfe3f8d02f564f39a1d7203dcb81d9dd748d3b0b30b0c73b8e9d94758f53076d7b685f57f2a3beeec1a75ad5f807b91200a2f0a2de5510191cb1 +DIST installkernel-49.tar.gz 25238 BLAKE2B c2b5f165dc3aaabe24833916d47ac072f10db004ee3d33ee2b2320e30eea908d0ddb143ab3c01fd164c99a59d59a0e3d9d49cb992c4cb942f96be2f58e7e4541 SHA512 6967367499d0ddea4311028b1ccf2d4c28ca57691ff02b515f436710a218c4abd9b9c1ba6e62c718101b62a04e2fe04238c6209769d7f0956d7ffc90248eec1b EBUILD installkernel-48-r1.ebuild 7371 BLAKE2B 5528865b3d7ba198ded0fd3697820ed386823c52572e79ca17193fa676109f14b42b477a96997e9a8a3a106ac8e8adcdbdd589154c8529a304e97174367eb7ee SHA512 98f14ba3a6994aff93faadb710a68585880c3ad5462385567a54430e1115c8fe7b8e8ff588ddbd886173aa5dc5e0864cacfa05bfa6935efee3dde5341bc0bd6b +EBUILD installkernel-49.ebuild 7408 BLAKE2B 1fa2fd5b2b16e7787b0389b38eedd6e6421b7845d36490c03f1c6270501c51b3dc3b435c44f9402aa8a39c7e8819bcb3c566eda0eb5235295688f7071523ae37 SHA512 b075eccbac649a669f560db5b16f768628a7eae61a2c7f4bbe37b2005f932b7a9ef8c292be6681211f15659b29970e989777ebc78737601049c0ec18f7b1af04 MISC metadata.xml 1379 BLAKE2B c141302cfe1dddf7d11d68cafdf97437f037caab171b1c1b071cc366b6a98acb5940c1ab73bcc49bf97fe9c852ad28c8923fbf00f0a51f2a02174a5d542f9edf SHA512 f5a20936b0b569fd2a8eadb76eeb8d7ec8c905b0e15ae285c351d82bef0c001e64d47a19774a6b958b845a20adc3df5e7cc583649dfcf9ef7c684132498e8bf8 diff --git a/sys-kernel/installkernel/installkernel-49.ebuild b/sys-kernel/installkernel/installkernel-49.ebuild new file mode 100644 index 000000000000..fd725cda3fbc --- /dev/null +++ b/sys-kernel/installkernel/installkernel-49.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 +} |