mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-12-23 04:31:06 +01:00
build: sync with upstream 2024-12-11 https://github.com/void-linux/void-packages/commit/b4be3eb0
This commit is contained in:
parent
2b46c56a07
commit
f78798a6c0
8 changed files with 29 additions and 29 deletions
|
@ -34,14 +34,14 @@ genpkg() {
|
||||||
cd $pkgdir
|
cd $pkgdir
|
||||||
|
|
||||||
_preserve=${preserve:+-p}
|
_preserve=${preserve:+-p}
|
||||||
if [ -s ${PKGDESTDIR}/rdeps ]; then
|
if [ -s ${XBPS_STATEDIR}/${pkgname}-rdeps ]; then
|
||||||
_deps="$(<${PKGDESTDIR}/rdeps)"
|
_deps="$(<${XBPS_STATEDIR}/${pkgname}-rdeps)"
|
||||||
fi
|
fi
|
||||||
if [ -s ${PKGDESTDIR}/shlib-provides ]; then
|
if [ -s ${XBPS_STATEDIR}/${pkgname}-shlib-provides ]; then
|
||||||
_shprovides="$(<${PKGDESTDIR}/shlib-provides)"
|
_shprovides="$(<${XBPS_STATEDIR}/${pkgname}-shlib-provides)"
|
||||||
fi
|
fi
|
||||||
if [ -s ${PKGDESTDIR}/shlib-requires ]; then
|
if [ -s ${XBPS_STATEDIR}/${pkgname}-shlib-requires ]; then
|
||||||
_shrequires="$(<${PKGDESTDIR}/shlib-requires)"
|
_shrequires="$(<${XBPS_STATEDIR}/${pkgname}-shlib-requires)"
|
||||||
fi
|
fi
|
||||||
if [ -s ${XBPS_STATEDIR}/gitrev ]; then
|
if [ -s ${XBPS_STATEDIR}/gitrev ]; then
|
||||||
_gitrevs="$(<${XBPS_STATEDIR}/gitrev)"
|
_gitrevs="$(<${XBPS_STATEDIR}/gitrev)"
|
||||||
|
|
|
@ -51,7 +51,7 @@ create_debug_pkg() {
|
||||||
msg_red "$pkgver: failed to create debug pkg\n"
|
msg_red "$pkgver: failed to create debug pkg\n"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
printf "${pkgver} " >> ${_destdir}/rdeps
|
printf "${pkgver} " >> ${XBPS_STATEDIR}/${pkgname}-dbg-rdeps
|
||||||
rmdir --ignore-fail-on-non-empty "${PKGDESTDIR}/usr/lib" 2>/dev/null
|
rmdir --ignore-fail-on-non-empty "${PKGDESTDIR}/usr/lib" 2>/dev/null
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,8 @@ collect_sonames() {
|
||||||
echo "$f" >> ${_tmpfile}
|
echo "$f" >> ${_tmpfile}
|
||||||
done
|
done
|
||||||
if [ -s "${_tmpfile}" ]; then
|
if [ -s "${_tmpfile}" ]; then
|
||||||
tr '\n' ' ' < "${_tmpfile}" > ${_destdir}/shlib-provides
|
tr '\n' ' ' < "${_tmpfile}" > "${XBPS_STATEDIR}/${pkgname}-shlib-provides"
|
||||||
echo >> ${_destdir}/shlib-provides
|
echo >> "${XBPS_STATEDIR}/${pkgname}-shlib-provides"
|
||||||
if [ "$_mainpkg" ]; then
|
if [ "$_mainpkg" ]; then
|
||||||
cp "${_tmpfile}" "${_shlib_dir}/${pkgname}.soname"
|
cp "${_tmpfile}" "${_shlib_dir}/${pkgname}.soname"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -41,7 +41,7 @@ store_pkgdestdir_rundeps() {
|
||||||
_curdep="${_curdep}>=0"
|
_curdep="${_curdep}>=0"
|
||||||
fi
|
fi
|
||||||
printf "%s " "${_curdep}"
|
printf "%s " "${_curdep}"
|
||||||
done > "${PKGDESTDIR}/rdeps"
|
done > "${XBPS_STATEDIR}/${pkgname}-rdeps"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,6 +149,6 @@ hook() {
|
||||||
store_pkgdestdir_rundeps
|
store_pkgdestdir_rundeps
|
||||||
|
|
||||||
if [ -n "${sorequires}" ]; then
|
if [ -n "${sorequires}" ]; then
|
||||||
echo "${sorequires}" | xargs -n1 | sort | xargs > ${PKGDESTDIR}/shlib-requires
|
echo "${sorequires}" | xargs -n1 | sort | xargs > ${XBPS_STATEDIR}/${pkgname}-shlib-requires
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,13 +19,13 @@ hook() {
|
||||||
# 32bit dependencies.
|
# 32bit dependencies.
|
||||||
trap - ERR
|
trap - ERR
|
||||||
|
|
||||||
: > ${destdir32}/rdeps
|
: > ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
|
|
||||||
if [ -s "$PKGDESTDIR/rdeps" ]; then
|
if [ -s "${XBPS_STATEDIR}/${pkgname}-rdeps" ]; then
|
||||||
if [ -n "$lib32depends" ]; then
|
if [ -n "$lib32depends" ]; then
|
||||||
_deps="${lib32depends}"
|
_deps="${lib32depends}"
|
||||||
else
|
else
|
||||||
_deps="$(<${PKGDESTDIR}/rdeps)"
|
_deps="$(<${XBPS_STATEDIR}/${pkgname}-rdeps)"
|
||||||
fi
|
fi
|
||||||
for f in ${_deps}; do
|
for f in ${_deps}; do
|
||||||
unset found pkgn pkgv _shprovides
|
unset found pkgn pkgv _shprovides
|
||||||
|
@ -43,7 +43,7 @@ hook() {
|
||||||
# If dependency is a development pkg switch it to 32bit.
|
# If dependency is a development pkg switch it to 32bit.
|
||||||
if [[ $pkgn == *-devel ]]; then
|
if [[ $pkgn == *-devel ]]; then
|
||||||
echo " RDEP: $f -> ${pkgn}-32bit${pkgv} (development)"
|
echo " RDEP: $f -> ${pkgn}-32bit${pkgv} (development)"
|
||||||
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
|
printf "${pkgn}-32bit${pkgv} " >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# If dependency does not have "shlib-provides" do not
|
# If dependency does not have "shlib-provides" do not
|
||||||
|
@ -60,20 +60,20 @@ hook() {
|
||||||
_shprovides="$($XBPS_QUERY_CMD -R --property=shlib-provides "$pkgn")"
|
_shprovides="$($XBPS_QUERY_CMD -R --property=shlib-provides "$pkgn")"
|
||||||
if [ -n "${_shprovides}" ]; then
|
if [ -n "${_shprovides}" ]; then
|
||||||
echo " RDEP: $f -> ${pkgn}-32bit${pkgv} (shlib-provides)"
|
echo " RDEP: $f -> ${pkgn}-32bit${pkgv} (shlib-provides)"
|
||||||
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
|
printf "${pkgn}-32bit${pkgv} " >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
else
|
else
|
||||||
echo " RDEP: $f -> ${pkgn}${pkgv} (no shlib-provides)"
|
echo " RDEP: $f -> ${pkgn}${pkgv} (no shlib-provides)"
|
||||||
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
|
printf "${pkgn}${pkgv} " >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -s ${XBPS_DESTDIR}/${pkgn}-${version}/shlib-provides ]; then
|
if [ -s "${XBPS_STATEDIR}/${pkgn}-shlib-provides" ]; then
|
||||||
# Dependency is a subpkg; check if it provides any shlib
|
# Dependency is a subpkg; check if it provides any shlib
|
||||||
# and convert to 32bit if true.
|
# and convert to 32bit if true.
|
||||||
echo " RDEP: $f -> ${pkgn}-32bit${pkgv} (subpkg, shlib-provides)"
|
echo " RDEP: $f -> ${pkgn}-32bit${pkgv} (subpkg, shlib-provides)"
|
||||||
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
|
printf "${pkgn}-32bit${pkgv} " >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
else
|
else
|
||||||
echo " RDEP: $f -> ${pkgn}${pkgv} (subpkg, no shlib-provides)"
|
echo " RDEP: $f -> ${pkgn}${pkgv} (subpkg, no shlib-provides)"
|
||||||
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
|
printf "${pkgn}${pkgv} " >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -81,7 +81,7 @@ hook() {
|
||||||
# If it's a development pkg add a dependency to the 64bit pkg.
|
# If it's a development pkg add a dependency to the 64bit pkg.
|
||||||
if [[ $pkgn == *-devel ]]; then
|
if [[ $pkgn == *-devel ]]; then
|
||||||
echo " RDEP: ${pkgver}"
|
echo " RDEP: ${pkgver}"
|
||||||
printf "${pkgver} " >> ${destdir32}/rdeps
|
printf "${pkgver} " >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
fi
|
fi
|
||||||
printf "\n" >> ${destdir32}/rdeps
|
printf "\n" >> ${XBPS_STATEDIR}/${pkgname}-32bit-rdeps
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,11 +170,11 @@ hook() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for missing shlibs and SONAME bumps.
|
# Check for missing shlibs and SONAME bumps.
|
||||||
if [ ! -s "${PKGDESTDIR}/shlib-provides" ]; then
|
if [ ! -s "${XBPS_STATEDIR}/${pkgname}-shlib-provides" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for filename in $(<${PKGDESTDIR}/shlib-provides); do
|
for filename in $(<"${XBPS_STATEDIR}/${pkgname}-shlib-provides"); do
|
||||||
rev=${filename#*.so.}
|
rev=${filename#*.so.}
|
||||||
libname=${filename%.so*}
|
libname=${filename%.so*}
|
||||||
_shlib=$(echo "$libname"|sed -E 's|\+|\\+|g')
|
_shlib=$(echo "$libname"|sed -E 's|\+|\\+|g')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# This hook displays resolved dependencies for a pkg.
|
# This hook displays resolved dependencies for a pkg.
|
||||||
|
|
||||||
hook() {
|
hook() {
|
||||||
if [ -e $PKGDESTDIR/rdeps ]; then
|
if [ -e "${XBPS_STATEDIR}/${pkgname}-rdeps" ]; then
|
||||||
echo " $(cat $PKGDESTDIR/rdeps)"
|
echo " $(cat "${XBPS_STATEDIR}/${pkgname}-rdeps")"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ show_pkg_var() {
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_deps() {
|
show_pkg_deps() {
|
||||||
[ -f "${PKGDESTDIR}/rdeps" ] && cat ${PKGDESTDIR}/rdeps
|
[ -f "${XBPS_STATEDIR}/${pkgname}-rdeps" ] && cat "${XBPS_STATEDIR}/${pkgname}-rdeps"
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_files() {
|
show_pkg_files() {
|
||||||
|
@ -155,9 +155,9 @@ show_pkg_build_options() {
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_shlib_provides() {
|
show_pkg_shlib_provides() {
|
||||||
[ -f "${PKGDESTDIR}/shlib-provides" ] && cat ${PKGDESTDIR}/shlib-provides
|
[ -f "${XBPS_STATEDIR}/${pkgname}-shlib-provides" ] && cat "${XBPS_STATEDIR}/${pkgname}-shlib-provides"
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_shlib_requires() {
|
show_pkg_shlib_requires() {
|
||||||
[ -f "${PKGDESTDIR}/shlib-requires" ] && cat ${PKGDESTDIR}/shlib-requires
|
[ -f "${XBPS_STATEDIR}/${pkgname}-shlib-requires" ] && cat "${XBPS_STATEDIR}/${pkgname}-shlib-requires"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue