ports/181774: USE_BDB 47+ fails to find installed databases/db47

Henry Jalonen henkka at spheroid.fi
Tue Sep 3 11:30:01 UTC 2013


The following reply was made to PR ports/181774; it has been noted by GNATS.

From: Henry Jalonen <henkka at spheroid.fi>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: ports/181774: USE_BDB 47+ fails to find installed databases/db47
Date: Tue, 3 Sep 2013 14:17:17 +0300

 This seems to fix it:
 
 --- bsd.port.mk.old     2013-09-03 14:15:45.000000000 +0300
 +++ bsd.port.mk 2013-09-03 14:13:03.000000000 +0300
 @@ -5047,9 +5047,13 @@
                 found=3D0 ; \
                 dirs=3D"${LIB_DIRS} `${CAT} =
 ${LOCALBASE}/libdata/ldconfig/* 2>/dev/null || : `" ; \
                 for libdir in $$dirs; do \
 -                       test -f $${libdir}/$${lib} || continue; \
 +                       tmp=3D$${libdir}/$${lib} ; \
 +                       test -f $${tmp} || continue; \
 +                       if [ -L $${tmp} ]; then \
 +                               tmp=3D`${READLINK_CMD} -f =
 $${libdir}/$${lib}` ; \
 +                       fi ; \
                         if [ -x /usr/bin/file ]; then \
 -                               [ `file -b -L --mime-type =
 $${libdir}/$${lib}` =3D "application/x-sharedlib" ] || continue ; \
 +                               [ `file -b -L --mime-type $${tmp}` =3D =
 "application/x-sharedlib" ] || continue ; \
                         fi ; \
                         found=3D1 ; \
                         ${ECHO_MSG} " - found"; \
 
 --=20
 Henry Jalonen
 +358-50-5056632
 


More information about the freebsd-ports-bugs mailing list