Browse Source

bin/build-packages: pin the $pkgver of all qt5-* dependencies

Erich Eckner 3 months ago
parent
commit
1d40c044e2
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      bin/build-packages

+ 17
- 0
bin/build-packages View File

@@ -778,6 +778,23 @@ while [ "${count}" -ne 0 ] && \
778 778
                     D
779 779
                   }
780 780
                 ' "${pkgfile}.so.needs"
781
+                qt_version=$(
782
+                  sed '
783
+                    s/^installed = qt[0-9]\+-\S\+-\([0-9.]\+\)\(-[^-]\+\)\{2\}$/\1/
784
+                    t
785
+                    d
786
+                  ' "${package_content_dir}/${pkgfile##*/}/.BUILDINFO" | \
787
+                    sort -u
788
+                )
789
+                if [ -n "${qt_version}" ] && \
790
+                  [ "$(printf '%s\n' "${qt_version}" | wc -l)" -eq 1 ]; then
791
+                  sed '
792
+                    s/^depend = \(qt5-\S\+\)$/\1='"${qt_version}"'/
793
+                    t
794
+                    d
795
+                  ' "${package_content_dir}/${pkgfile##*/}/.PKGINFO" >> \
796
+                  "${pkgfile}.so.needs"
797
+                fi
781 798
                 find "${package_content_dir}/${pkgfile##*/}" \
782 799
                   -name 'opt' -prune , \
783 800
                   \( -type f -o -type l \) \