summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-31 09:12:05 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-31 09:12:05 +0100
commit100ce16c6fb75a4911f388aa77f860324607c869 (patch)
treede54fe6a6fd7ceb7a41fdf2b03b666c479794055 /sys-kernel
parent6262f7e48882f381dea4a0751717f65e6abd212f (diff)
gentoo auto-resync : 31:07:2022 - 09:12:04
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/Manifest.gzbin4416 -> 4417 bytes
-rw-r--r--sys-kernel/genkernel/Manifest7
-rw-r--r--sys-kernel/genkernel/genkernel-4.2.6-r2.ebuild318
-rw-r--r--sys-kernel/genkernel/genkernel-4.2.6-r3.ebuild319
-rw-r--r--sys-kernel/genkernel/genkernel-4.2.6-r4.ebuild320
-rw-r--r--sys-kernel/genkernel/genkernel-4.2.6-r6.ebuild (renamed from sys-kernel/genkernel/genkernel-4.2.6-r5.ebuild)5
-rw-r--r--sys-kernel/genkernel/genkernel-9999.ebuild7
-rw-r--r--sys-kernel/pf-sources/Manifest2
-rw-r--r--sys-kernel/pf-sources/pf-sources-5.18_p5.ebuild85
9 files changed, 98 insertions, 965 deletions
diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz
index ebe80bcac066..28a686959eda 100644
--- a/sys-kernel/Manifest.gz
+++ b/sys-kernel/Manifest.gz
Binary files differ
diff --git a/sys-kernel/genkernel/Manifest b/sys-kernel/genkernel/Manifest
index a07fe42d9394..da3b743d9ffd 100644
--- a/sys-kernel/genkernel/Manifest
+++ b/sys-kernel/genkernel/Manifest
@@ -72,9 +72,6 @@ DIST zstd-1.4.5.tar.gz 1987927 BLAKE2B 1497d4e87040e5c71466468ebf1a57f4073666f2b
DIST zstd-1.5.0.tar.gz 1867111 BLAKE2B e503d17478b94128eb3ec578178f9d7023e941434dcc07790e12fd6c9933518f34fba5d7795ab7b145e4e499597644a6edd2830106649c5a749c962d5afe2f31 SHA512 25b657529a698eec891f92ff4a085d1fd95d2ff938ce52c8a4ff6163eb0b668ec642dd09e0db190652638cd92371006afa01d8e437437762c4097ad301675c33
EBUILD genkernel-4.0.10.ebuild 9583 BLAKE2B eb8f46374b3dd8a2f51db002e666ce64b32acc63f8c02a3ffe4ea85c3129bb19c904624382758e97662979b0eddddf0b0ebfdd8d3df66420cef569ccc92fd946 SHA512 1f24bee85516973b5652fe9ac354445504fdd82edf75683dfdc38559cd68048c87c9635af7047286575ff9cb95f69b4f7bc02fc49d9fe29e6a7199c76086a3c7
EBUILD genkernel-4.2.5.ebuild 11468 BLAKE2B 44a9a5e824574e14f036b2964b325367f3abbbe904098ba35b98b4717c7e285366595863a1282d05a36c7f4bdc61f40b0bb6e052372f72c6a4a7b12575f1ece7 SHA512 8a0c4c90e7d132cd338465f7557ab34ceeb2649dc54e23876c90e396e3e3c2fa4c5d178234ede1057a143e116989552279996a14792463800612cd6a72a18c08
-EBUILD genkernel-4.2.6-r2.ebuild 11619 BLAKE2B 4eaed74c7fc68d45137723f604ad97b2591a114bfe48064be4400ecf88224e15f2de97465275177e8df2ceedf37df6fcede6c6f6b77b997c101a48533200b413 SHA512 105524dd26614ffa33ed38cf5a45350d5fb3b22b9fcf84ba92840af0c7a85ef71b9bc8ffe29bdbb28e583a32de40f5d7768d8ac28155d51473afb56740b1042c
-EBUILD genkernel-4.2.6-r3.ebuild 11667 BLAKE2B 8970c3817c942a224ba67b01fc34d99ff1b22f32939d58bb87d8f6451a4c7b4a33b9170996702fede6c5609fc862ef3ba6d39ba006d1261442eb30967d926c29 SHA512 cb2addc25a0bb808b0edabdb0f3d3b43f947e54b8d3843e7b90259e74311b3875b83e11a26f8372494f28acf1aa2dcd563f9b13cccdecec466bfbed161a8cbb8
-EBUILD genkernel-4.2.6-r4.ebuild 11711 BLAKE2B c3a54d2354ce25e8787dd50dd46f973294c590686c79d691b62b9a47dcc09be6ca1ab9b643e0e0c5bb2b11e1c4e6124e38402b5869ae8eb11511816204401109 SHA512 593e8c5d5b5b69aefdce8a6db91c7b5cdb90828014985c8cf235936d5d5bfa9ac4e40460e3fabb6772183494b2059748d32f12af19fa9c8ecfcf3ec7e349448a
-EBUILD genkernel-4.2.6-r5.ebuild 11901 BLAKE2B b45f0d525dcacfb1e56eac3ce8471b838d6287e8379d55c6d8074089ac37beed39fd88b28793bb89eb8333077d57fddef63f4dde5d7fd3a212567488f4fa6d3f SHA512 9e896569b26b3e1fb8fce99b41106bf221bb63120d8dd4c710508cc7b839e382d333e6dc2811f5d82796939e4c6a1cbe388c5755e2c2a312fa2bcf1e0ec8a827
-EBUILD genkernel-9999.ebuild 11679 BLAKE2B 7fa6e85abbf9872158f186c1d1d849f1eadb37697c3d27dc9c12d74e48e0781dd587f8a75e21b2f45b0f7a5c137274e34aea16b7bffc60284d8c4adf303c28d1 SHA512 68614f253f0b5c852f720bfc095235625445979719a4d71b5b638768a98ee5e6dee12f75115d045104045e05af7f56b495fba4e8acaaf30d39551755f7482a33
+EBUILD genkernel-4.2.6-r6.ebuild 11948 BLAKE2B 5c2281ee1a0caeea8950ff16d573b95e2590bcc1a5c866c65126ea34880c24d704bcf2eecc3855f04b151283094357d958117574eee515088c31b5d2ee7b0bf5 SHA512 93e7b2018151c954130e9fd89e34c488f9c65131c283bf62d062f86d6a8e6b2e533dba092f347a39249e20215becd8736dfc18d285482db2d789468eb8051f2a
+EBUILD genkernel-9999.ebuild 11726 BLAKE2B 4cef124c5b87c6908482f4ab2277cdbb8cac5f8d05a59d6059336166a48ee8a4c6d9ee7af08bda0d0eebe1faf384b2830a044b838ba742c7fd539f86e29a5db2 SHA512 be55599bb6a61bf5e5938c9f61003d5f52e2f42e3eb7b9dd1dd756d914dd54d39aacda37d6f3a281c1096f1d9ccd72c9def17decc71cb119eae8570811e061e5
MISC metadata.xml 473 BLAKE2B 7d2bf14ca0bd4ba5bf05d0ac1529c0c8eae3655a4f52eba56ddb6865e8a44978366b3abad6f334c99b5ad30332113761ea0b7afd76a9eb274c536a7c23aa3983 SHA512 49c916ec4e0690ba17dbaf363acacf3cfaa69f180e0d48644eb742875c55cb409f51123f1e055ecfcffda0f18604208cc61fd2372c2b1aaa6d949dec9edc80a5
diff --git a/sys-kernel/genkernel/genkernel-4.2.6-r2.ebuild b/sys-kernel/genkernel/genkernel-4.2.6-r2.ebuild
deleted file mode 100644
index c84a9987b7c4..000000000000
--- a/sys-kernel/genkernel/genkernel-4.2.6-r2.ebuild
+++ /dev/null
@@ -1,318 +0,0 @@
-# Copyright 1999-2021 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="7"
-
-PYTHON_COMPAT=( python3_{7..10} )
-
-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.0.8_p20141204"
-VERSION_BOOST="1.76.0"
-VERSION_BTRFS_PROGS="5.15"
-VERSION_BUSYBOX="1.34.1"
-VERSION_COREUTILS="8.32"
-VERSION_CRYPTSETUP="2.4.1"
-VERSION_DMRAID="1.0.0.rc16-3"
-VERSION_DROPBEAR="2020.81"
-VERSION_EUDEV="3.2.10"
-VERSION_EXPAT="2.4.1"
-VERSION_E2FSPROGS="1.46.4"
-VERSION_FUSE="2.9.9"
-VERSION_GPG="1.4.23"
-VERSION_HWIDS="20210613"
-VERSION_ISCSI="2.0.878"
-VERSION_JSON_C="0.13.1"
-VERSION_KMOD="29"
-VERSION_LIBAIO="0.3.112"
-VERSION_LIBGCRYPT="1.9.4"
-VERSION_LIBGPGERROR="1.43"
-VERSION_LIBXCRYPT="4.4.26"
-VERSION_LVM="2.02.188"
-VERSION_LZO="2.10"
-VERSION_MDADM="4.1"
-VERSION_POPT="1.18"
-VERSION_STRACE="5.14"
-VERSION_THIN_PROVISIONING_TOOLS="0.9.0"
-VERSION_UNIONFS_FUSE="2.0"
-VERSION_UTIL_LINUX="2.37.2"
-VERSION_XFSPROGS="5.13.0"
-VERSION_XZ="5.2.5"
-VERSION_ZLIB="1.2.11"
-VERSION_ZSTD="1.5.0"
-
-COMMON_URI="
- https://github.com/g2p/bcache-tools/archive/399021549984ad27bf4a13ae85e458833fe003d7.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://dev.gentoo.org/~blueness/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/archive/v${VERSION_LIBXCRYPT}.tar.gz -> libxcrypt-${VERSION_LIBXCRYPT}.tar.gz
- 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://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
-"
-
-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/~whissi/dist/genkernel/${P}.tar.xz
- ${COMMON_URI}"
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~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"
-RESTRICT=""
-IUSE="ibm +firmware"
-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=""
-RDEPEND="${PYTHON_DEPS}
- app-arch/cpio
- >=app-misc/pax-utils-1.2.2
- app-portage/elt-patches
- dev-util/gperf
- sys-apps/sandbox
- sys-devel/autoconf
- sys-devel/autoconf-archive
- sys-devel/automake
- sys-devel/libtool
- virtual/pkgconfig
- elibc_glibc? ( sys-libs/glibc[static-libs(+)] )
- firmware? ( sys-kernel/linux-firmware )"
-
-if [[ ${PV} == 9999* ]]; then
- DEPEND="${DEPEND} app-text/asciidoc"
-fi
-
-PATCHES=(
- "${FILESDIR}"/${P}-fix-btrfs-progs-deps.patch
- "${FILESDIR}"/${P}-fuse-glibc-2.34.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
-
- # Update software.sh
- sed -i \
- -e "s:VERSION_BCACHE_TOOLS:${VERSION_BCACHE_TOOLS}:"\
- -e "s:VERSION_BOOST:${VERSION_BOOST}:"\
- -e "s:VERSION_BTRFS_PROGS:${VERSION_BTRFS_PROGS}:"\
- -e "s:VERSION_BUSYBOX:${VERSION_BUSYBOX}:"\
- -e "s:VERSION_COREUTILS:${VERSION_COREUTILS}:"\
- -e "s:VERSION_CRYPTSETUP:${VERSION_CRYPTSETUP}:"\
- -e "s:VERSION_DMRAID:${VERSION_DMRAID}:"\
- -e "s:VERSION_DROPBEAR:${VERSION_DROPBEAR}:"\
- -e "s:VERSION_EUDEV:${VERSION_EUDEV}:"\
- -e "s:VERSION_EXPAT:${VERSION_EXPAT}:"\
- -e "s:VERSION_E2FSPROGS:${VERSION_E2FSPROGS}:"\
- -e "s:VERSION_FUSE:${VERSION_FUSE}:"\
- -e "s:VERSION_GPG:${VERSION_GPG}:"\
- -e "s:VERSION_HWIDS:${VERSION_HWIDS}:"\
- -e "s:VERSION_ISCSI:${VERSION_ISCSI}:"\
- -e "s:VERSION_JSON_C:${VERSION_JSON_C}:"\
- -e "s:VERSION_KMOD:${VERSION_KMOD}:"\
- -e "s:VERSION_LIBAIO:${VERSION_LIBAIO}:"\
- -e "s:VERSION_LIBGCRYPT:${VERSION_LIBGCRYPT}:"\
- -e "s:VERSION_LIBGPGERROR:${VERSION_LIBGPGERROR}:"\
- -e "s:VERSION_LIBXCRYPT:${VERSION_LIBXCRYPT}:"\
- -e "s:VERSION_LVM:${VERSION_LVM}:"\
- -e "s:VERSION_LZO:${VERSION_LZO}:"\
- -e "s:VERSION_MDADM:${VERSION_MDADM}:"\
- -e "s:VERSION_MULTIPATH_TOOLS:${VERSION_MULTIPATH_TOOLS}:"\
- -e "s:VERSION_POPT:${VERSION_POPT}:"\
- -e "s:VERSION_STRACE:${VERSION_STRACE}:"\
- -e "s:VERSION_THIN_PROVISIONING_TOOLS:${VERSION_THIN_PROVISIONING_TOOLS}:"\
- -e "s:VERSION_UNIONFS_FUSE:${VERSION_UNIONFS_FUSE}:"\
- -e "s:VERSION_USERSPACE_RCU:${VERSION_USERSPACE_RCU}:"\
- -e "s:VERSION_UTIL_LINUX:${VERSION_UTIL_LINUX}:"\
- -e "s:VERSION_XFSPROGS:${VERSION_XFSPROGS}:"\
- -e "s:VERSION_XZ:${VERSION_XZ}:"\
- -e "s:VERSION_ZLIB:${VERSION_ZLIB}:"\
- -e "s:VERSION_ZSTD:${VERSION_ZSTD}:"\
- "${S}"/defaults/software.sh \
- || die "Could not adjust versions"
-}
-
-src_compile() {
- if [[ ${PV} == 9999* ]] ; then
- emake
- fi
-}
-
-src_install() {
- insinto /etc
- doins "${S}"/genkernel.conf
-
- doman genkernel.8
- dodoc AUTHORS ChangeLog README TODO
- dobin genkernel
- rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf
-
- if use ibm ; then
- cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die
- else
- cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die
- fi
-
- insinto /usr/share/genkernel
- doins -r "${S}"/*
-
- fperms +x /usr/share/genkernel/gen_worker.sh
- fperms +x /usr/share/genkernel/path_expander.py
-
- 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
-}
-
-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-4.2.6-r3.ebuild b/sys-kernel/genkernel/genkernel-4.2.6-r3.ebuild
deleted file mode 100644
index 2259c81ff64a..000000000000
--- a/sys-kernel/genkernel/genkernel-4.2.6-r3.ebuild
+++ /dev/null
@@ -1,319 +0,0 @@
-# Copyright 1999-2022 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="7"
-
-PYTHON_COMPAT=( python3_{7..10} )
-
-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.0.8_p20141204"
-VERSION_BOOST="1.76.0"
-VERSION_BTRFS_PROGS="5.15"
-VERSION_BUSYBOX="1.34.1"
-VERSION_COREUTILS="8.32"
-VERSION_CRYPTSETUP="2.4.1"
-VERSION_DMRAID="1.0.0.rc16-3"
-VERSION_DROPBEAR="2020.81"
-VERSION_EUDEV="3.2.10"
-VERSION_EXPAT="2.4.1"
-VERSION_E2FSPROGS="1.46.4"
-VERSION_FUSE="2.9.9"
-VERSION_GPG="1.4.23"
-VERSION_HWIDS="20210613"
-VERSION_ISCSI="2.0.878"
-VERSION_JSON_C="0.13.1"
-VERSION_KMOD="29"
-VERSION_LIBAIO="0.3.112"
-VERSION_LIBGCRYPT="1.9.4"
-VERSION_LIBGPGERROR="1.43"
-VERSION_LIBXCRYPT="4.4.26"
-VERSION_LVM="2.02.188"
-VERSION_LZO="2.10"
-VERSION_MDADM="4.1"
-VERSION_POPT="1.18"
-VERSION_STRACE="5.14"
-VERSION_THIN_PROVISIONING_TOOLS="0.9.0"
-VERSION_UNIONFS_FUSE="2.0"
-VERSION_UTIL_LINUX="2.37.2"
-VERSION_XFSPROGS="5.13.0"
-VERSION_XZ="5.2.5"
-VERSION_ZLIB="1.2.11"
-VERSION_ZSTD="1.5.0"
-
-COMMON_URI="
- https://github.com/g2p/bcache-tools/archive/399021549984ad27bf4a13ae85e458833fe003d7.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://dev.gentoo.org/~blueness/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/archive/v${VERSION_LIBXCRYPT}.tar.gz -> libxcrypt-${VERSION_LIBXCRYPT}.tar.gz
- 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://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
-"
-
-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/~whissi/dist/genkernel/${P}.tar.xz
- ${COMMON_URI}"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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"
-RESTRICT=""
-IUSE="ibm +firmware"
-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=""
-RDEPEND="${PYTHON_DEPS}
- app-arch/cpio
- >=app-misc/pax-utils-1.2.2
- app-portage/elt-patches
- dev-util/gperf
- sys-apps/sandbox
- sys-devel/autoconf
- sys-devel/autoconf-archive
- sys-devel/automake
- sys-devel/libtool
- virtual/pkgconfig
- elibc_glibc? ( sys-libs/glibc[static-libs(+)] )
- firmware? ( sys-kernel/linux-firmware )"
-
-if [[ ${PV} == 9999* ]]; then
- DEPEND="${DEPEND} app-text/asciidoc"
-fi
-
-PATCHES=(
- "${FILESDIR}"/${P}-devicemanager.patch
- "${FILESDIR}"/${P}-fix-btrfs-progs-deps.patch
- "${FILESDIR}"/${P}-fuse-glibc-2.34.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
-
- # Update software.sh
- sed -i \
- -e "s:VERSION_BCACHE_TOOLS:${VERSION_BCACHE_TOOLS}:"\
- -e "s:VERSION_BOOST:${VERSION_BOOST}:"\
- -e "s:VERSION_BTRFS_PROGS:${VERSION_BTRFS_PROGS}:"\
- -e "s:VERSION_BUSYBOX:${VERSION_BUSYBOX}:"\
- -e "s:VERSION_COREUTILS:${VERSION_COREUTILS}:"\
- -e "s:VERSION_CRYPTSETUP:${VERSION_CRYPTSETUP}:"\
- -e "s:VERSION_DMRAID:${VERSION_DMRAID}:"\
- -e "s:VERSION_DROPBEAR:${VERSION_DROPBEAR}:"\
- -e "s:VERSION_EUDEV:${VERSION_EUDEV}:"\
- -e "s:VERSION_EXPAT:${VERSION_EXPAT}:"\
- -e "s:VERSION_E2FSPROGS:${VERSION_E2FSPROGS}:"\
- -e "s:VERSION_FUSE:${VERSION_FUSE}:"\
- -e "s:VERSION_GPG:${VERSION_GPG}:"\
- -e "s:VERSION_HWIDS:${VERSION_HWIDS}:"\
- -e "s:VERSION_ISCSI:${VERSION_ISCSI}:"\
- -e "s:VERSION_JSON_C:${VERSION_JSON_C}:"\
- -e "s:VERSION_KMOD:${VERSION_KMOD}:"\
- -e "s:VERSION_LIBAIO:${VERSION_LIBAIO}:"\
- -e "s:VERSION_LIBGCRYPT:${VERSION_LIBGCRYPT}:"\
- -e "s:VERSION_LIBGPGERROR:${VERSION_LIBGPGERROR}:"\
- -e "s:VERSION_LIBXCRYPT:${VERSION_LIBXCRYPT}:"\
- -e "s:VERSION_LVM:${VERSION_LVM}:"\
- -e "s:VERSION_LZO:${VERSION_LZO}:"\
- -e "s:VERSION_MDADM:${VERSION_MDADM}:"\
- -e "s:VERSION_MULTIPATH_TOOLS:${VERSION_MULTIPATH_TOOLS}:"\
- -e "s:VERSION_POPT:${VERSION_POPT}:"\
- -e "s:VERSION_STRACE:${VERSION_STRACE}:"\
- -e "s:VERSION_THIN_PROVISIONING_TOOLS:${VERSION_THIN_PROVISIONING_TOOLS}:"\
- -e "s:VERSION_UNIONFS_FUSE:${VERSION_UNIONFS_FUSE}:"\
- -e "s:VERSION_USERSPACE_RCU:${VERSION_USERSPACE_RCU}:"\
- -e "s:VERSION_UTIL_LINUX:${VERSION_UTIL_LINUX}:"\
- -e "s:VERSION_XFSPROGS:${VERSION_XFSPROGS}:"\
- -e "s:VERSION_XZ:${VERSION_XZ}:"\
- -e "s:VERSION_ZLIB:${VERSION_ZLIB}:"\
- -e "s:VERSION_ZSTD:${VERSION_ZSTD}:"\
- "${S}"/defaults/software.sh \
- || die "Could not adjust versions"
-}
-
-src_compile() {
- if [[ ${PV} == 9999* ]] ; then
- emake
- fi
-}
-
-src_install() {
- insinto /etc
- doins "${S}"/genkernel.conf
-
- doman genkernel.8
- dodoc AUTHORS ChangeLog README TODO
- dobin genkernel
- rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf
-
- if use ibm ; then
- cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die
- else
- cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die
- fi
-
- insinto /usr/share/genkernel
- doins -r "${S}"/*
-
- fperms +x /usr/share/genkernel/gen_worker.sh
- fperms +x /usr/share/genkernel/path_expander.py
-
- 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
-}
-
-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-4.2.6-r4.ebuild b/sys-kernel/genkernel/genkernel-4.2.6-r4.ebuild
deleted file mode 100644
index 6ad1250b75b1..000000000000
--- a/sys-kernel/genkernel/genkernel-4.2.6-r4.ebuild
+++ /dev/null
@@ -1,320 +0,0 @@
-# Copyright 1999-2022 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="7"
-
-PYTHON_COMPAT=( python3_{7..10} )
-
-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.0.8_p20141204"
-VERSION_BOOST="1.79.0"
-VERSION_BTRFS_PROGS="5.15"
-VERSION_BUSYBOX="1.34.1"
-VERSION_COREUTILS="8.32"
-VERSION_CRYPTSETUP="2.4.1"
-VERSION_DMRAID="1.0.0.rc16-3"
-VERSION_DROPBEAR="2020.81"
-VERSION_EUDEV="3.2.10"
-VERSION_EXPAT="2.4.1"
-VERSION_E2FSPROGS="1.46.4"
-VERSION_FUSE="2.9.9"
-VERSION_GPG="1.4.23"
-VERSION_HWIDS="20210613"
-VERSION_ISCSI="2.0.878"
-VERSION_JSON_C="0.13.1"
-VERSION_KMOD="29"
-VERSION_LIBAIO="0.3.112"
-VERSION_LIBGCRYPT="1.9.4"
-VERSION_LIBGPGERROR="1.43"
-VERSION_LIBXCRYPT="4.4.26"
-VERSION_LVM="2.02.188"
-VERSION_LZO="2.10"
-VERSION_MDADM="4.1"
-VERSION_POPT="1.18"
-VERSION_STRACE="5.14"
-VERSION_THIN_PROVISIONING_TOOLS="0.9.0"
-VERSION_UNIONFS_FUSE="2.0"
-VERSION_UTIL_LINUX="2.37.2"
-VERSION_XFSPROGS="5.13.0"
-VERSION_XZ="5.2.5"
-VERSION_ZLIB="1.2.11"
-VERSION_ZSTD="1.5.0"
-
-COMMON_URI="
- https://github.com/g2p/bcache-tools/archive/399021549984ad27bf4a13ae85e458833fe003d7.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://dev.gentoo.org/~blueness/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/archive/v${VERSION_LIBXCRYPT}.tar.gz -> libxcrypt-${VERSION_LIBXCRYPT}.tar.gz
- 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://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
-"
-
-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/~whissi/dist/genkernel/${P}.tar.xz
- ${COMMON_URI}"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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"
-RESTRICT=""
-IUSE="ibm +firmware"
-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=""
-RDEPEND="${PYTHON_DEPS}
- app-arch/cpio
- >=app-misc/pax-utils-1.2.2
- app-portage/elt-patches
- dev-util/gperf
- sys-apps/sandbox
- sys-devel/autoconf
- sys-devel/autoconf-archive
- sys-devel/automake
- sys-devel/libtool
- virtual/pkgconfig
- elibc_glibc? ( sys-libs/glibc[static-libs(+)] )
- firmware? ( sys-kernel/linux-firmware )"
-
-if [[ ${PV} == 9999* ]]; then
- DEPEND="${DEPEND} app-text/asciidoc"
-fi
-
-PATCHES=(
- "${FILESDIR}"/${P}-devicemanager.patch
- "${FILESDIR}"/${P}-fix-btrfs-progs-deps.patch
- "${FILESDIR}"/${P}-fuse-glibc-2.34.patch
- "${FILESDIR}"/${P}-gcc-12-boost-1.79.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
-
- # Update software.sh
- sed -i \
- -e "s:VERSION_BCACHE_TOOLS:${VERSION_BCACHE_TOOLS}:"\
- -e "s:VERSION_BOOST:${VERSION_BOOST}:"\
- -e "s:VERSION_BTRFS_PROGS:${VERSION_BTRFS_PROGS}:"\
- -e "s:VERSION_BUSYBOX:${VERSION_BUSYBOX}:"\
- -e "s:VERSION_COREUTILS:${VERSION_COREUTILS}:"\
- -e "s:VERSION_CRYPTSETUP:${VERSION_CRYPTSETUP}:"\
- -e "s:VERSION_DMRAID:${VERSION_DMRAID}:"\
- -e "s:VERSION_DROPBEAR:${VERSION_DROPBEAR}:"\
- -e "s:VERSION_EUDEV:${VERSION_EUDEV}:"\
- -e "s:VERSION_EXPAT:${VERSION_EXPAT}:"\
- -e "s:VERSION_E2FSPROGS:${VERSION_E2FSPROGS}:"\
- -e "s:VERSION_FUSE:${VERSION_FUSE}:"\
- -e "s:VERSION_GPG:${VERSION_GPG}:"\
- -e "s:VERSION_HWIDS:${VERSION_HWIDS}:"\
- -e "s:VERSION_ISCSI:${VERSION_ISCSI}:"\
- -e "s:VERSION_JSON_C:${VERSION_JSON_C}:"\
- -e "s:VERSION_KMOD:${VERSION_KMOD}:"\
- -e "s:VERSION_LIBAIO:${VERSION_LIBAIO}:"\
- -e "s:VERSION_LIBGCRYPT:${VERSION_LIBGCRYPT}:"\
- -e "s:VERSION_LIBGPGERROR:${VERSION_LIBGPGERROR}:"\
- -e "s:VERSION_LIBXCRYPT:${VERSION_LIBXCRYPT}:"\
- -e "s:VERSION_LVM:${VERSION_LVM}:"\
- -e "s:VERSION_LZO:${VERSION_LZO}:"\
- -e "s:VERSION_MDADM:${VERSION_MDADM}:"\
- -e "s:VERSION_MULTIPATH_TOOLS:${VERSION_MULTIPATH_TOOLS}:"\
- -e "s:VERSION_POPT:${VERSION_POPT}:"\
- -e "s:VERSION_STRACE:${VERSION_STRACE}:"\
- -e "s:VERSION_THIN_PROVISIONING_TOOLS:${VERSION_THIN_PROVISIONING_TOOLS}:"\
- -e "s:VERSION_UNIONFS_FUSE:${VERSION_UNIONFS_FUSE}:"\
- -e "s:VERSION_USERSPACE_RCU:${VERSION_USERSPACE_RCU}:"\
- -e "s:VERSION_UTIL_LINUX:${VERSION_UTIL_LINUX}:"\
- -e "s:VERSION_XFSPROGS:${VERSION_XFSPROGS}:"\
- -e "s:VERSION_XZ:${VERSION_XZ}:"\
- -e "s:VERSION_ZLIB:${VERSION_ZLIB}:"\
- -e "s:VERSION_ZSTD:${VERSION_ZSTD}:"\
- "${S}"/defaults/software.sh \
- || die "Could not adjust versions"
-}
-
-src_compile() {
- if [[ ${PV} == 9999* ]] ; then
- emake
- fi
-}
-
-src_install() {
- insinto /etc
- doins "${S}"/genkernel.conf
-
- doman genkernel.8
- dodoc AUTHORS ChangeLog README TODO
- dobin genkernel
- rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf
-
- if use ibm ; then
- cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die
- else
- cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die
- fi
-
- insinto /usr/share/genkernel
- doins -r "${S}"/*
-
- fperms +x /usr/share/genkernel/gen_worker.sh
- fperms +x /usr/share/genkernel/path_expander.py
-
- 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
-}
-
-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-4.2.6-r5.ebuild b/sys-kernel/genkernel/genkernel-4.2.6-r6.ebuild
index da125f8192a1..bac6ab0b593e 100644
--- a/sys-kernel/genkernel/genkernel-4.2.6-r5.ebuild
+++ b/sys-kernel/genkernel/genkernel-4.2.6-r6.ebuild
@@ -6,7 +6,7 @@
EAPI="7"
-PYTHON_COMPAT=( python3_{7..10} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit bash-completion-r1 python-single-r1
@@ -118,6 +118,9 @@ RDEPEND="${PYTHON_DEPS}
sys-devel/autoconf
sys-devel/autoconf-archive
sys-devel/automake
+ sys-devel/bc
+ sys-devel/bison
+ sys-devel/flex
sys-devel/libtool
virtual/pkgconfig
elibc_glibc? ( sys-libs/glibc[static-libs(+)] )
diff --git a/sys-kernel/genkernel/genkernel-9999.ebuild b/sys-kernel/genkernel/genkernel-9999.ebuild
index db61d4ca5c50..ebc8d966acc7 100644
--- a/sys-kernel/genkernel/genkernel-9999.ebuild
+++ b/sys-kernel/genkernel/genkernel-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# genkernel-9999 -> latest Git branch "master"
@@ -6,7 +6,7 @@
EAPI="7"
-PYTHON_COMPAT=( python3_{7..10} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit bash-completion-r1 python-single-r1
@@ -119,6 +119,9 @@ RDEPEND="${PYTHON_DEPS}
sys-devel/autoconf
sys-devel/autoconf-archive
sys-devel/automake
+ sys-devel/bc
+ sys-devel/bison
+ sys-devel/flex
sys-devel/libtool
virtual/pkgconfig
elibc_glibc? ( sys-libs/glibc[static-libs(+)] )
diff --git a/sys-kernel/pf-sources/Manifest b/sys-kernel/pf-sources/Manifest
index 46e568b921a4..a37877bbc2f8 100644
--- a/sys-kernel/pf-sources/Manifest
+++ b/sys-kernel/pf-sources/Manifest
@@ -2,7 +2,9 @@ DIST genpatches-5.18-1.base.tar.xz 3800 BLAKE2B 52cf33aea903e8783b554127936ebde6
DIST genpatches-5.18-1.extras.tar.xz 3924 BLAKE2B b4c7e29f0237ae9e4e3300c8be75c0def63969e5c4dec52d4d5259a6b3b6d27406883e45d2ad4d0fe576a1285121037fb88fcdeab58a5fabbb58d4847cbfbbfe SHA512 0182a96feca475471d1dde2e8326067e98f8f43a6e9122e29635a52ae4ca56eaf6ac349b189a0198704c9adee62cbdbd2def7e90d2dad564c72bec2f8ff32ec9
DIST linux-5.18-pf3.tar.gz 206979899 BLAKE2B e66670f81f55353f5850272316141833d5dfb804defd03bce2d1a84e404a2631cc5918714cb7dac75b4a9344d1cc597377bcdff94a034e5a544109e0ac2d12ae SHA512 85d9be125bc378ac5aada2f557e6636987c93a108bc7768ae3f314b03bdb4b2bfea66e4226ab04c6323464b3a299381356be49e85a458294fe3d39cd04ebed13
DIST linux-5.18-pf4.tar.gz 206956302 BLAKE2B 7eb7240792e2ab676facf7c3bae0811ec0db54c0d95d6ccd1ab60c50956e3fdb6cb4d5db3d77e5b08e7b18b78ffeebb5ac98d26ea4be0a7d04a49bc93421421d SHA512 b3b62618f0acb64f66369071eea503a0e894b3bb0c52941c738cc4ac7826a8327ddc32a27db02d493f3e022eacc18b1c7ed6d624b4a798e0773f17ee51f923fb
+DIST linux-5.18-pf5.tar.gz 206988172 BLAKE2B ae5abdee064b429019d7aaa4801d0bf852ed94dfef3965486cbc58d084e68ab9276651297857c1e64d5430e8b17728d1ebd7db597afd7ed7580d100e84431921 SHA512 dde7c08750858a719c70ff332df67b73432ace56571c73dfb7af7bf4ab4d5b5fbfb94486ac97b4b95e252f51a3be125fdb05a3abdc1b7443fb45ca4074810996
DIST prjc_v5.18-r2.patch 270353 BLAKE2B 15d7ed7a0eb6f7ad37feaf52ab7c383e1c7c3e72fb41a767c8d1151a0ad41255c216ede1e4938a041f3b628874ed61398c61dd7b0e0b62090730f2fd0f6a70db SHA512 25c558bd6281a09bb611c6cca68084b27d0f2e290d2c0575e88b6a94322fad86de6dbeda30eb77919edd5adff921ad445593d9478f115ec93fa2e4c7ed6b5c1e
EBUILD pf-sources-5.18_p3.ebuild 2630 BLAKE2B 2f5f6ecdc7145daa9bfc3a5215b36426c510255de78aee70b33dbc88509fa227dea386c3749a326c2564d1479c925ec2e6e595c6977dc9e114361523fe02144b SHA512 028345b5777fa5f2d3cb377a643e87abf2f5d72c4428643b014aa274a7594272eb5332a3ca2189d3355cbb59ca884e4bf283ce0477a61f366e4aa18517f9517d
EBUILD pf-sources-5.18_p4.ebuild 2626 BLAKE2B 2b2320bb1a0caafc9d8a874174c83ebb1418604cf7df3757b677ad2f0ce1eadcd03fec031679b825b49d06e314a8d5a250c82e4703f7a635077a0bb44e5219f2 SHA512 19c892d20a45733a51bc0684d85d55a3f884b708be02e47b9931634bd6f90d58de3e05e4036beca7718719dd24ab987afd5c00bfd1b6dacc5becaf3427a66226
+EBUILD pf-sources-5.18_p5.ebuild 2626 BLAKE2B 2b2320bb1a0caafc9d8a874174c83ebb1418604cf7df3757b677ad2f0ce1eadcd03fec031679b825b49d06e314a8d5a250c82e4703f7a635077a0bb44e5219f2 SHA512 19c892d20a45733a51bc0684d85d55a3f884b708be02e47b9931634bd6f90d58de3e05e4036beca7718719dd24ab987afd5c00bfd1b6dacc5becaf3427a66226
MISC metadata.xml 346 BLAKE2B aac642a4971d6bc11e22a4885e5a4cfdaa36287a97883ed22368729e1db9bbe1baa382fc542d6f89582a0e4f43d2e78419d09716f6d215477454b72dc365e2ec SHA512 94e6a97663111931e68e8af0656691776c39b4e8cc4e96c4a257a9617413ea238400096b15729b1e3b91d60e030c6eae3789401c444692d3bf7daa7c80e78a72
diff --git a/sys-kernel/pf-sources/pf-sources-5.18_p5.ebuild b/sys-kernel/pf-sources/pf-sources-5.18_p5.ebuild
new file mode 100644
index 000000000000..0227431b90ac
--- /dev/null
+++ b/sys-kernel/pf-sources/pf-sources-5.18_p5.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Define what default functions to run
+ETYPE="sources"
+
+# No 'experimental' USE flag provided, but we still want to use genpatches
+K_EXP_GENPATCHES_NOUSE="1"
+
+# Just get basic genpatches, -pf patch set already includes vanilla-linux updates
+K_GENPATCHES_VER="1"
+
+# -pf already sets EXTRAVERSION to kernel Makefile
+K_NOSETEXTRAVERSION="1"
+
+# Not supported by the Gentoo security team
+K_SECURITY_UNSUPPORTED="1"
+
+# We want the very basic patches from gentoo-sources, experimental patch is
+# already included in pf-sources
+K_WANT_GENPATCHES="base extras"
+
+# major kernel version, e.g. 5.14
+SHPV="${PV/_p*/}"
+
+# Replace "_p" with "-pf"
+PFPV="${PV/_p/-pf}"
+
+# https://gitlab.com/alfredchen/projectc/ revision for a major version,
+# e.g. prjc-v5.14-r2 = 2
+PRJC_R=2
+
+inherit kernel-2 optfeature
+detect_version
+
+DESCRIPTION="Linux kernel fork that includes the pf-kernel patchset and Gentoo's genpatches"
+HOMEPAGE="https://codeberg.org/pf-kernel/linux/wiki/README
+ https://dev.gentoo.org/~mpagano/genpatches/"
+SRC_URI="https://codeberg.org/pf-kernel/linux/archive/v${PFPV}.tar.gz -> linux-${PFPV}.tar.gz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-${SHPV}-${K_GENPATCHES_VER}.extras.tar.xz
+ https://gitlab.com/alfredchen/projectc/-/raw/master/${SHPV}/prjc_v${SHPV}-r${PRJC_R}.patch"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+S="${WORKDIR}/linux-${PFPV}"
+
+PATCHES=( "${DISTDIR}/prjc_v${SHPV}-r${PRJC_R}.patch" )
+
+K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
+ see: ${HOMEPAGE}."
+
+pkg_setup() {
+ ewarn ""
+ ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
+ ewarn "If you need support, please contact the pf developers directly."
+ ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
+ ewarn "the ebuilds. Thank you."
+ ewarn ""
+
+ kernel-2_pkg_setup
+}
+
+src_unpack() {
+ # Since the Codeberg-hosted pf-sources include full kernel sources, we need to manually override
+ # the src_unpack phase because kernel-2_src_unpack() does a lot of unwanted magic here.
+ unpack ${A}
+
+ mv linux linux-${PFPV} || die "Failed to move source directory"
+}
+
+src_prepare() {
+ # kernel-2_src_prepare doesn't apply PATCHES(). After pf-sources moved to Codeberg, we need
+ # to manually eapply the genpatches too.
+ eapply "${WORKDIR}"/*.patch
+ default
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+
+ optfeature "userspace KSM helper" sys-process/uksmd
+}