diff options
author | classabbyamp <dev@placeviolette.net> | 2022-04-12 19:28:23 +0000 |
---|---|---|
committer | Echo <michal@vasilek.cz> | 2022-05-13 19:21:23 +0000 |
commit | 5ec2556004b445a7d50a043606619722c630fde4 (patch) | |
tree | 992859538f4cb0a1652b26c942827dbb959f0046 | |
parent | cbbcbc5dd34053393ebf030baea17811e53d754c (diff) | |
download | void-packages-5ec2556004b445a7d50a043606619722c630fde4.tar void-packages-5ec2556004b445a7d50a043606619722c630fde4.tar.gz void-packages-5ec2556004b445a7d50a043606619722c630fde4.tar.bz2 void-packages-5ec2556004b445a7d50a043606619722c630fde4.tar.lz void-packages-5ec2556004b445a7d50a043606619722c630fde4.tar.xz void-packages-5ec2556004b445a7d50a043606619722c630fde4.tar.zst void-packages-5ec2556004b445a7d50a043606619722c630fde4.zip |
common/hooks/pre-pkg/04-generate-runtime-deps.sh: sort deps for reproducibility
fixes #36641
-rw-r--r-- | common/hooks/pre-pkg/04-generate-runtime-deps.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/hooks/pre-pkg/04-generate-runtime-deps.sh b/common/hooks/pre-pkg/04-generate-runtime-deps.sh index c8f8c04d488..987b0cece9c 100644 --- a/common/hooks/pre-pkg/04-generate-runtime-deps.sh +++ b/common/hooks/pre-pkg/04-generate-runtime-deps.sh @@ -34,15 +34,14 @@ add_rundep() { store_pkgdestdir_rundeps() { if [ -n "$run_depends" ]; then - : > ${PKGDESTDIR}/rdeps for f in ${run_depends}; do _curdep="$(echo "$f" | sed -e 's,\(.*\)?.*,\1,')" if [ -z "$($XBPS_UHELPER_CMD getpkgdepname ${_curdep} 2>/dev/null)" -a \ -z "$($XBPS_UHELPER_CMD getpkgname ${_curdep} 2>/dev/null)" ]; then _curdep="${_curdep}>=0" fi - printf -- "${_curdep} " >> ${PKGDESTDIR}/rdeps - done + printf -- "${_curdep}\n" + done | sort | xargs > ${PKGDESTDIR}/rdeps fi } @@ -145,7 +144,7 @@ hook() { if [ "${_pkgname}" != "${pkgname}" ]; then echo " SONAME: $f <-> ${_sdep}" - sorequires+="${f} " + sorequires+="${f}\n" else # Ignore libs by current pkg echo " SONAME: $f <-> ${_rdep} (ignored)" @@ -163,9 +162,9 @@ hook() { store_pkgdestdir_rundeps for f in ${shlib_requires}; do - sorequires+="${f} " + sorequires+="${f}\n" done if [ -n "${sorequires}" ]; then - echo "${sorequires}" > ${PKGDESTDIR}/shlib-requires + echo "${sorequires}" | sort | xargs > ${PKGDESTDIR}/shlib-requires fi } |