[arch-commits] Commit in qt6-base/trunk (PKGBUILD qt6-base-nostrip.patch)

Antonio Rojas arojas at archlinux.org
Wed Feb 10 21:38:55 UTC 2021


    Date: Wednesday, February 10, 2021 @ 21:38:55
  Author: arojas
Revision: 407825

Do not strip binaries on make install for qmake projects

Added:
  qt6-base/trunk/qt6-base-nostrip.patch
Modified:
  qt6-base/trunk/PKGBUILD

------------------------+
 PKGBUILD               |    9 ++++++---
 qt6-base-nostrip.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-10 21:34:33 UTC (rev 407824)
+++ PKGBUILD	2021-02-10 21:38:55 UTC (rev 407825)
@@ -5,7 +5,7 @@
 pkgname=qt6-base
 _qtver=6.0.1
 pkgver=${_qtver/-/}
-pkgrel=1
+pkgrel=2
 arch=(x86_64)
 url='https://www.qt.io'
 license=(GPL3 LGPL3 FDL custom)
@@ -25,12 +25,15 @@
 groups=(qt6)
 _pkgfn="${pkgname/6-/}-everywhere-src-${_qtver}"
 source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz"
-         qt6-base-cflags.patch)
+         qt6-base-cflags.patch
+         qt6-base-nostrip.patch)
 sha256sums=('8d2bc1829c1479e539f66c2f51a7e11c38a595c9e8b8e45a3b45f3cb41c6d6aa'
-            'cf707cd970650f8b60f8897692b36708ded9ba116723ec8fcd885576783fe85c')
+            'cf707cd970650f8b60f8897692b36708ded9ba116723ec8fcd885576783fe85c'
+            '4b93f6a79039e676a56f9d6990a324a64a36f143916065973ded89adc621e094')
 
 prepare() {
   patch -d $_pkgfn -p1 -i ../qt6-base-cflags.patch # Use system CFLAGS
+  patch -d $_pkgfn -p1 -i ../qt6-base-nostrip.patch # Don't strip binaries with qmake
 }
 
 build() {

Added: qt6-base-nostrip.patch
===================================================================
--- qt6-base-nostrip.patch	                        (rev 0)
+++ qt6-base-nostrip.patch	2021-02-10 21:38:55 UTC (rev 407825)
@@ -0,0 +1,13 @@
+diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
+index 99d77156fd..fc840fe9f6 100644
+--- a/mkspecs/common/gcc-base.conf
++++ b/mkspecs/common/gcc-base.conf
+@@ -31,6 +31,8 @@
+ # you can use the manual test in tests/manual/mkspecs.
+ #
+ 
++CONFIG += nostrip
++
+ QMAKE_CFLAGS_OPTIMIZE      = -O2
+ QMAKE_CFLAGS_OPTIMIZE_FULL = -O3
+ QMAKE_CFLAGS_OPTIMIZE_DEBUG = -Og



More information about the arch-commits mailing list