pkg create shared library issue #572

Closed
bdrewery opened this Issue Aug 15, 2013 · 2 comments

Projects

None yet

3 participants

@bdrewery
The FreeBSD Project member
<@EvilDES> I can't create a package in a temp directory if it contains shared libraries
<@EvilDES> pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/su - shared library libpam.so.2 not found
<@EvilDES> pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/oathkey - shared library liboath.so.2 not found
<@EvilDES> pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/oathkey - shared library libpam.so.2 not found
<@EvilDES> pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/pamtest - shared library libpam.so.2 not found
@dag-erling
The FreeBSD Project member

What my script does, briefly:

tmproot=$(mktemp -d)
gmake install DESTDIR=$tmproot
# create a stub manifest, then
echo "files:" >>$manifest
find "$tmproot$prefix" -type f | while read file ; do
    file="${file#$tmproot}"
    echo "  $file: { uname: root, gname: wheel }"
done >>$manifest
pkg create -r$tmproot -m$tmproot

The libraries pkg create complains about are in $tmproot/usr/local/lib and are included in the package.

Setting LD_LIBRARY_PATH=$tmproot$prefix$libdir doesn't help; neither does reverse-sorting the list so pkg create sees the libraries before the binaries.

@bapt
The FreeBSD Project member

This is fixed already

@bapt bapt closed this Oct 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment