Skip to content
This repository

pkg create shared library issue #572

Closed
bdrewery opened this Issue · 2 comments

3 participants

Bryan Drewery Baptiste Daroussin Dag-Erling Smørgrav
Bryan Drewery
Collaborator
 I can't create a package in a temp directory if it contains shared libraries
 pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/su - shared library libpam.so.2 not found
 pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/oathkey - shared library liboath.so.2 not found
 pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/oathkey - shared library libpam.so.2 not found
 pkg: (openpam-trunk) /tmp/tmp.dEtEU69B/usr/local/bin/pamtest - shared library libpam.so.2 not found
Dag-Erling Smørgrav

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.

Baptiste Daroussin
Collaborator

This is fixed already

Baptiste Daroussin bapt closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.