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