From 4df3bf9762850b34cd1ead5c80374d1a0fc3362e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 12 Jul 2021 08:41:54 +0100 Subject: gentoo resync : 12.07.2021 --- sys-kernel/genkernel/Manifest | 4 +- sys-kernel/genkernel/genkernel-4.2.2.ebuild | 312 ---------------------------- sys-kernel/genkernel/genkernel-4.2.3.ebuild | 312 ++++++++++++++++++++++++++++ 3 files changed, 314 insertions(+), 314 deletions(-) delete mode 100644 sys-kernel/genkernel/genkernel-4.2.2.ebuild create mode 100644 sys-kernel/genkernel/genkernel-4.2.3.ebuild (limited to 'sys-kernel/genkernel') diff --git a/sys-kernel/genkernel/Manifest b/sys-kernel/genkernel/Manifest index b0265dbe8c2e..2f00e7ccd621 100644 --- a/sys-kernel/genkernel/Manifest +++ b/sys-kernel/genkernel/Manifest @@ -40,7 +40,7 @@ DIST genkernel-3.5.3.3.tar.xz 331180 BLAKE2B 0f83b973505ccb0a92ae24e92509710bf96 DIST genkernel-4.0.10.tar.xz 460816 BLAKE2B d5922eede1192bb95ca235106a70118826c2c4c078f741e25954485f142d858bf612f35b94553fc409e4f6641b256a2940f83131c5b4bc7d6dbae85019bee7ff SHA512 29dc29b346b132cc6e7ea5298e49c93d01ba28531928cb7a6125864c7d03b74f70bc74043b220dfbbb6651ad67fcbc3d8ed8a2d0f40d271b83e9a8ab0325a2dd DIST genkernel-4.1.2.tar.xz 465288 BLAKE2B 89e26a861854d0cde808331db4bf3055495e9ec4be16952c495e481a5f9684601603ba22e5edda8f882fcddd68d1e406756cdc519936b90e33fe640107c8e529 SHA512 4b10f25ed8d97ffe075372aac22e0aff7be72405f02d9d8faddcc70063d04719dc93f9836d4f8375afca9b6870fcb15bda6ed796e5b2d2ef208ba3203d229a3e DIST genkernel-4.2.1.tar.xz 481988 BLAKE2B d2f4263ea1d66927e7087ad4c852e83a66d5fbf57a937fb20223d54533ec1d894236c9305e82ec91a44272abc990be5feb29572ce8a407f61eb015a262518734 SHA512 6999706a695817fe453d17ce5b18e3cb234d25abd61ada7eea0769eed6541306e5d76d21061a65f66d7ae3622936531b5af01099b35ccfc1b4d372b0ff5241ce -DIST genkernel-4.2.2.tar.xz 486472 BLAKE2B 9038bec11bbb916fd332a8f9c2aa5ab067d7f04e9485bcb052f4e12c6c6972f216af0088be14bd15ececa4673dd7f1345adb48d77fa96f9d15f97362cfb29782 SHA512 2a9c395caac9e4f95b9bcd3be197b33da4644f795fca2e49700b1f8480daa4d51fe80866332290b05e3ffde20296b3a6d655d00ff77f311b7c159c57255169c4 +DIST genkernel-4.2.3.tar.xz 486688 BLAKE2B bd6546ef3c7205e14b8d7e563899fc13bd0c1f90e929c6a805f9e89758fb56fac5cc4ebf6f44d708cf199fc6e2a42704a9d4314bdcceb11e402afb9877608cc6 SHA512 a35b87931e080fe1b61032f8ea655b774c29d652086b7bf31f98aa829490edf8a9e9dbd41c5b8274b64db1946b162977d907f3665da1d99a62666f745f62b6f1 DIST gnupg-1.4.22.tar.bz2 3746546 BLAKE2B 9a2d37eeab10f2a7353804098e865ad45db846696a00a47f5bebf47145f79e0d2bf9c01c0195e2fe79af07946a3feac0d4589656c3e698a3a548ff1dd74ce759 SHA512 c03acac0fa55761470bb085d78a44e2b99ebb187e8396cbb031a184b1e40bef2a40c91da07755d1a20610a3daa6aa1eefea2d12a0dbd5a79a45466166419c708 DIST gnupg-1.4.23.tar.bz2 3749353 BLAKE2B ec5e6bef0c7bb2a65813d7852cebeaa24c4855f9d9d9e802070da50b89fff56b747682933aa766dd130f849efcfe28f7aa74f3153405429bcf3845ef29c6dd6e SHA512 78dc52a2010202a4afc8814b29fda657a6c9fe230d5e7db11ae040edd2b0ca819e1baa4dbd6c0d04d36cd353df484e83f52d17759d2891c2cf7025c0b5d36612 DIST hwids-20200813.1.tar.gz 3680906 BLAKE2B 652cf4b05ead42a750c6f41ad78650ea8b0125f90563dec37bfa8388d021ceab12e94fd2f949b3f7b3b7c09a356d279b91e62164af2cf066cfee07ab583f8b83 SHA512 5ba15067969fa19d3218f523c1a0186568841466de4d18c563b5f09202ab7185c4df02b962f70eb6d3e99915caad8a743fc6c6349f49b666db742f9ced8053fc @@ -90,6 +90,6 @@ EBUILD genkernel-3.5.3.3.ebuild 4938 BLAKE2B 4732c963327740e9f21d4b86e7665045c1a EBUILD genkernel-4.0.10.ebuild 9572 BLAKE2B aaa3dda80524b29233e333e13e9076148d1c1fdbc36c9a700c1974c3f924a6d5f006265a44029ab75888966cb634d2a642ee984e1a91a4a6cc4fd61b7d3d7a7b SHA512 1cf0391bfc65f9445030fcb5aaa22c65bb8b72bdd376b37e915f9080bde240cf0118cd337feb18aee7fc0d4b0603540f5d55f2856e3f04cca4a120c5915db5b4 EBUILD genkernel-4.1.2-r3.ebuild 11101 BLAKE2B caaf2120d79157e1ff0f9c7a6b0c4045781883bfc8f74fbc57e63eba94ae3883955898e91ca0afa4215a9ccb2d5b2f67f16b23a9ce5dd68f5aafdbce358ea085 SHA512 d4143ccfc3cdd8f7807ed900bf02897b214b0052c6988266fc2f03f2bdadae3ae0f61ab58301b69586178d734a2684a15e56175b753706ec269891da13870ed8 EBUILD genkernel-4.2.1-r1.ebuild 11121 BLAKE2B af17aa02ff1b8dba065b61d4d00e15865ad2a7b1f7339276b8c8960054685811cf26f0e894bfd498d563e1d6daf0400f324051efdbb2ac00d66826c0d1f7d967 SHA512 27e57755c3f397457fc556017634eb97b317a1ec694973bf341e466684d8c8b964d5f654e9722e151fd80ce8a5fb33e1fefba2940345ac46f5cb608dbc4c84fc -EBUILD genkernel-4.2.2.ebuild 11463 BLAKE2B affad651c75155274cbdb43ae73267d9d20b7d6a62f4d4e52bfd8f14f33922d38a9e07ba8380ea04dd6029f0dfbfa46052d75a0e49434428ceb856ace3b57cc3 SHA512 cd678a9141f05971833d122217ee4442214b8f81544e1eade762b1ad0501c89fc9805c7333ee026abec11a48e7ef435a78861befb45791486fc5d360396ed833 +EBUILD genkernel-4.2.3.ebuild 11463 BLAKE2B affad651c75155274cbdb43ae73267d9d20b7d6a62f4d4e52bfd8f14f33922d38a9e07ba8380ea04dd6029f0dfbfa46052d75a0e49434428ceb856ace3b57cc3 SHA512 cd678a9141f05971833d122217ee4442214b8f81544e1eade762b1ad0501c89fc9805c7333ee026abec11a48e7ef435a78861befb45791486fc5d360396ed833 EBUILD genkernel-9999.ebuild 11463 BLAKE2B affad651c75155274cbdb43ae73267d9d20b7d6a62f4d4e52bfd8f14f33922d38a9e07ba8380ea04dd6029f0dfbfa46052d75a0e49434428ceb856ace3b57cc3 SHA512 cd678a9141f05971833d122217ee4442214b8f81544e1eade762b1ad0501c89fc9805c7333ee026abec11a48e7ef435a78861befb45791486fc5d360396ed833 MISC metadata.xml 637 BLAKE2B c2ab07375e789025a16008cad8253de5cdc09626b5f0b107e0f5187f9306c526816d4ba63e3737724855db3459190710434cb0984f2603b73619458ff65196fc SHA512 d2fadbfefd976cc9ae5c0fc66e184f050a1a8f208f777d8a51687a5a6bc171a46b010dfe055d69d41020ff1fea10b9ca54bd2d3e0414dfb8d0caa6317a05f66b diff --git a/sys-kernel/genkernel/genkernel-4.2.2.ebuild b/sys-kernel/genkernel/genkernel-4.2.2.ebuild deleted file mode 100644 index a7c583a33ed9..000000000000 --- a/sys-kernel/genkernel/genkernel-4.2.2.ebuild +++ /dev/null @@ -1,312 +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.12.1" -VERSION_BUSYBOX="1.33.1" -VERSION_COREUTILS="8.32" -VERSION_CRYPTSETUP="2.3.6" -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.2" -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.3" -VERSION_LIBGPGERROR="1.42" -VERSION_LIBXCRYPT="4.4.23" -VERSION_LVM="2.02.188" -VERSION_LZO="2.10" -VERSION_MDADM="4.1" -VERSION_POPT="1.18" -VERSION_STRACE="5.12" -VERSION_THIN_PROVISIONING_TOOLS="0.9.0" -VERSION_UNIONFS_FUSE="2.0" -VERSION_UTIL_LINUX="2.37" -VERSION_XFSPROGS="5.12.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://dl.bintray.com/boostorg/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 - firmware? ( sys-kernel/linux-firmware )" - -if [[ ${PV} == 9999* ]]; then - DEPEND="${DEPEND} app-text/asciidoc" -fi - -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--"' - ewarn 'to "vmlinuz-". 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 -- '\/dev/null | wc -l) - if [[ ${n_root_args} > 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.3.ebuild b/sys-kernel/genkernel/genkernel-4.2.3.ebuild new file mode 100644 index 000000000000..a7c583a33ed9 --- /dev/null +++ b/sys-kernel/genkernel/genkernel-4.2.3.ebuild @@ -0,0 +1,312 @@ +# 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.12.1" +VERSION_BUSYBOX="1.33.1" +VERSION_COREUTILS="8.32" +VERSION_CRYPTSETUP="2.3.6" +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.2" +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.3" +VERSION_LIBGPGERROR="1.42" +VERSION_LIBXCRYPT="4.4.23" +VERSION_LVM="2.02.188" +VERSION_LZO="2.10" +VERSION_MDADM="4.1" +VERSION_POPT="1.18" +VERSION_STRACE="5.12" +VERSION_THIN_PROVISIONING_TOOLS="0.9.0" +VERSION_UNIONFS_FUSE="2.0" +VERSION_UTIL_LINUX="2.37" +VERSION_XFSPROGS="5.12.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://dl.bintray.com/boostorg/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 + firmware? ( sys-kernel/linux-firmware )" + +if [[ ${PV} == 9999* ]]; then + DEPEND="${DEPEND} app-text/asciidoc" +fi + +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--"' + ewarn 'to "vmlinuz-". 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 -- '\/dev/null | wc -l) + if [[ ${n_root_args} > 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 +} -- cgit v1.2.3