From 21435953e16cda318a82334ddbadb3b5c36d9ea7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Jan 2020 15:51:32 +0000 Subject: gentoo resync : 15.01.2020 --- sys-kernel/gentoo-kernel/Manifest | 28 ++++++++ .../gentoo-kernel/gentoo-kernel-4.19.94.ebuild | 80 +++++++++++++++++++++ .../gentoo-kernel/gentoo-kernel-4.19.95.ebuild | 83 ++++++++++++++++++++++ .../gentoo-kernel/gentoo-kernel-4.19.96.ebuild | 83 ++++++++++++++++++++++ .../gentoo-kernel/gentoo-kernel-5.4.10.ebuild | 79 ++++++++++++++++++++ .../gentoo-kernel/gentoo-kernel-5.4.11.ebuild | 81 +++++++++++++++++++++ .../gentoo-kernel/gentoo-kernel-5.4.12.ebuild | 81 +++++++++++++++++++++ sys-kernel/gentoo-kernel/metadata.xml | 11 +++ 8 files changed, 526 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/Manifest create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-4.19.94.ebuild create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-4.19.95.ebuild create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.4.11.ebuild create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild create mode 100644 sys-kernel/gentoo-kernel/metadata.xml (limited to 'sys-kernel/gentoo-kernel') diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest new file mode 100644 index 000000000000..fc9de031b822 --- /dev/null +++ b/sys-kernel/gentoo-kernel/Manifest @@ -0,0 +1,28 @@ +DIST genpatches-4.19-93.base.tar.xz 2753264 BLAKE2B f73900a43a478378851fe125f71af01322f01d848bcfe5968cbda3dcb30224e917c6ff7eb3bbda25d336b7b9d10236f7b3afa3bc5235139515d189844abfb627 SHA512 77a3f0e51f41b42beea503b6684dd2436219af998ac8c6b773e944dc6172855340199f2c9f7e7d66d5fca41ff773c3d9a40c1fa521739c52c415632fe3a4395f +DIST genpatches-4.19-93.extras.tar.xz 17504 BLAKE2B 349ef4c6909679001c0f20d31b694799b6b5a38a6f315833930c5c47d90a0de887e9e28954e1e5560f4e2bf522ce81c8379e3cf789cf395e2451689edd314cbc SHA512 1b1c6578d4c79fe8ad0048fd0a304b1731764b7512116e5779c59980f8f86021c4435562fe49e8d7e91c0bad0e204de2338226d63123ce35ea8a9e5533e074c6 +DIST genpatches-4.19-94.base.tar.xz 2770260 BLAKE2B c73d1087b01b8886e460cc927e0335875fc48d5a0407d04ec6e599fd3fe65ebcf623a9d0c55524cb768ee19dd9c438e9375390ee1a764901b80822e3f05ece72 SHA512 0f2b24aac811f721521780bc173456d81d0ed26f494c6064706f664f5738b821e8fcef73b9e5da2281131d1fc95445ebf5c7cf74ba9e375a6f162da921c62e6a +DIST genpatches-4.19-94.extras.tar.xz 17496 BLAKE2B 02bcdfc41bbceea5b6620b47fb068af4b80b0130a3960ad1139215f921efc06afb105607e1494d2528c38bd89cfd0f2f22e306d16a356d4232597e7396217216 SHA512 7cba63d86c873ce8e5550436c13c639caf82539a311490033c84397ea4a206107f5fed68ea606ef37a0a06b4669826e2219d552a034709112bae9f1e46163999 +DIST genpatches-4.19-95.base.tar.xz 2780232 BLAKE2B cc5ba5e36acb8834ca2313ec134ad4156b543cfda08f08677b5f6efcda8a7b5b9bcdc70691e33698af1e81a9e381916bd5e41e2c5218c2930a928df82d44b7fd SHA512 5f935cc3cd1ecafaeca148010b28d0742dcbbf50d28f77ae1255016548fe921a83befcf577a52553f161cfa54da2c9df204abbbc2004378bc0f8ac58fbafdf04 +DIST genpatches-4.19-95.extras.tar.xz 17492 BLAKE2B 5138c0138058e5dde744a056bf5068cc1db98cd3a52375d30ca72007d89d5c2b87e1493f1c3cc83cc7d0f1f489783ddf98f1b6d76b33ced4a7f18ae13e1b61cc SHA512 a1d5428a4aa5484dd26e4548a8796f54884541d4012e7591e0bf3c5f63fd9af242fa1719c5bda8e956e0be69f207adedfd0061ccbc00963ceb1272c03edb0e1a +DIST genpatches-5.4-10.base.tar.xz 391596 BLAKE2B 8ee4da95c032e586bd72f7147f76e2423486a96dc69c8251e5913ffd9c22f31daf66a134f65bf11ed4feb7fd8e3c7cbb7ee93752dd5cff81787dffb87d294ccb SHA512 dff22f648a27c46fe5500186ad780d106a37bbd3bff37020947dd9e2661a0f24954347ca93f526a963ab4993bee4e0a14aad06870cce82479fc0987c621f0e50 +DIST genpatches-5.4-10.extras.tar.xz 1740 BLAKE2B 804259c95725a2366baf8254e518c11077efbf207612b58193748983e10a0e0270bcd2fa8270a7a7321f49a04112ed9688788c922fba77dced3cb704d2645d1c SHA512 abb1e10bf19fffeb66c93f6dc83333b8dcdef8a6b0d6c2b3f00e97cf42258de1c441ae1455750275bc4c311de9fd7b0905990bc842d837890738665341d75918 +DIST genpatches-5.4-11.base.tar.xz 431936 BLAKE2B a94659cd51a23e137e578a3619b9b8a7d46a9fb7ab3530efa70b04931834b79e3bc9fe47452ebe21cf1f3d932a394dcdef9fe6c781b0accd58e3f475807e5574 SHA512 4011764719fb8da0d922bb90fc355103c0c58e122369bcc35cb2699669478820e68aa0c0e7ecb2b7e446fd232c3422d69195beff151d3146b2eeeec1e1fa0e5e +DIST genpatches-5.4-11.extras.tar.xz 1744 BLAKE2B 1d91acfccddbe890f2663b7c02fcd0c663db2f6856c930fef82239080cb9dfe0d7630a961b5a34a51ba2b4c930e24c094bbfa633e998f714c8eb42e1ecf1c7d1 SHA512 7bde2dd58bb0560e16c1f1e800ac7f2975e3363f3dfeba738218facaa8c55927e05a7bd614a699c7ab9b3e0ac89c1d92062043a10262e09403425db13b407413 +DIST genpatches-5.4-12.base.tar.xz 449796 BLAKE2B c0d88dd19d2e71c877bfc4320801a4ed617444accad16440512ceb721e127200db522153db73640e3b00c66561eb497a09775f71d4a3ba528718850350ad9ad1 SHA512 edc638f64933078b2a6601b88ba030283cceed5e739ce43d1748d6d46196d75e02477ae30775f653bf664bc046b117164cd62572f32099a82816c536bdde4c2d +DIST genpatches-5.4-12.extras.tar.xz 1740 BLAKE2B c9586b5120c0b177ce236f469ffc7412e7fa94cc97fd7b67b7bd888758c238fea15eb457fea847c6b4b7bc9475377c6c24c8a617e4cecee3360340234872d445 SHA512 771bb67ccc837bbfb3aeb129fb9110e3dc9972868fc43a6a5f2dc5ea2bcdacfecf65151e32427af34411238bcc1683438a99081bf09e1733cd5c8a09968a8d09 +DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d +DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258 +DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4 +DIST linux-5.4.3-arch1.i686.config 241295 BLAKE2B 795b6286bd1e7dc6aa5c1428e7bf08c204ce6c8cbee57863e9f64f8990790cc4398a7d062b54c89b1b80640f02a40fce028d9397725db0f968e8028b0611a20f SHA512 8c7387ded21c02b9cffee0e6d61a7040c44deae21764f743f7719f0d1c7adf684f6b62a501fe31709787ba741859e55fc3b8a3d3d27e52c09f2d8604212bf0a7 +DIST linux-5.4.7-arch1.i686.config 241295 BLAKE2B da45f2de600fafdb48e9bb37e6f7a8ea57ed31dc6fb47062bcee694db0b824844c0556ad6a88afa33bf3a365f50c9ac6326389cfa87d0e47a012252fa1444536 SHA512 dcfd9c03cbafeeb942fd37c1f18432aeeacaff438cb88528e17aa8c28bae20090695a2acad08a707e66ecaa5851aa47b012baa6d9274c617fa8c71cde641e8ec +DIST linux-5.4.7.arch1-1.amd64.config 241598 BLAKE2B 536cce5cc23cf20e71cba7468a125557f85d8ffc3cb194dced79bd489d39f2e4ed3960816d15d1491007d11b3af466e0a74267f983dfcc5f511f9f566f7e9821 SHA512 8658db603e180c75caf76972d85ecf8a4e9c9cf6e047b4f9fc7cba0fa426f434361528c1c29b5580f116cdd23091bf9afb6635d751f3b90c4e968d16db90eac1 +DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f +DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641 +DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895 +EBUILD gentoo-kernel-4.19.94.ebuild 2345 BLAKE2B 6a4b4633e40e37fcb02f48de683ddbbc08bc2281ca69436d84cc19ac234ddf70d2b7b01e07b7019df1f8eec7733c3ccf21526b04c07974ee52f4d2e8fa06d747 SHA512 0e48a3b56eac12cab05d5e088d5c10b08c9072a5bcf619642ba0f4e4f5fe3d293859bacd9bf76932842a11ba8d011acb6f2ccc2f6512b35cc7e1f0b3c92cbb1a +EBUILD gentoo-kernel-4.19.95.ebuild 2545 BLAKE2B c204090769d7a8801998e584b56a50818dea9619512490594d1f869a6fa4a4baf6c12bdbc2350824e62407bba7c01f85a684b27f2101afb7cfb290877af0a0da SHA512 c10676600b48cb88c21c9058b40a34a39301154dc57263554975e7c28956f7800168511dbd56025ca39a8241fc857d9907a631ed0a2d25769629f255309732f9 +EBUILD gentoo-kernel-4.19.96.ebuild 2545 BLAKE2B f6bb4289a9ef4d95be988c6350b3f9ded4a8a3dfdfde03dfb29301cac58c3ae99e63bb57dd687a4713b38866a8e717fe1cf50f0e0c2541e00151c832cd5d5912 SHA512 5685e99141712963914fe87727e02a2dd37e2c9dbdc92c3d75f91fe9d5e8d89f0d3edc9b1a1faa02259a93e13e481d24c3fbb3b2ff1ba7504704f6c717547e69 +EBUILD gentoo-kernel-5.4.10.ebuild 2283 BLAKE2B 86b2009e9f1333f20bfddec032e05d2eabb0d9e49d21f501286719a94cbd32107f048e7e67356e277f03595b5795e5a1d6a84fd60f62f13cbfc467f9b7c3857e SHA512 6802cc812f9e5258da307b068151cd88ab1c269030421d36dc110d5525cf2193a35ff392b569a8fb5858e0755a799b59494963f6217562e6f4a2106534a735bb +EBUILD gentoo-kernel-5.4.11.ebuild 2433 BLAKE2B ed783bc8bdf1db0e65199f5e998578b09c8d9722c57b82e5bdb077c06dd07b8f61c43ec9dc9cba172344e00036232ad297c8d08519b1575fc38ef5c07b11bd11 SHA512 c50d0484f8a7c2ce26d22f805f44329052c177f5a2ef7ab9dfae062481979ead368a012a81c7442df5fecd548cc59d5b4fad1936bc0f6ad40ce9abe39642dbbf +EBUILD gentoo-kernel-5.4.12.ebuild 2425 BLAKE2B 14c8075e5448b53fdcdf67792b49aace72913ff0b6b46d3008927dfe9c4285d27b6c8d569a9484ea33d0a64c9db107f95556bd2123160e78505997f8b696c94c SHA512 09fa73d340d5cee391c42296bed8c15a1fc3f1ac6d20f40a96467e4358ea7592a700eb41014ce1a3885d6bfe03199339d34f5e41d74f3f16e07fdd81ff57a0ea +MISC metadata.xml 352 BLAKE2B d45c3f23945883bcb819c225e43715f5cfd86090f3e928dfb62b26a7b38b98421ee0c0d3b4fe9ebdb9de39c294cbc288c1731e9493f69436a6916034d8b834d9 SHA512 e3b9651b8f0fa3b07626b4cfb01456e4ecea1ae053ad9e9e1b3c925a5de601b35c9f3983535d62edae9ef49a40fe4c319e013542908839f30415f6ad85463e24 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.94.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.94.ebuild new file mode 100644 index 000000000000..fb7d7e79fac3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.94.ebuild @@ -0,0 +1,80 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV} +GENPATCHES_P=genpatches-${PV%.*}-93 +AMD64_CONFIG_VER=4.19.92-arch1 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9 +I686_CONFIG_VER=4.19.85-arch1 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + # (skip patch release patches, we just fetch newer sources) + "${WORKDIR}"/[2-9]*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.95.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.95.ebuild new file mode 100644 index 000000000000..32976e532b98 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.95.ebuild @@ -0,0 +1,83 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-4.19.94 +GENPATCHES_P=genpatches-${PV%.*}-94 +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts +AMD64_CONFIG_VER=4.19.92-arch1 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9 +# https://git.archlinux32.org/packages/log/core/linux-lts/config +I686_CONFIG_VER=4.19.85-arch1 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + # (skip most patch release patches, we just fetch newer sources) + "${WORKDIR}"/1094_linux-4.19.95.patch + "${WORKDIR}"/[2-9]*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild new file mode 100644 index 000000000000..4c339a8d3f81 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.96.ebuild @@ -0,0 +1,83 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-4.19.94 +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1)) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts +AMD64_CONFIG_VER=4.19.92-arch1 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9 +# https://git.archlinux32.org/packages/log/core/linux-lts/config +I686_CONFIG_VER=4.19.85-arch1 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + # (skip most patch release patches, we just fetch newer sources) + "${WORKDIR}"/109[4-9]*.patch + "${WORKDIR}"/[2-9]*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild new file mode 100644 index 000000000000..788f632136a3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild @@ -0,0 +1,79 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-${PV##*.} +AMD64_CONFIG_VER=5.4.7.arch1-1 +AMD64_CONFIG_HASH=ff79453bc0451a9083bdaa02c3901372d61a9982 +I686_CONFIG_VER=5.4.3-arch1 +I686_CONFIG_HASH=076a52d43a08c4b3a3eacd1f2f9a855fb3b62f42 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.11.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.11.ebuild new file mode 100644 index 000000000000..f4f8db8f848c --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.11.ebuild @@ -0,0 +1,81 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-${PV##*.} +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.4.7.arch1-1 +AMD64_CONFIG_HASH=ff79453bc0451a9083bdaa02c3901372d61a9982 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.4.7-arch1 +I686_CONFIG_HASH=f888688da499e17f3c7a5f15a3c44482a29acc2c + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild new file mode 100644 index 000000000000..3c88e7c1bad9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.12.ebuild @@ -0,0 +1,81 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-${PV##*.} +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.4.7.arch1-1 +AMD64_CONFIG_HASH=ff79453bc0451a9083bdaa02c3901372d61a9982 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.4.7-arch1 +I686_CONFIG_HASH=f888688da499e17f3c7a5f15a3c44482a29acc2c + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' + # we do support x32 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' + # disable signatures + -e '/CONFIG_MODULE_SIG/d' + -e '/CONFIG_SECURITY_LOCKDOWN/d' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +} diff --git a/sys-kernel/gentoo-kernel/metadata.xml b/sys-kernel/gentoo-kernel/metadata.xml new file mode 100644 index 000000000000..b0b959adbe61 --- /dev/null +++ b/sys-kernel/gentoo-kernel/metadata.xml @@ -0,0 +1,11 @@ + + + + + dist-kernel@gentoo.org + Distribution Kernel Project + + + Build initramfs along with the kernel. + + -- cgit v1.2.3