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
}
install_wrapper() {
install -m0755 ${XBPS_COMMONDIR}/hooks/pre-configure/install-wrapper \
${XBPS_WRAPPERDIR}/install
install_wrappers() {
for f in install ldconfig; do
install -m0755 ${XBPS_COMMONDIR}/hooks/pre-configure/${f}-wrapper \
${XBPS_WRAPPERDIR}/${f}
done
}
hook() {
export PATH="$XBPS_WRAPPERDIR:$PATH"
install_wrapper
install_wrappers
[ -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