musl: install getconf/getent/ldconfig from Alpine too.
This commit is contained in:
parent
74644e432b
commit
20d3a5b133
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'musl'.
|
||||
pkgname=musl
|
||||
version=1.1.5
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
configure_args="--prefix=/usr --disable-gcc-wrapper"
|
||||
conflicts="glibc>=0"
|
||||
|
@ -15,6 +15,15 @@ checksum=352362b1724cc9740f4c3ce0fe02aae45e4de9809ea4ac961f31aedc11b87393
|
|||
only_for_archs="i686-musl x86_64-musl armv6l-musl armv7l-musl"
|
||||
CFLAGS="-fno-stack-protector"
|
||||
|
||||
post_build() {
|
||||
$XBPS_FETCH_CMD http://git.alpinelinux.org/cgit/aports/plain/main/musl/getent.c
|
||||
$XBPS_FETCH_CMD http://git.alpinelinux.org/cgit/aports/plain/main/musl/getconf.c
|
||||
$XBPS_FETCH_CMD http://git.alpinelinux.org/cgit/aports/plain/main/musl/ldconfig
|
||||
|
||||
$CC $CFLAGS $LDFLAGS getent.c -o getent
|
||||
$CC $CFLAGS $LDFLAGS getconf.c -o getconf
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Move everything to /usr.
|
||||
vmkdir usr/lib
|
||||
|
@ -24,4 +33,7 @@ do_install() {
|
|||
# provide ldd
|
||||
vmkdir usr/bin
|
||||
ln -s /usr/lib/libc.so ${DESTDIR}/usr/bin/ldd
|
||||
vbin getent
|
||||
vbin getconf
|
||||
vbin ldconfig
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue