summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-05 22:13:21 +0200
committerErich Eckner <git@eckner.net>2019-07-05 22:13:21 +0200
commit1d40c044e2b46a1260292f4fd0c5d2625c6b7838 (patch)
tree649c7998ac83bafc0ab9dbbbb343ed7de944a1fb
parent1cb1c3956b8c5de12340f5008ed815320cb4ab8a (diff)
downloadbuilder-1d40c044e2b46a1260292f4fd0c5d2625c6b7838.tar.xz
bin/build-packages: pin the $pkgver of all qt5-* dependencies
-rwxr-xr-xbin/build-packages17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/build-packages b/bin/build-packages
index d97e793..ef96690 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -778,6 +778,23 @@ while [ "${count}" -ne 0 ] && \
D
}
' "${pkgfile}.so.needs"
+ qt_version=$(
+ sed '
+ s/^installed = qt[0-9]\+-\S\+-\([0-9.]\+\)\(-[^-]\+\)\{2\}$/\1/
+ t
+ d
+ ' "${package_content_dir}/${pkgfile##*/}/.BUILDINFO" | \
+ sort -u
+ )
+ if [ -n "${qt_version}" ] && \
+ [ "$(printf '%s\n' "${qt_version}" | wc -l)" -eq 1 ]; then
+ sed '
+ s/^depend = \(qt5-\S\+\)$/\1='"${qt_version}"'/
+ t
+ d
+ ' "${package_content_dir}/${pkgfile##*/}/.PKGINFO" >> \
+ "${pkgfile}.so.needs"
+ fi
find "${package_content_dir}/${pkgfile##*/}" \
-name 'opt' -prune , \
\( -type f -o -type l \) \