common/hooks/pre-pkg/04-generate-runtime-deps.sh: fix sorequires

This commit is contained in:
classabbyamp 2022-05-13 16:13:57 -04:00 committed by Echo
parent 5ec2556004
commit fb9aef712b
1 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ hook() {
if [ "${_pkgname}" != "${pkgname}" ]; then
echo " SONAME: $f <-> ${_sdep}"
sorequires+="${f}\n"
sorequires+="${f} "
else
# Ignore libs by current pkg
echo " SONAME: $f <-> ${_rdep} (ignored)"
@ -162,9 +162,9 @@ hook() {
store_pkgdestdir_rundeps
for f in ${shlib_requires}; do
sorequires+="${f}\n"
sorequires+="${f} "
done
if [ -n "${sorequires}" ]; then
echo "${sorequires}" | sort | xargs > ${PKGDESTDIR}/shlib-requires
echo "${sorequires}" | xargs -n1 | sort | xargs > ${PKGDESTDIR}/shlib-requires
fi
}