diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-26 02:00:48 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-26 02:00:48 +0000 |
commit | 403335d7014372971e9e9267493a808d08bab48e (patch) | |
tree | ffd28ddc69e6fe6543b018a00c9fad058bdda027 /sys-kernel | |
parent | 7f0b7329b3aa78ea82792fdf68ab48415fe4cc35 (diff) |
gentoo auto-resync : 26:11:2024 - 02:00:48
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/Manifest.gz | bin | 5071 -> 5072 bytes | |||
-rw-r--r-- | sys-kernel/genkernel/Manifest | 8 | ||||
-rw-r--r-- | sys-kernel/genkernel/files/genkernel-4.3.16-globbing-workaround.patch | 19 | ||||
-rw-r--r-- | sys-kernel/genkernel/files/genkernel-4.3.16-musl.patch | 297 | ||||
-rw-r--r-- | sys-kernel/genkernel/files/genkernel-4.3.16-posix-shell.patch | 38 | ||||
-rw-r--r-- | sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch | 11 | ||||
-rw-r--r-- | sys-kernel/genkernel/genkernel-4.3.16-r1.ebuild | 291 | ||||
-rw-r--r-- | sys-kernel/genkernel/genkernel-9999.ebuild | 13 |
8 files changed, 674 insertions, 3 deletions
diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz Binary files differindex 612c98742efa..01aa4a27477b 100644 --- a/sys-kernel/Manifest.gz +++ b/sys-kernel/Manifest.gz diff --git a/sys-kernel/genkernel/Manifest b/sys-kernel/genkernel/Manifest index 8683678e3041..a274f0e456dc 100644 --- a/sys-kernel/genkernel/Manifest +++ b/sys-kernel/genkernel/Manifest @@ -1,8 +1,12 @@ AUX genkernel-4.3.12-mdadm-musl-fix.patch 292 BLAKE2B 2cf37842560efccef4fbffa92a91bc1ffd23efb80f81906b7cae0a3157a92029aed3ee888b5ceb8b87717a350928334769bc706ae2e6bbef4b355f1ce147f3f6 SHA512 8153419421104ad574860c75a95dcbb27cf0779a99ae5a8c86dbf86d5a37227f9dd66a5da920eca55d586d5919bc0384119fcd47334b1f92d48f1331a1db74a7 AUX genkernel-4.3.15-fix-srcdir-for-new-bcache-tools.patch 1151 BLAKE2B f1a1d58049aed1fb6803675d1d0eebfa6fcf57751ef44079b2d56d6533e8eaa553ddd2431bc86db7e22aa909ffb73977a222d23729b206c7458b87c947f00152 SHA512 96c681e3f8ec4ea0a7460a6d190454fe668edf1112ae2e0bcfed02448e6fa59a3edc8db7b70ef5f0a8b51184c37eb0e085812d0e06fe760dc95108e9d9955290 AUX genkernel-4.3.15-mdadm-musl-fix.patch 561 BLAKE2B 8555b3620d3f552292b291f9a216cc8ac449e799c2028d1bb86a17204c30e52d3493e8e78efa62c026e341615346f128e9ff4552b45791b7ae762789eee9869a SHA512 02d129c0bb037d9d335270046dd2b1dd05c2a59cdd3673f6231a147454d1410ff98f2fa18e398b81a5d4394ae2b9243c488889a692d7f5aa410fcac83df80873 +AUX genkernel-4.3.16-globbing-workaround.patch 606 BLAKE2B 7c731611c84d25bacb9e904c38144182414693c6ead591b2f2ce089e0ed20c508baa0b80ddf0ea96af933d9d50754bce55b8af516487baf1f23254d6b3e7d615 SHA512 83d960797b7991ef56188977254dfec107ebfedcb5eb666114961ca0f5554e577001665a0e75edc8ff7f3bf3395f4f5ce97774f00fe055d808539ab1b8e5e970 +AUX genkernel-4.3.16-musl.patch 10313 BLAKE2B 10801e7b029c0b18238365675d41c017091acd6129ac5cf43c48b0c70b9b675cfbcb83514df30952256dc881bd748bd520aa851681b0c0446e3574f676e04b74 SHA512 750ff1a6fb4f6a3720e2a30dbfba29c8138140ec1e66f2cedc076818eba3b40d5df174e77953695bf1d0b90237461f2e655532225958df3f8d3288130373ca96 +AUX genkernel-4.3.16-posix-shell.patch 1291 BLAKE2B fc75c84a6ba7a00a3afb44c4913ba32568438388f75bc06e9755b48ad70094b0cf952773841af1a6e1c790ce1c63327d260da8a037c4f4413538d58528f1f51a SHA512 063764829c3321d9d11bc72a612bf6463e38790f20b13995046a3e7c977d8812508a4d2d0dd226d64ff0d6ffc8d78ddf1d3d8ecf8696f875898b625906f6c197 AUX genkernel-4.bash 2479 BLAKE2B e5504698ab49bb62623fcdfdd4a54b19ee6d88f96a682f08dc282e46ec26bd22d9c54bcdc9b2bdcc6a96295de1ab96351d35b304eb176f5d177c221cd8d82180 SHA512 6a5709a410c5c07b7a343ecc141aa72de73d3b4acd0a69c05c61c801835a59dd17d9a528f6b68f12ac00ff4b6e5954b03237472501383aa390eb1365dd69c281 AUX initramfs.mounts 816 BLAKE2B 4f36e51fef78435369d43647db853c7bfde217cc93002fc010900692f67171512366e6599f08c5f2093490713aa7715e903b7e06528e3f2c6d8468f506938ed5 SHA512 97e5f92d135cff3911a68c7f1afd0f781ec1c1b794cdc824d74f8c119104ecb40bd7180be8414dc72f3a5a811143d6b4bf443ac1d3ff7a71b1e88cbf7c179665 +AUX lvm2-2.03.20-dm_lvm_rules_no_systemd.patch 673 BLAKE2B ac8eec01814bced1b172793207764536907a439b76d006c2e41486048edeecd6a780795a98f52584053923ae060de5b72df0cf9abf11052ba1b6a474d47cc83e SHA512 1a5dbbf3e2bb2bee4fa918a4553f0f99afd3606ddf05cfbaca5476faeb1ed727ab9aa2d2b3662e7c6e3c82b1b859e77f290e579320f158d1def8044804fb969c DIST LVM2.2.02.188.tgz 2421550 BLAKE2B bed90c8454cd4b20fdeec6dcbf5a9f97c9310671aea3b2252f8069cfa439fcb050f5ad95f928a7125a1734a4dc5ac985da99a4a570538e377a7205191a505476 SHA512 8c9db17c49dc8ebcab6c7f246ab85870a80658be811cf7f4d8f36abbebafa355b030bfc1e3bcbad73ccccb7fcd06d4a95ac547ca15d18d33715126da92703dca DIST LVM2.2.03.22.tgz 2755031 BLAKE2B 79bbea84bd82f111c1bb5de336e6a9f1368b2c9e43f075dccaa90c7746a364259ad278adf650379eca75f2803ed74e74dd372be2cca8518462182657f96a0033 SHA512 17cd24ceee8026481566824b688dafd03ec816201d5cb3549cb7fc8a36f4cdaa982faaef4dcd26debfe775dea5ffa2744798164314ea6dc99a84f8ccccfc33ff DIST bcache-tools-1.0.8_p20141204.tar.gz 22158 BLAKE2B dd36102c5668cab3072ea635a5a30128df6cd75b75e7f8bba17ad0a830746ff2f75a46b56d4211aeb4657453d3bbeb98b8b794c53ff724b3fbf0874068d70dc9 SHA512 53d6e764d6d42c4367b0bd98199cae3c18054d5707a7880af3a422f9db332b44941015eaed7e1cd170b3546307ed54a2f99558a68d98c76b7bb6234d29206b54 @@ -19,6 +23,7 @@ DIST dropbear-2022.83.tar.bz2 2322904 BLAKE2B 4e26667458fb068a8c997b44dfd3c4f151 DIST e2fsprogs-1.46.4.tar.xz 7035200 BLAKE2B 473f7fd3f521b94cdaa68e37784a518fc1919387dd114f31b5338f1b4c472f86b150229ec3dcae8b73eac95330c0dea729befc8cea08bcf1e455c0b6652d6d2b SHA512 7d9cfdf00ed58e66049585e8382fe4977088956421a0fb8155900c69afd8857309ad2b9301b3f74c9c0afa7287a0ddba2fd1538fcf57858b37a9ab712390016d DIST e2fsprogs-1.47.0.tar.xz 7059372 BLAKE2B 84f58b05a9f0e14e1a66c6e5171ff23b022f51c4e9a02d4d6d1d26c91909f3c7ec9c9f0462663a4457b4479043774502b8891f691e58a61f4ef6bf9ba33f33aa SHA512 0e6d64c565b455becb84166b6a5c7090724bac5cfe69098657a31bf0481b4e2cace3de1363121b7d84820fbae85b7c83ac5f2a2b02bb36280f0e3ae83a934cec DIST eudev-3.2.10.tar.gz 1961960 BLAKE2B 3708c78fad3abad6aa4b2beaaa325e25e118621aa2e6cb351732f6d8349dc17da9be852cab79045c7a513e927c2d1266c6443814fd264943765d98fb5b404e75 SHA512 d0a076d8a54e9d4ca9ca48cf885d082965144b322950d351b7ead4a5035c2dad6fd66b7f137d7281982876c3c50330cdd5e599788f23e1369388181dd178941d +DIST eudev-3.2.14.tar.gz 2188254 BLAKE2B 7d68e77012288ecfac43be31f724224d371cb1084238fe045df248927eff854dbb391ad501e2a36d9b5ea4eb0a8cba3f9f21ea668908584a24c2a65df93ffdf8 SHA512 1e7593b53c5508a99fe7ff5d24d1d09b3753d9cfba086e7d8cc6ab80cc88013ec687dc4f1eac7b7889051f4e5fd5c40d2b87f5f2d948479d679c8836014d08e0 DIST expat-2.5.0.tar.xz 460560 BLAKE2B 670298d076ff3b512a0212170d40cb04c601a11d6b152f215a5302ad3238c69c2386393d7a6c70bc284be35ce97bf27d87115c3391f4bc17406e509d739d3e31 SHA512 2da73b991b7c0c54440485c787e5edeb3567230204e31b3cac1c3a6713ec6f9f1554d3afffc0f8336168dfd5df02db4a69bcf21b4d959723d14162d13ab87516 DIST fuse-2.9.9.tar.gz 1813177 BLAKE2B 9e9141380bda46eb0bcce325c6fd293fe3844fe884a4952bb38d4b89dc48b728ffcc891038b3a7a861f05acfacce9dd7bb0e11d600609f3ad0ab278ccbe98847 SHA512 3d82fafd04f2924299bb09d2bb144935fa004a43fb9a6568e2e1cc5a60fded2efa1711029a0d7f12b3e6e4501f7217f2ee3545646d89da8dece083cb390f23e2 DIST genkernel-4.3.10.tar.xz 484664 BLAKE2B ec1c44e633927c2c2fa12e22f428f6667ff5a768071aeecafb370f0e5ba0953c694661048a25f904a602f5acfc3a07a2be7042f4c247ab483d7241452c8df77a SHA512 443bc5c1980271d958255089a7981738979672a540e803789ee4a08d16e69e2a866266ae566da78dc02a3f31a4a9d049d302cab14392e931028040936ea7a512 @@ -66,6 +71,7 @@ EBUILD genkernel-4.3.12-r1.ebuild 9996 BLAKE2B 18a0e82f3836f922485e8608c4fdbf65a EBUILD genkernel-4.3.12.ebuild 9917 BLAKE2B 341f394ee4569e36d67518d39c0720d3bc319f232d10fec1544dadbf5c60e49a978646c67a2e8c43e1bc4e20b6217590e7e54b7b0a764a07f49ecae362f570f0 SHA512 20c93f4089d36560a35632823e1963ff3c6279897efc2bc301074133c548297ecdd62e3829c5eda74d528d02c1fe8ef0378515985a6eabf514a882f7cc3ed990 EBUILD genkernel-4.3.14.ebuild 9996 BLAKE2B 18a0e82f3836f922485e8608c4fdbf65a5d058ca2463b51e4a0784931fda7a162155b49d41cb256da11cda94c63b153161a01e4e84f2dfb9e2c66c92fd82d58d SHA512 2da55f3e6f8ee02cc47e9fa0b9dd1bb32cb61009abcbce7fddd64913179946df532a140f42e15f43a8e3ce76674aaa41860a01d7776489715e88ee04a15d688e EBUILD genkernel-4.3.15.ebuild 10299 BLAKE2B 711cb46ed892bd7e5f50585c0eabdb047df13e85f9bf3dcc1bba3c701d072d33cf58fa6f30d151b31e5c73bcb3c58918c1d96c3d273dae8de96d0ed0292868df SHA512 e3315a3fbff290aa8f738243fa0d906caa5fbdf601abb13ec0af2dbd1d7fe58dba57a89c01f1cb3006a809bea86212ac867fa1ed10cad9d313a398b0c3ca3b9c +EBUILD genkernel-4.3.16-r1.ebuild 10653 BLAKE2B e8f48430050a3f64366e7d6f969652ea0fdc6ce098078d4db9d2a01ef4530dc3d32c78aa5353408b40c532c90756989077c1fddf9ab2170be2b02265a42c72b1 SHA512 2d688464badade76945905e3a0aabd99ae840b09c510a2a69fca834c9aebfe85dbc6341a217fd0dc78d21b19d07e112575d79fbcc380db96718a2d0f21ab34f8 EBUILD genkernel-4.3.16.ebuild 10156 BLAKE2B 30873ed9c1ea7be0d82282b479e004ecbcdef0075401acb04cd37ad8fc780386cbf6c0cbcebee1da289659b21e1e773794f47fecd598c4b9a45eefbb2b810aae SHA512 b21c061953b8a275df8c9fdf5db1f267576b48d7fae0ab060e6d5e0865a8ce8fc05d7c69a2a0cd53862333bed76d26425c763ba517a4180ec7ea0ecb47a71d32 -EBUILD genkernel-9999.ebuild 10161 BLAKE2B b5965604312cf38fac91e5ab160492aff9017c02296095443a1713ed682f24d04966801390ffec7344485c0248a407e6877a61d7591cc1147bd41f2c3220f57e SHA512 58d3fae14ac9dbfa2d225ba91f3e4d8026a82d6bb9f02c49d30b91f60182f0cd0ec13a1035447a6a28dc83561febe7075054deb083308e12593dd18c55b3f6fc +EBUILD genkernel-9999.ebuild 10567 BLAKE2B 3c293e7d5ddf12bc7760477609355e54c17502a43dd37157ca5f24c99052b322073998115527fd789cf6704604fdd85a0fd7fa4b57dc9e589fdb18562d8b8345 SHA512 d99a5446f0a5d42e4b5d6ef7a06858393501dca6141211618a4fe9fc921b02c5f53703f23ff6488a82d40f56b6d9018200167de848773ad01980db22f5f7a25d MISC metadata.xml 480 BLAKE2B 8b1b1655cb13d866985a92755b0696bef00841a7626cb6cd10f39d7a7ad196c1ec2f5895f86e23fc3ee1345c48d7c659346d2bc7bb2a2bdaa9c997511f002fd8 SHA512 5030d4505b077faec4e2eb9cb2dcc47195a1864057bcb5f110314bab97b90b1bdcd3f293f76116a23dd0e694c7c8ee66ed46d39c9b7b0c506b22fe23e86febc4 diff --git a/sys-kernel/genkernel/files/genkernel-4.3.16-globbing-workaround.patch b/sys-kernel/genkernel/files/genkernel-4.3.16-globbing-workaround.patch new file mode 100644 index 000000000000..50dc73265462 --- /dev/null +++ b/sys-kernel/genkernel/files/genkernel-4.3.16-globbing-workaround.patch @@ -0,0 +1,19 @@ +diff '--color=auto' -urN genkernel-4.3.16.orig/gen_initramfs.sh genkernel-4.3.16/gen_initramfs.sh +--- genkernel-4.3.16.orig/gen_initramfs.sh 2024-06-11 20:35:25.000000000 +0200 ++++ genkernel-4.3.16/gen_initramfs.sh 2024-11-23 19:44:41.674658947 +0100 +@@ -1783,10 +1783,11 @@ + + myfw_f=( $(compgen -G "${FIRMWARE_DIR}/${myfw}*") ) + +- if [ ${#myfw_f[@]} -gt 1 ] +- then +- gen_die "excessive number of firmwares!" +- fi ++## see https://bugs.gentoo.org/932907 ++# if [ ${#myfw_f[@]} -gt 1 ] ++# then ++# gen_die "excessive number of firmwares!" ++# fi + + if [ ${#myfw_f[@]} -lt 1 ] + then diff --git a/sys-kernel/genkernel/files/genkernel-4.3.16-musl.patch b/sys-kernel/genkernel/files/genkernel-4.3.16-musl.patch new file mode 100644 index 000000000000..bdc45e941898 --- /dev/null +++ b/sys-kernel/genkernel/files/genkernel-4.3.16-musl.patch @@ -0,0 +1,297 @@ +https://bugs.gentoo.org/934773 +https://github.com/gentoo/genkernel/pull/62 + +From 553ea48d2983f6febd142b97c5b7230d87cda661 Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Sun, 24 Nov 2024 07:33:09 -0800 +Subject: [PATCH 1/3] patches/lvm: add missing musl patches + +Gentoo-Issue: https://bugs.gentoo.org/934773 +Signed-off-by: orbea <orbea@riseup.net> +--- + .../lvm/2.03.22/lvm2-019-musl-basename.patch | 34 ++++++++++++ + .../lvm/2.03.22/lvm2-020-freopen-musl.patch | 54 +++++++++++++++++++ + 2 files changed, 88 insertions(+) + create mode 100644 patches/lvm/2.03.22/lvm2-019-musl-basename.patch + create mode 100644 patches/lvm/2.03.22/lvm2-020-freopen-musl.patch + +diff --git a/patches/lvm/2.03.22/lvm2-019-musl-basename.patch b/patches/lvm/2.03.22/lvm2-019-musl-basename.patch +new file mode 100644 +index 00000000..2dd9f8ff +--- /dev/null ++++ b/patches/lvm/2.03.22/lvm2-019-musl-basename.patch +@@ -0,0 +1,34 @@ ++https://bugs.gentoo.org/937239 ++https://github.com/lvmteam/lvm2/commit/f98d2ffe8753895c84160a7abce4223bd127cd9e ++ ++From f98d2ffe8753895c84160a7abce4223bd127cd9e Mon Sep 17 00:00:00 2001 ++From: Zdenek Kabelac <zkabelac@redhat.com> ++Date: Wed, 27 Mar 2024 00:28:14 +0100 ++Subject: [PATCH] device_id: use dm_basename ++ ++Avoid problems for other libc like muslc and use dm_basename. ++ ++Prototype for basename has been removed from string.h from latest musl [1] ++compilers e.g. clang-18 flags the absense of prototype as error. therefore ++include libgen.h for providing it. ++ ++[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 ++ ++Reported-by: Khem Raj <raj.khem@gmail.com> ++--- ++ lib/device/device_id.c | 2 +- ++ 1 file changed, 1 insertion(+), 1 deletion(-) ++ ++diff --git a/lib/device/device_id.c b/lib/device/device_id.c ++index 7d67a1cb7..200d39432 100644 ++--- a/lib/device/device_id.c +++++ b/lib/device/device_id.c ++@@ -740,7 +740,7 @@ static int _dev_read_sys_serial(struct cmd_context *cmd, struct device *dev, ++ int ret; ++ ++ /* /dev/vda to vda */ ++- base = basename(devname); +++ base = dm_basename(devname); ++ ++ /* vda1 to vda */ ++ for (i = 0; i < strlen(base); i++) { +diff --git a/patches/lvm/2.03.22/lvm2-020-freopen-musl.patch b/patches/lvm/2.03.22/lvm2-020-freopen-musl.patch +new file mode 100644 +index 00000000..2b3f0a91 +--- /dev/null ++++ b/patches/lvm/2.03.22/lvm2-020-freopen-musl.patch +@@ -0,0 +1,54 @@ ++From 4cf08811e112100a2b10c60047f3c537ad21d674 Mon Sep 17 00:00:00 2001 ++From: David Seifert <soap@gentoo.org> ++Date: Sat, 28 Jan 2023 14:22:42 +0100 ++Subject: [PATCH] Use `freopen()` on {stdin,stdout,stderr} ++ ++* ISO C does not guarantee that the standard streams are modifiable ++ lvalues. Glibc even calls out this behaviour as non-portable: ++ https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html ++--- a/lib/log/log.c +++++ b/lib/log/log.c ++@@ -208,7 +208,11 @@ int reopen_standard_stream(FILE **stream, const char *mode) ++ ++ _check_and_replace_standard_log_streams(old_stream, new_stream); ++ +++#ifdef __GLIBC__ ++ *stream = new_stream; +++#else +++ freopen(NULL, mode, *stream); +++#endif ++ return 1; ++ } ++ ++--- a/tools/lvmcmdline.c +++++ b/tools/lvmcmdline.c ++@@ -3422,7 +3422,7 @@ static int _check_standard_fds(void) ++ int err = is_valid_fd(STDERR_FILENO); ++ ++ if (!is_valid_fd(STDIN_FILENO) && ++- !(stdin = fopen(_PATH_DEVNULL, "r"))) { +++ !freopen(_PATH_DEVNULL, "r", stdin)) { ++ if (err) ++ perror("stdin stream open"); ++ else ++@@ -3432,7 +3432,7 @@ static int _check_standard_fds(void) ++ } ++ ++ if (!is_valid_fd(STDOUT_FILENO) && ++- !(stdout = fopen(_PATH_DEVNULL, "w"))) { +++ !freopen(_PATH_DEVNULL, "w", stdout)) { ++ if (err) ++ perror("stdout stream open"); ++ /* else no stdout */ ++@@ -3440,7 +3440,7 @@ static int _check_standard_fds(void) ++ } ++ ++ if (!is_valid_fd(STDERR_FILENO) && ++- !(stderr = fopen(_PATH_DEVNULL, "w"))) { +++ !freopen(_PATH_DEVNULL, "w", stderr)) { ++ printf("stderr stream open: %s\n", ++ strerror(errno)); ++ return 0; ++-- ++2.39.2 ++ + +From a9f818ab719c294a3bdd6b25730bb1b6ac6c2173 Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Sun, 24 Nov 2024 07:33:50 -0800 +Subject: [PATCH 2/3] patches/kmod: add missing musl patch + +Signed-off-by: orbea <orbea@riseup.net> +--- + patches/kmod/31/kmod-31-musl-basename.patch | 113 ++++++++++++++++++++ + 1 file changed, 113 insertions(+) + create mode 100644 patches/kmod/31/kmod-31-musl-basename.patch + +diff --git a/patches/kmod/31/kmod-31-musl-basename.patch b/patches/kmod/31/kmod-31-musl-basename.patch +new file mode 100644 +index 00000000..f4839dad +--- /dev/null ++++ b/patches/kmod/31/kmod-31-musl-basename.patch +@@ -0,0 +1,113 @@ ++https://github.com/kmod-project/kmod/pull/32 ++ ++From 721ed6040c7aa47070faf6378c433089e178bd43 Mon Sep 17 00:00:00 2001 ++From: Khem Raj <raj.khem@gmail.com> ++Date: Sat, 9 Dec 2023 17:35:59 -0800 ++Subject: [PATCH] Use portable implementation for basename API ++ ++musl has removed the non-prototype declaration of basename from ++string.h [1] which now results in build errors with clang-17+ compiler ++ ++Implement GNU basename behavior using strchr which is portable across libcs ++ ++Fixes ++../git/tools/kmod.c:71:19: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ++71 | "Commands:\n", basename(argv[0])); ++| ^ ++ ++[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 ++ ++Suggested-by: Rich Felker ++ ++Signed-off-by: Khem Raj <raj.khem@gmail.com> ++--- a/libkmod/libkmod-config.c +++++ b/libkmod/libkmod-config.c ++@@ -794,7 +794,7 @@ static int conf_files_insert_sorted(struct kmod_ctx *ctx, ++ bool is_single = false; ++ ++ if (name == NULL) { ++- name = basename(path); +++ name = gnu_basename(path); ++ is_single = true; ++ } ++ ++--- a/shared/util.c +++++ b/shared/util.c ++@@ -172,9 +172,9 @@ char *modname_normalize(const char *modname, char buf[static PATH_MAX], size_t * ++ ++ char *path_to_modname(const char *path, char buf[static PATH_MAX], size_t *len) ++ { ++- char *modname; +++ const char *modname; ++ ++- modname = basename(path); +++ modname = gnu_basename(path); ++ if (modname == NULL || modname[0] == '\0') ++ return NULL; ++ ++--- a/shared/util.h +++++ b/shared/util.h ++@@ -5,6 +5,7 @@ ++ #include <stdbool.h> ++ #include <stdlib.h> ++ #include <stdio.h> +++#include <string.h> ++ #include <sys/types.h> ++ #include <sys/stat.h> ++ #include <time.h> ++@@ -76,6 +77,12 @@ do { \ ++ __p->__v = (val); \ ++ } while(0) ++ +++static _always_inline_ const char *gnu_basename(const char *s) +++{ +++ const char *p = strrchr(s, '/'); +++ return p ? p+1 : s; +++} +++ ++ static _always_inline_ unsigned int ALIGN_POWER2(unsigned int u) ++ { ++ return 1 << ((sizeof(u) * 8) - __builtin_clz(u - 1)); ++--- a/testsuite/testsuite.c +++++ b/testsuite/testsuite.c ++@@ -70,7 +70,7 @@ static void help(void) ++ ++ printf("Usage:\n" ++ "\t%s [options] <test>\n" ++- "Options:\n", basename(progname)); +++ "Options:\n", gnu_basename(progname)); ++ ++ for (itr = options, itr_short = options_short; ++ itr->name != NULL; itr++, itr_short++) ++--- a/tools/depmod.c +++++ b/tools/depmod.c ++@@ -762,7 +762,7 @@ static int cfg_files_insert_sorted(struct cfg_file ***p_files, size_t *p_n_files ++ if (name != NULL) ++ namelen = strlen(name); ++ else { ++- name = basename(dir); +++ name = gnu_basename(dir); ++ namelen = strlen(name); ++ dirlen -= namelen + 1; ++ } ++--- a/tools/kmod.c +++++ b/tools/kmod.c ++@@ -68,7 +68,7 @@ static int kmod_help(int argc, char *argv[]) ++ "Options:\n" ++ "\t-V, --version show version\n" ++ "\t-h, --help show this help\n\n" ++- "Commands:\n", basename(argv[0])); +++ "Commands:\n", gnu_basename(argv[0])); ++ ++ for (i = 0; i < ARRAY_SIZE(kmod_cmds); i++) { ++ if (kmod_cmds[i]->help != NULL) { ++@@ -156,7 +156,7 @@ static int handle_kmod_compat_commands(int argc, char *argv[]) ++ const char *cmd; ++ size_t i; ++ ++- cmd = basename(argv[0]); +++ cmd = gnu_basename(argv[0]); ++ ++ for (i = 0; i < ARRAY_SIZE(kmod_compat_cmds); i++) { ++ if (streq(kmod_compat_cmds[i]->name, cmd)) ++ + +From 1c7bf8a58143807134f6427ab3d7e063df3038e6 Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Sun, 24 Nov 2024 07:34:47 -0800 +Subject: [PATCH 3/3] Bump eudev to v3.2.14 + +Update to a version that builds with musl. + +Signed-off-by: orbea <orbea@riseup.net> +--- + .../eudev-3.2.14-static.patch} | 17 ++++++++--------- + 1 file changed, 8 insertions(+), 9 deletions(-) + rename patches/eudev/{3.2.10/eudev-3.2.10-static.patch => 3.2.14/eudev-3.2.14-static.patch} (81%) + +diff --git a/patches/eudev/3.2.10/eudev-3.2.10-static.patch b/patches/eudev/3.2.14/eudev-3.2.14-static.patch +similarity index 81% +rename from patches/eudev/3.2.10/eudev-3.2.10-static.patch +rename to patches/eudev/3.2.14/eudev-3.2.14-static.patch +index fc36b547..88bc1e15 100644 +--- a/patches/eudev/3.2.10/eudev-3.2.10-static.patch ++++ b/patches/eudev/3.2.14/eudev-3.2.14-static.patch +@@ -1,14 +1,14 @@ + --- a/configure.ac + +++ b/configure.ac +-@@ -261,7 +261,7 @@ AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules s ++@@ -252,7 +252,7 @@ AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules s + if test "x$enable_kmod" != "xno"; then +- PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no) +- if test "x$have_kmod" = "xyes"; then +-- PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ], +-+ PKG_CHECK_MODULES_STATIC(KMOD, [ libkmod >= 15 ], +- [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])], +- AC_MSG_ERROR([*** kmod version >= 15 not found])) +- fi ++ PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no) ++ if test "x$have_kmod" = "xyes"; then ++- PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ], +++ PKG_CHECK_MODULES_STATIC(KMOD, [ libkmod >= 15 ], ++ [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])], ++ AC_MSG_ERROR([*** kmod version >= 15 not found])) ++ fi + --- a/src/ata_id/Makefile.am + +++ b/src/ata_id/Makefile.am + @@ -11,6 +11,8 @@ udevlibexec_PROGRAMS = \ +@@ -94,4 +94,3 @@ + v4l_id_LDADD = \ + $(top_builddir)/src/libudev/libudev-private.la \ + $(top_builddir)/src/udev/libudev-core.la +- diff --git a/sys-kernel/genkernel/files/genkernel-4.3.16-posix-shell.patch b/sys-kernel/genkernel/files/genkernel-4.3.16-posix-shell.patch new file mode 100644 index 000000000000..da1341e97e4f --- /dev/null +++ b/sys-kernel/genkernel/files/genkernel-4.3.16-posix-shell.patch @@ -0,0 +1,38 @@ +https://github.com/gentoo/genkernel/pull/60 + +From c270c3667e04bc60fcdd9ffcc76d4d2c5a8b9d6d Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Sun, 12 May 2024 08:05:09 -0700 +Subject: [PATCH] build: fix for POSIX shells + +When building genkernel where /bin/sh is a POSIX shell such as lksh +(mksh) it will install a malformed software.sh. This is because 'echo +-e' is not portable shell. This can be fixed by using 'printf' instead. + +Signed-off-by: orbea <orbea@riseup.net> +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 1e20ef5d..637ef1e3 100644 +--- a/Makefile ++++ b/Makefile +@@ -69,7 +69,7 @@ SOFTWARE = BCACHE_TOOLS \ + ZLIB \ + ZSTD + +-SOFTWARE_VERSION = $(foreach entry, $(SOFTWARE), "VERSION_$(entry)=${VERSION_$(entry)}\n") ++SOFTWARE_VERSION = $(foreach entry, $(SOFTWARE), "VERSION_$(entry)=${VERSION_$(entry)}") + + PREFIX = /usr/local + BINDIR = $(PREFIX)/bin +@@ -183,7 +183,7 @@ $(BUILD_DIR)/build-config: + + $(BUILD_DIR)/software.sh: + install -d $(BUILD_DIR)/temp/ +- echo -e $(SOFTWARE_VERSION) > $(BUILD_DIR)/temp/versions ++ printf '%s\n' $(SOFTWARE_VERSION) > $(BUILD_DIR)/temp/versions + cat $(BUILD_DIR)/temp/versions defaults/software.sh > $(BUILD_DIR)/software.sh + + $(BUILD_DIR)/doc/genkernel.8.txt: diff --git a/sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch b/sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch new file mode 100644 index 000000000000..e39d7959b331 --- /dev/null +++ b/sys-kernel/genkernel/files/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch @@ -0,0 +1,11 @@ +--- a/udev/69-dm-lvm.rules.in ++++ b/udev/69-dm-lvm.rules.in +@@ -76,7 +76,7 @@ + # it's better suited to appearing in the journal. + + IMPORT{program}="(LVM_EXEC)/lvm pvscan --cache --listvg --checkcomplete --vgonline --autoactivation event --udevoutput --journal=output $env{DEVNAME}" +-ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(SYSTEMDRUN) --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} (LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}" ++ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(LVM_EXEC)/lvm vgchange -aay --nohints --autoactivation event $env{LVM_VG_NAME_COMPLETE}" + GOTO="lvm_end" + + LABEL="lvm_end" diff --git a/sys-kernel/genkernel/genkernel-4.3.16-r1.ebuild b/sys-kernel/genkernel/genkernel-4.3.16-r1.ebuild new file mode 100644 index 000000000000..cd08c1d3d8f8 --- /dev/null +++ b/sys-kernel/genkernel/genkernel-4.3.16-r1.ebuild @@ -0,0 +1,291 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# genkernel-9999 -> latest Git branch "master" +# genkernel-VERSION -> normal genkernel release + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit bash-completion-r1 python-single-r1 + +# Whenever you bump a GKPKG, check if you have to move +# or add new patches! +VERSION_BCACHE_TOOLS="1.1_p20230217" +# boost-1.84.0 needs dev-build/b2 packaged +VERSION_BOOST="1.79.0" +VERSION_BTRFS_PROGS="6.7.1" +VERSION_BUSYBOX="1.36.1" +VERSION_COREUTILS="9.4" +VERSION_CRYPTSETUP="2.6.1" +VERSION_DMRAID="1.0.0.rc16-3" +VERSION_DROPBEAR="2022.83" +VERSION_EUDEV="3.2.10" +VERSION_EXPAT="2.5.0" +VERSION_E2FSPROGS="1.47.0" +VERSION_FUSE="2.9.9" +# gnupg-2.x needs several new deps packaged +VERSION_GPG="1.4.23" +VERSION_HWIDS="20210613" +# open-iscsi-2.1.9 static build not working yet +VERSION_ISCSI="2.1.8" +# json-c-0.17 needs gkbuild ported to meson +VERSION_JSON_C="0.17" +VERSION_KMOD="31" +VERSION_LIBAIO="0.3.113" +VERSION_LIBGCRYPT="1.10.3" +VERSION_LIBGPGERROR="1.47" +VERSION_LIBXCRYPT="4.4.36" +VERSION_LVM="2.03.22" +VERSION_LZO="2.10" +VERSION_MDADM="4.2" +VERSION_POPT="1.19" +VERSION_STRACE="6.7" +VERSION_THIN_PROVISIONING_TOOLS="0.9.0" +# unionfs-fuse-3.4 needs fuse:3 +VERSION_UNIONFS_FUSE="2.0" +VERSION_USERSPACE_RCU="0.14.0" +VERSION_UTIL_LINUX="2.39.3" +VERSION_XFSPROGS="6.4.0" +VERSION_XZ="5.4.2" +VERSION_ZLIB="1.3.1" +VERSION_ZSTD="1.5.5" +VERSION_KEYUTILS="1.6.3" + +COMMON_URI=" + https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/snapshot/a5e3753516bd39c431def86c8dfec8a9cea1ddd4.tar.gz -> bcache-tools-${VERSION_BCACHE_TOOLS}.tar.gz + https://boostorg.jfrog.io/artifactory/main/release/${VERSION_BOOST}/source/boost_${VERSION_BOOST//./_}.tar.bz2 + https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${VERSION_BTRFS_PROGS}.tar.xz + https://www.busybox.net/downloads/busybox-${VERSION_BUSYBOX}.tar.bz2 + mirror://gnu/coreutils/coreutils-${VERSION_COREUTILS}.tar.xz + https://www.kernel.org/pub/linux/utils/cryptsetup/v$(ver_cut 1-2 ${VERSION_CRYPTSETUP})/cryptsetup-${VERSION_CRYPTSETUP}.tar.xz + https://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-${VERSION_DMRAID}.tar.bz2 + https://matt.ucc.asn.au/dropbear/releases/dropbear-${VERSION_DROPBEAR}.tar.bz2 + https://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/releases/download/v${VERSION_LIBXCRYPT}/libxcrypt-${VERSION_LIBXCRYPT}.tar.xz + https://mirrors.kernel.org/sourceware/lvm2/LVM2.${VERSION_LVM}.tgz + https://www.oberhumer.com/opensource/lzo/download/lzo-${VERSION_LZO}.tar.gz + https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-${VERSION_MDADM}.tar.xz + http://ftp.rpm.org/popt/releases/popt-1.x/popt-${VERSION_POPT}.tar.gz + https://github.com/strace/strace/releases/download/v${VERSION_STRACE}/strace-${VERSION_STRACE}.tar.xz + https://github.com/jthornber/thin-provisioning-tools/archive/v${VERSION_THIN_PROVISIONING_TOOLS}.tar.gz -> thin-provisioning-tools-${VERSION_THIN_PROVISIONING_TOOLS}.tar.gz + https://github.com/rpodgorny/unionfs-fuse/archive/v${VERSION_UNIONFS_FUSE}.tar.gz -> unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.gz + https://lttng.org/files/urcu/userspace-rcu-${VERSION_USERSPACE_RCU}.tar.bz2 + https://www.kernel.org/pub/linux/utils/util-linux/v${VERSION_UTIL_LINUX:0:4}/util-linux-${VERSION_UTIL_LINUX}.tar.xz + https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-${VERSION_XFSPROGS}.tar.xz + https://tukaani.org/xz/xz-${VERSION_XZ}.tar.gz + https://zlib.net/zlib-${VERSION_ZLIB}.tar.gz + https://github.com/facebook/zstd/archive/v${VERSION_ZSTD}.tar.gz -> zstd-${VERSION_ZSTD}.tar.gz + https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-${VERSION_KEYUTILS}.tar.gz +" + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/${PN}.git" + inherit git-r3 + S="${WORKDIR}/${P}" + SRC_URI="${COMMON_URI}" +else + SRC_URI="https://dev.gentoo.org/~bkohler/dist/${P}.tar.xz + ${COMMON_URI}" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Gentoo automatic kernel building scripts" +HOMEPAGE="https://wiki.gentoo.org/wiki/Genkernel https://gitweb.gentoo.org/proj/genkernel.git/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="ibm +firmware systemd" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Note: +# We need sys-devel/* deps like autoconf or automake at _runtime_ +# because genkernel will usually build things like LVM2, cryptsetup, +# mdadm... during initramfs generation which will require these +# things. +DEPEND=" + app-text/asciidoc +" +RDEPEND="${PYTHON_DEPS} + app-alternatives/cpio + >=app-misc/pax-utils-1.2.2 + app-portage/elt-patches + app-portage/portage-utils + dev-util/gperf + sys-apps/sandbox + dev-build/autoconf + dev-build/autoconf-archive + dev-build/automake + app-alternatives/bc + app-alternatives/yacc + app-alternatives/lex + dev-build/libtool + virtual/pkgconfig + elibc_glibc? ( sys-libs/glibc[static-libs(+)] ) + firmware? ( sys-kernel/linux-firmware ) +" + +PATCHES=( + "${FILESDIR}"/genkernel-4.3.16-globbing-workaround.patch + "${FILESDIR}"/${PN}-4.3.16-musl.patch + "${FILESDIR}"/${PN}-4.3.16-posix-shell.patch +) + +src_unpack() { + if [[ ${PV} == 9999* ]]; then + git-r3_src_unpack + else + local gk_src_file + for gk_src_file in ${A} ; do + if [[ ${gk_src_file} == genkernel-* ]] ; then + unpack "${gk_src_file}" + fi + done + fi +} + +src_prepare() { + default + + if [[ ${PV} == 9999* ]] ; then + einfo "Updating version tag" + GK_V="$(git describe --tags | sed 's:^v::')-git" + sed "/^GK_V/s,=.*,='${GK_V}',g" -i "${S}"/genkernel + einfo "Producing ChangeLog from Git history..." + pushd "${S}/.git" >/dev/null || die + git log > "${S}"/ChangeLog || die + popd >/dev/null || die + fi + + # Export all the versions that may be used by genkernel build. + for v in $(set |awk -F= '/^VERSION_/{print $1}') ; do + export ${v} + done + + if use ibm ; then + cp "${S}"/arch/ppc64/kernel-2.6{-pSeries,} || die + else + cp "${S}"/arch/ppc64/kernel-2.6{.g5,} || die + fi + +} + +src_compile() { + emake PREFIX=/usr +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + dodoc AUTHORS ChangeLog README TODO + + python_fix_shebang "${ED}"/usr/share/genkernel/path_expander.py + + newbashcomp "${FILESDIR}"/genkernel-4.bash "${PN}" + insinto /etc + doins "${FILESDIR}"/initramfs.mounts + + pushd "${DISTDIR}" &>/dev/null || die + insinto /usr/share/genkernel/distfiles + doins ${A/${P}.tar.xz/} + popd &>/dev/null || die + + # Workaround for bug 944499, for now this patch will live in FILESDIR and is + # conditionally installed but we could add it to genkernel.git and conditionally + # remove it here instead. + if ! use systemd; then + insinto /usr/share/genkernel/patches/lvm/${VERSION_LVM}/ + doins "${FILESDIR}"/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch + fi +} + +pkg_postinst() { + # Wiki is out of date + #echo + #elog 'Documentation is available in the genkernel manual page' + #elog 'as well as the following URL:' + #echo + #elog 'https://wiki.gentoo.org/wiki/Genkernel' + #echo + + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 4 ; then + # This is an upgrade which requires user review + + ewarn "" + ewarn "Genkernel v4.x is a new major release which touches" + ewarn "nearly everything. Be careful, read updated manpage" + ewarn "and pay special attention to program output regarding" + ewarn "changed kernel command-line parameters!" + + # Show this elog only once + break + fi + done + + if [[ $(find /boot -name 'kernel-genkernel-*' 2>/dev/null | wc -l) -gt 0 ]] ; then + ewarn '' + ewarn 'Default kernel filename was changed from "kernel-genkernel-<ARCH>-<KV>"' + ewarn 'to "vmlinuz-<KV>". Please be aware that due to lexical ordering the' + ewarn '*default* boot entry in your boot manager could still point to last kernel' + ewarn 'built with genkernel before that name change, resulting in booting old' + ewarn 'kernel when not paying attention on boot.' + fi + + # Show special warning for users depending on remote unlock capabilities + local gk_config="${EROOT}/etc/genkernel.conf" + if [[ -f "${gk_config}" ]] ; then + if grep -q -E "^SSH=[\"\']?yes" "${gk_config}" 2>/dev/null ; then + if ! grep -q dosshd /proc/cmdline 2>/dev/null ; then + ewarn "" + ewarn "IMPORTANT: SSH is currently enabled in your genkernel config" + ewarn "file (${gk_config}). However, 'dosshd' is missing from current" + ewarn "kernel command-line. You MUST add 'dosshd' to keep sshd enabled" + ewarn "in genkernel v4+ initramfs!" + fi + fi + + if grep -q -E "^CMD_CALLBACK=.*emerge.*@module-rebuild" "${gk_config}" 2>/dev/null ; then + elog "" + elog "Please remove 'emerge @module-rebuild' from genkernel config" + elog "file (${gk_config}) and make use of new MODULEREBUILD option" + elog "instead." + fi + fi + + local n_root_args=$(grep -o -- '\<root=' /proc/cmdline 2>/dev/null | wc -l) + if [[ ${n_root_args} -gt 1 ]] ; then + ewarn "WARNING: Multiple root arguments (root=) on kernel command-line detected!" + ewarn "If you are appending non-persistent device names to kernel command-line," + ewarn "next reboot could fail in case running system and initramfs do not agree" + ewarn "on detected root device name!" + fi + + if [[ -d /run ]] ; then + local permission_run_expected="drwxr-xr-x" + local permission_run=$(stat -c "%A" /run) + if [[ "${permission_run}" != "${permission_run_expected}" ]] ; then + ewarn "Found the following problematic permissions:" + ewarn "" + ewarn " ${permission_run} /run" + ewarn "" + ewarn "Expected:" + ewarn "" + ewarn " ${permission_run_expected} /run" + ewarn "" + ewarn "This is known to be causing problems for any UDEV-enabled service." + fi + fi +} diff --git a/sys-kernel/genkernel/genkernel-9999.ebuild b/sys-kernel/genkernel/genkernel-9999.ebuild index c131bb8d0394..7a4664595e87 100644 --- a/sys-kernel/genkernel/genkernel-9999.ebuild +++ b/sys-kernel/genkernel/genkernel-9999.ebuild @@ -21,7 +21,7 @@ VERSION_COREUTILS="9.4" VERSION_CRYPTSETUP="2.6.1" VERSION_DMRAID="1.0.0.rc16-3" VERSION_DROPBEAR="2022.83" -VERSION_EUDEV="3.2.10" +VERSION_EUDEV="3.2.14" VERSION_EXPAT="2.5.0" VERSION_E2FSPROGS="1.47.0" VERSION_FUSE="2.9.9" @@ -107,7 +107,7 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Genkernel https://gitweb.gentoo.org/proj/ LICENSE="GPL-2" SLOT="0" -IUSE="ibm +firmware" +IUSE="ibm +firmware systemd" REQUIRED_USE="${PYTHON_REQUIRED_USE}" # Note: @@ -138,6 +138,7 @@ RDEPEND="${PYTHON_DEPS} " PATCHES=( + "${FILESDIR}"/genkernel-4.3.16-globbing-workaround.patch ) src_unpack() { @@ -197,6 +198,14 @@ src_install() { insinto /usr/share/genkernel/distfiles doins ${A/${P}.tar.xz/} popd &>/dev/null || die + + # Workaround for bug 944499, for now this patch will live in FILESDIR and is + # conditionally installed but we could add it to genkernel.git and conditionally + # remove it here instead. + if ! use systemd; then + insinto /usr/share/genkernel/patches/lvm/${VERSION_LVM}/ + doins "${FILESDIR}"/lvm2-2.03.20-dm_lvm_rules_no_systemd.patch + fi } pkg_postinst() { |