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
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
collect_sonames() {
|
collect_sonames() {
|
||||||
local _destdir="$1" f _soname _fname _pattern
|
local _destdir="$1" f _soname _fname _pattern
|
||||||
local _pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)*$"
|
local _pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)+$"
|
||||||
local _tmpfile="$(mktemp)"
|
local _tmpfile="$(mktemp)"
|
||||||
|
|
||||||
if [ ! -d ${_destdir} ]; then
|
if [ ! -d ${_destdir} ]; then
|
||||||
|
@ -19,10 +19,6 @@ collect_sonames() {
|
||||||
# shared library
|
# shared library
|
||||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
||||||
if [[ ${_soname} =~ ${_pattern} ]]; then
|
if [[ ${_soname} =~ ${_pattern} ]]; then
|
||||||
if [ ! -e ${_destdir}/usr/lib/${_fname} -a \
|
|
||||||
! -e ${_destdir}/usr/lib32/${_fname} ]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
echo "${_soname}" >> ${_tmpfile}
|
echo "${_soname}" >> ${_tmpfile}
|
||||||
echo " SONAME ${_soname} from ${f##${_destdir}}"
|
echo " SONAME ${_soname} from ${f##${_destdir}}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue