Check if /usr/X11R6/lib is in the ld.so.conf. If it isn't (that's

only the case in non-default linux_base ports): moan.

Suggested by:	Boris Samorodov <bsam@ipt.ru>
This commit is contained in:
Alexander Leidinger 2006-01-21 12:50:13 +00:00
parent f09b16fb77
commit 76b6e14161
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154054
2 changed files with 9 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= XFree86-libs
PORTVERSION= 4.3.99.902
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= x11 linux
MASTER_SITES= ${MASTER_SITE_SUSE} \
ftp://ftp.in2p3.fr/pub/linux/suse/update/9.1/rpm/i586/ \

View file

@ -4,5 +4,12 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
if [ "$2" = "POST-INSTALL" ]; then
chroot %%LINUXBASE%% /sbin/ldconfig
grep -q /usr/X11R6/lib %%LINUXBASE%%/etc/ld.so.conf
if [ $? -eq 0 ]; then
%%LINUXBASE%%/sbin/ldconfig
else
echo '*************************'
echo 'WARNING: You do not have /usr/X11R6/lib in %%LINUXBASE%%/etc/ld.so.conf (probably because you do not use the default linux_base port and those non-default linux_base ports have a bug in this regard), please add it and run %%LINUXBASE%%/sbin/ldconfig as root to be able to use applications which make use of the linux X11 port.' | fmt
echo '*************************'
fi
fi