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

Antonio Rojas arojas at archlinux.org
Wed Feb 10 21:27:07 UTC 2021


    Date: Wednesday, February 10, 2021 @ 21:27:07
  Author: arojas
Revision: 407820

Do not strip binaries on make install for qmake projects

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

------------------------+
 PKGBUILD               |    7 +++++--
 qt5-base-nostrip.patch |   13 +++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-10 19:58:32 UTC (rev 407819)
+++ PKGBUILD	2021-02-10 21:27:07 UTC (rev 407820)
@@ -5,7 +5,7 @@
 pkgname=(qt5-base qt5-xcb-private-headers)
 _qtver=5.15.2
 pkgver=${_qtver/-/}
-pkgrel=3
+pkgrel=5
 arch=('x86_64')
 url='https://www.qt.io'
 license=('GPL3' 'LGPL3' 'FDL' 'custom')
@@ -30,15 +30,18 @@
 _pkgfqn="${pkgbase/5-/}-everywhere-src-${_qtver}"
 source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
          qt5-base-cflags.patch
+         qt5-base-nostrip.patch
          kdebug-428095.patch::"https://code.qt.io/cgit/qt/qtbase.git/patch?id=c5336057")
 sha256sums=('909fad2591ee367993a75d7e2ea50ad4db332f05e1c38dd7a5a274e156a4e0f8'
             'cf707cd970650f8b60f8897692b36708ded9ba116723ec8fcd885576783fe85c'
+            '4b93f6a79039e676a56f9d6990a324a64a36f143916065973ded89adc621e094'
             '25b1059e92ae135b1b5031c5b1dde32d03906f17c9245ac1c2f9e1248917e7b0')
 
 prepare() {
   cd ${_pkgfqn}
 
-  patch -p1 -i ../qt5-base-cflags.patch # Use system CFLAGS
+  patch -p1 -i ../qt5-base-cflags.patch # Use system CFLAGS in qmake
+  patch -p1 -i ../qt5-base-nostrip.patch # Don't strip binaries with qmake
   patch -p1 -i ../kdebug-428095.patch # Fix black border on some menus with Breeze
 }
 

Added: qt5-base-nostrip.patch
===================================================================
--- qt5-base-nostrip.patch	                        (rev 0)
+++ qt5-base-nostrip.patch	2021-02-10 21:27:07 UTC (rev 407820)
@@ -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