[packages/qt6] teach qtwebengine to treat "PLD" cmake build type same as "Release"
atler
atler at pld-linux.org
Wed Apr 5 12:35:25 CEST 2023
commit d39e6da1782ddd6aa4b4e315033d21040d28f8e7
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Apr 5 12:28:07 2023 +0200
teach qtwebengine to treat "PLD" cmake build type same as "Release"
qtwebengine disables debug related flags for release build which
produces significantly smaller libQt6WebEngineCore (on aarch64 before
the change unstripped libQt6WebEngineCore is 5G, after the change it's
220M)
qt6.spec | 2 ++
qtwebengine-cmake-build-type.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/qt6.spec b/qt6.spec
index 20a4058..8733dd7 100644
--- a/qt6.spec
+++ b/qt6.spec
@@ -117,6 +117,7 @@ Patch1: ninja-program.patch
Patch2: %{name}-gn.patch
Patch3: no-implicit-sse2.patch
Patch4: x32.patch
+Patch5: qtwebengine-cmake-build-type.patch
URL: https://www.qt.io/
%{?with_directfb:BuildRequires: DirectFB-devel}
BuildRequires: EGL-devel
@@ -3519,6 +3520,7 @@ narzędzia.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__sed} -i -e 's,usr/X11R6/,usr/,g' qtbase/mkspecs/linux-g++-64/qmake.conf
diff --git a/qtwebengine-cmake-build-type.patch b/qtwebengine-cmake-build-type.patch
new file mode 100644
index 0000000..a5bdeb8
--- /dev/null
+++ b/qtwebengine-cmake-build-type.patch
@@ -0,0 +1,11 @@
+--- qt-everywhere-src-6.5.0/qtwebengine/cmake/Functions.cmake.orig 2023-04-04 18:57:25.754463285 +0200
++++ qt-everywhere-src-6.5.0/qtwebengine/cmake/Functions.cmake 2023-04-04 18:58:51.778567461 +0200
+@@ -848,7 +848,7 @@
+ if(WIN32)
+ list(APPEND gnArgArg enable_iterator_debugging=true v8_optimized_debug=false)
+ endif()
+- elseif(${config} STREQUAL "Release")
++ elseif(${config} STREQUAL "Release" OR ${config} STREQUAL "PLD")
+ list(APPEND gnArgArg is_debug=false symbol_level=0)
+ elseif(${config} STREQUAL "RelWithDebInfo")
+ list(APPEND gnArgArg is_debug=false)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qt6.git/commitdiff/d39e6da1782ddd6aa4b4e315033d21040d28f8e7
More information about the pld-cvs-commit
mailing list