Skip to content

Commit 472af81

Browse files
committed
sys-kernel/make-initrd: Add support for building with musl
Link: osboot/make-initrd#47 Signed-off-by: Gabi Falk <gabifalk@gmx.com>
1 parent 9290516 commit 472af81

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sys-kernel/make-initrd/make-initrd-9999.ebuild

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright 2023 Alexey Gladkov <gladkov.alexey@gmail.com>
2-
# Copyright 2024 Gabi Falk <gabifalk@gmx.com>
2+
# Copyright 2024-2025 Gabi Falk <gabifalk@gmx.com>
33
# SPDX-License-Identifier: GPL-2.0-or-later
44

55
EAPI=8
@@ -41,6 +41,7 @@ DEPEND="
4141
zlib? ( sys-libs/zlib )
4242
zstd? ( app-arch/zstd )
4343
elf-metadata? ( dev-libs/json-c )
44+
elibc_musl? ( sys-libs/fts-standalone )
4445
"
4546
RDEPEND="${DEPEND}"
4647

@@ -55,6 +56,12 @@ BDEPEND="
5556

5657
src_prepare() {
5758
default
59+
if use elibc_musl; then
60+
# Some busybox features are broken with musl.
61+
# See https://wiki.musl-libc.org/building-busybox
62+
sed 's/^CONFIG_FEATURE_VI_REGEX_SEARCH=y/# CONFIG_FEATURE_VI_REGEX_SEARCH is not set/' \
63+
-i external/busybox/config
64+
fi
5865

5966
eautoreconf
6067
}

0 commit comments

Comments
 (0)