pre-pkg/06-shlib-provides.sh: shlib-provide all versioned libraries
Previously we provided all libraries in /usr/lib{,32}. Now we provide all libraries with a versioned SONAME anywhere.
This commit is contained in:
parent
fe7289d7af
commit
085f6452ad
1 changed files with 1 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
collect_sonames() {
|
||||
local _destdir="$1" f _soname _fname _pattern
|
||||
local _pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)*$"
|
||||
local _pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)+$"
|
||||
local _tmpfile="$(mktemp)"
|
||||
|
||||
if [ ! -d ${_destdir} ]; then
|
||||
|
@ -19,10 +19,6 @@ collect_sonames() {
|
|||
# shared library
|
||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
||||
if [[ ${_soname} =~ ${_pattern} ]]; then
|
||||
if [ ! -e ${_destdir}/usr/lib/${_fname} -a \
|
||||
! -e ${_destdir}/usr/lib32/${_fname} ]; then
|
||||
continue
|
||||
fi
|
||||
echo "${_soname}" >> ${_tmpfile}
|
||||
echo " SONAME ${_soname} from ${f##${_destdir}}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue