diff options
Diffstat (limited to 'common/hooks/pre-pkg/99-pkglint.sh')
-rw-r--r-- | common/hooks/pre-pkg/99-pkglint.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh index 7ae183ae8e8..ab2b215508e 100644 --- a/common/hooks/pre-pkg/99-pkglint.sh +++ b/common/hooks/pre-pkg/99-pkglint.sh @@ -119,7 +119,7 @@ hook() { msg_red "${pkgver}: SONAME bump detected: ${libname}.so.${conflictRev} -> ${libname}.so.${rev}\n" msg_red "${pkgver}: please update common/shlibs with this line: \"${libname}.so.${rev} ${pkgver}\"\n" msg_red "${pkgver}: all reverse dependencies should also be revbumped to be rebuilt against ${libname}.so.${rev}:\n" - _revdeps=$($XBPS_QUERY_XCMD -Rs ${libname}.so -p shlib-requires|awk '{print $1}') + _revdeps=$($XBPS_QUERY_XCMD -Rs ${libname}.so -p shlib-requires|cut -d ' ' -f1) for x in ${_revdeps}; do msg_red " ${x%:}\n" done @@ -128,7 +128,7 @@ hook() { # Try to match provided shlibs in virtual packages. for f in ${provides}; do _vpkgname="$($XBPS_UHELPER_CMD getpkgname ${f} 2>/dev/null)" - _spkgname="$(grep "^${filename}" $mapshlibs | awk '{print $2}')" + _spkgname="$(grep "^${filename}" $mapshlibs | cut -d ' ' -f2)" _libpkgname="$($XBPS_UHELPER_CMD getpkgname ${_spkgname} 2>/dev/null)" if [ -z "${_spkgname}" -o -z "${_libpkgname}" ]; then continue |