xbps-src: create a dummy ldconfig wrapper.

This fixes build/installation of some pkgs that exec ldconfig gratuitously
(ntfs-3g fails with musl due to this).
This commit is contained in:
Juan RP 2015-04-21 10:29:58 +02:00
parent 4c53bcd82d
commit 62a643d5c7
3 changed files with 10 additions and 4 deletions

View File

@ -79,15 +79,17 @@ _EOF
ln -sf ${XBPS_CROSS_TRIPLET}-pkg-config ${XBPS_WRAPPERDIR}/pkg-config ln -sf ${XBPS_CROSS_TRIPLET}-pkg-config ${XBPS_WRAPPERDIR}/pkg-config
} }
install_wrapper() { install_wrappers() {
install -m0755 ${XBPS_COMMONDIR}/hooks/pre-configure/install-wrapper \ for f in install ldconfig; do
${XBPS_WRAPPERDIR}/install install -m0755 ${XBPS_COMMONDIR}/hooks/pre-configure/${f}-wrapper \
${XBPS_WRAPPERDIR}/${f}
done
} }
hook() { hook() {
export PATH="$XBPS_WRAPPERDIR:$PATH" export PATH="$XBPS_WRAPPERDIR:$PATH"
install_wrapper install_wrappers
[ -z "$CROSS_BUILD" ] && return 0 [ -z "$CROSS_BUILD" ] && return 0

0
common/hooks/pre-configure/install-wrapper Executable file → Normal file
View File

View File

@ -0,0 +1,4 @@
#!/bin/sh
echo "ldconfig-wrapper: ignoring arguments: $@"
exit 0