Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2013 11:30:01 GMT
From:      Henry Jalonen <henkka@spheroid.fi>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/181774: USE_BDB 47+ fails to find installed databases/db47
Message-ID:  <201309031130.r83BU1D3037963@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/181774; it has been noted by GNATS.

From: Henry Jalonen <henkka@spheroid.fi>
To: bug-followup@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309031130.r83BU1D3037963>