common/hooks/pre-pkg/04-generate-runtime-deps.sh: sort deps for reproducibility
fixes #36641
This commit is contained in:
parent
cbbcbc5dd3
commit
5ec2556004
1 changed files with 5 additions and 6 deletions
|
@ -34,15 +34,14 @@ add_rundep() {
|
||||||
|
|
||||||
store_pkgdestdir_rundeps() {
|
store_pkgdestdir_rundeps() {
|
||||||
if [ -n "$run_depends" ]; then
|
if [ -n "$run_depends" ]; then
|
||||||
: > ${PKGDESTDIR}/rdeps
|
|
||||||
for f in ${run_depends}; do
|
for f in ${run_depends}; do
|
||||||
_curdep="$(echo "$f" | sed -e 's,\(.*\)?.*,\1,')"
|
_curdep="$(echo "$f" | sed -e 's,\(.*\)?.*,\1,')"
|
||||||
if [ -z "$($XBPS_UHELPER_CMD getpkgdepname ${_curdep} 2>/dev/null)" -a \
|
if [ -z "$($XBPS_UHELPER_CMD getpkgdepname ${_curdep} 2>/dev/null)" -a \
|
||||||
-z "$($XBPS_UHELPER_CMD getpkgname ${_curdep} 2>/dev/null)" ]; then
|
-z "$($XBPS_UHELPER_CMD getpkgname ${_curdep} 2>/dev/null)" ]; then
|
||||||
_curdep="${_curdep}>=0"
|
_curdep="${_curdep}>=0"
|
||||||
fi
|
fi
|
||||||
printf -- "${_curdep} " >> ${PKGDESTDIR}/rdeps
|
printf -- "${_curdep}\n"
|
||||||
done
|
done | sort | xargs > ${PKGDESTDIR}/rdeps
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +144,7 @@ hook() {
|
||||||
|
|
||||||
if [ "${_pkgname}" != "${pkgname}" ]; then
|
if [ "${_pkgname}" != "${pkgname}" ]; then
|
||||||
echo " SONAME: $f <-> ${_sdep}"
|
echo " SONAME: $f <-> ${_sdep}"
|
||||||
sorequires+="${f} "
|
sorequires+="${f}\n"
|
||||||
else
|
else
|
||||||
# Ignore libs by current pkg
|
# Ignore libs by current pkg
|
||||||
echo " SONAME: $f <-> ${_rdep} (ignored)"
|
echo " SONAME: $f <-> ${_rdep} (ignored)"
|
||||||
|
@ -163,9 +162,9 @@ hook() {
|
||||||
store_pkgdestdir_rundeps
|
store_pkgdestdir_rundeps
|
||||||
|
|
||||||
for f in ${shlib_requires}; do
|
for f in ${shlib_requires}; do
|
||||||
sorequires+="${f} "
|
sorequires+="${f}\n"
|
||||||
done
|
done
|
||||||
if [ -n "${sorequires}" ]; then
|
if [ -n "${sorequires}" ]; then
|
||||||
echo "${sorequires}" > ${PKGDESTDIR}/shlib-requires
|
echo "${sorequires}" | sort | xargs > ${PKGDESTDIR}/shlib-requires
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue