aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg/99-pkglint.sh
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2019-07-10 17:48:54 +0000
committerJuan RP <xtraeme@gmail.com>2019-07-10 18:28:46 +0000
commite4984d01ea049e7cde260fc1a05d61fbdd403180 (patch)
tree122237833152e1dfe3e1c2afa531925871c90c09 /common/hooks/pre-pkg/99-pkglint.sh
parent529a019a3f29df09936cbb12179c2eb31bcc2e27 (diff)
downloadvoid-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.tar
void-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.tar.gz
void-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.tar.bz2
void-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.tar.lz
void-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.tar.xz
void-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.tar.zst
void-packages-e4984d01ea049e7cde260fc1a05d61fbdd403180.zip
xbps-src: multiple performance improvements
- use xbps-checkvers(1) to resolve dependencies. - all dependencies are installed at once for the host and target. - the show-build-deps target is now much faster. - the update-bulk/show-repo-updates targets are now much faster. - the update-sys/show-sys-updates targets are now much faster. - the bootstrap target now works on musl hosts. - simplified some loops. - use cut(1) rather than awk(1) where applicable. - multiple random changes to improve performance. Based on work started by @Duncaen on #12433 Close #12433 Close #11282
Diffstat (limited to 'common/hooks/pre-pkg/99-pkglint.sh')
-rw-r--r--common/hooks/pre-pkg/99-pkglint.sh4
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