ports/181774: USE_BDB 47+ fails to find installed databases/db47
Henry Jalonen
henkka at spheroid.fi
Tue Sep 3 10:10:00 UTC 2013
>Number: 181774
>Category: ports
>Synopsis: USE_BDB 47+ fails to find installed databases/db47
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 03 10:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Henry Jalonen
>Release: 9.1-RELEASE-p5
>Organization:
>Environment:
FreeBSD 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #1: Wed Aug 7 14:57:19 EEST 2013 root@:/usr/obj/usr/src/sys/FLAME sparc64
>Description:
I was updating my ports as usual:
===>>> All >> p5-BerkeleyDB-0.52 (14/32)
===> Cleaning for p5-BerkeleyDB-0.53
===> License ART10 GPLv1 accepted by the user
===> Fetching all distfiles required by p5-BerkeleyDB-0.53 for building
===> Extracting for p5-BerkeleyDB-0.53
=> SHA256 Checksum OK for BerkeleyDB-0.53.tar.gz.
===> Patching for p5-BerkeleyDB-0.53
===> p5-BerkeleyDB-0.53 depends on file: /usr/local/bin/perl5.14.4 - found
===> p5-BerkeleyDB-0.53 depends on shared library: libdb-4.7.so - not found
===> Verifying for libdb-4.7.so in /usr/ports/databases/db47
Wait... I do have databases/db47 installed! So what's going on?
bsd.port.mk library detection:
[ `file -b -L --mime-type $${libdir}/$${lib}` = "application/x-sharedlib" ]
I tried running it:
$ /usr/bin/file -L -b --mime-type /usr/local/lib/libdb-4.7.so
inode/symlink
Ok...
$ /usr/bin/file -L -b /usr/local/lib/libdb-4.7.so
ELF 64-bit MSB shared object, SPARC V9, relaxed memory ordering, version 1 (FreeBSD), dynamically linked, not stripped
It seems the symbolic link does not dereference correctly when using --mime-type.
>How-To-Repeat:
Update any package using USE_BDB = 47+ - in my case databases/p5-BerkeleyDB
>Fix:
Either fix bsd.port.mk to correctly detect the installed library or fix /usr/bin/file to correctly dereference the symlink.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list