perl: works in the chroot now.
--HG-- extra : convert_revision : d2ec570e3c42559f78715fb180300e7beb17b007
This commit is contained in:
parent
e1d3deafe6
commit
f0a7ea4d3c
2 changed files with 11 additions and 6 deletions
|
@ -1,7 +1,12 @@
|
|||
# This fixes the definitions that the perl binary uses to look at
|
||||
# prefix and not XBPS_DESTDIR/MASTERDIR.
|
||||
|
||||
$sed_cmd -i \
|
||||
-e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \
|
||||
-e "s|$XBPS_MASTERDIR||g" \
|
||||
$wrksrc/config.h
|
||||
if [ "$XBPS_DESTDIR" != "/xbps" ]; then
|
||||
sed -i -e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" $wrksrc/config.h
|
||||
fi
|
||||
|
||||
sed -i -e "s|/usr/usr|/usr|g" $wrksrc/config.h
|
||||
|
||||
if [ "$XBPS_MASTERDIR" != "/" ]; then
|
||||
sed -i -e "s|$XBPS_MASTERDIR||g" $wrksrc/config.h
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue