Accepting request 1143068 from home:krop:qt6-gcc13
Switch to newer GCC on Leap OBS-URL: https://build.opensuse.org/request/show/1143068 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/qt6-base?expand=0&rev=93
This commit is contained in:
parent
ce4ec93620
commit
d0a5cf7b6d
@ -1,7 +1,7 @@
|
|||||||
From fcd37b9845e4b4a362e7f2bb570955fad623bac8 Mon Sep 17 00:00:00 2001
|
From 793c4c0d728024139083660a7f382f6d95853efe Mon Sep 17 00:00:00 2001
|
||||||
From: Christophe Marin <christophe@krop.fr>
|
From: Christophe Marin <christophe@krop.fr>
|
||||||
Date: Sun, 6 Jun 2021 10:44:09 +0200
|
Date: Sun, 6 Jun 2021 10:44:09 +0200
|
||||||
Subject: [PATCH] Require GCC 12 on Leap
|
Subject: [PATCH] Use newer GCC on Leap.patch
|
||||||
|
|
||||||
The default compiler in Leap doesn't match the Qt requirements.
|
The default compiler in Leap doesn't match the Qt requirements.
|
||||||
Use the latest compiler version available on Leap.
|
Use the latest compiler version available on Leap.
|
||||||
@ -13,7 +13,7 @@ Change-Id: I0c4ad87af4dd60d12fa09366eb9910edafcc9c4c
|
|||||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/mkspecs/common/g++-base.conf b/mkspecs/common/g++-base.conf
|
diff --git a/mkspecs/common/g++-base.conf b/mkspecs/common/g++-base.conf
|
||||||
index d392879f66..5aac58a546 100644
|
index d392879..ddca128 100644
|
||||||
--- a/mkspecs/common/g++-base.conf
|
--- a/mkspecs/common/g++-base.conf
|
||||||
+++ b/mkspecs/common/g++-base.conf
|
+++ b/mkspecs/common/g++-base.conf
|
||||||
@@ -8,14 +8,14 @@
|
@@ -8,14 +8,14 @@
|
||||||
@ -21,21 +21,21 @@ index d392879f66..5aac58a546 100644
|
|||||||
#
|
#
|
||||||
|
|
||||||
-QMAKE_COMPILER = gcc
|
-QMAKE_COMPILER = gcc
|
||||||
+QMAKE_COMPILER = gcc-12
|
+QMAKE_COMPILER = gcc-13
|
||||||
|
|
||||||
-QMAKE_CC = $${CROSS_COMPILE}gcc
|
-QMAKE_CC = $${CROSS_COMPILE}gcc
|
||||||
+QMAKE_CC = $${CROSS_COMPILE}gcc-12
|
+QMAKE_CC = $${CROSS_COMPILE}gcc-13
|
||||||
|
|
||||||
QMAKE_LINK_C = $$QMAKE_CC
|
QMAKE_LINK_C = $$QMAKE_CC
|
||||||
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
||||||
|
|
||||||
-QMAKE_CXX = $${CROSS_COMPILE}g++
|
-QMAKE_CXX = $${CROSS_COMPILE}g++
|
||||||
+QMAKE_CXX = $${CROSS_COMPILE}g++-12
|
+QMAKE_CXX = $${CROSS_COMPILE}g++-13
|
||||||
|
|
||||||
QMAKE_LINK = $$QMAKE_CXX
|
QMAKE_LINK = $$QMAKE_CXX
|
||||||
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
||||||
diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
|
diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
|
||||||
index ae58326289..7bc6a54ccb 100644
|
index ae58326..33cc860 100644
|
||||||
--- a/mkspecs/common/gcc-base.conf
|
--- a/mkspecs/common/gcc-base.conf
|
||||||
+++ b/mkspecs/common/gcc-base.conf
|
+++ b/mkspecs/common/gcc-base.conf
|
||||||
@@ -124,8 +124,8 @@ QMAKE_CFLAGS_MIPS_DSPR2 += -mdspr2
|
@@ -124,8 +124,8 @@ QMAKE_CFLAGS_MIPS_DSPR2 += -mdspr2
|
||||||
@ -44,11 +44,11 @@ index ae58326289..7bc6a54ccb 100644
|
|||||||
# Wrapper tools that understand .o/.a files with GIMPLE instead of machine code
|
# Wrapper tools that understand .o/.a files with GIMPLE instead of machine code
|
||||||
-QMAKE_AR_LTCG = gcc-ar cqs
|
-QMAKE_AR_LTCG = gcc-ar cqs
|
||||||
-QMAKE_NM_LTCG = gcc-nm -P
|
-QMAKE_NM_LTCG = gcc-nm -P
|
||||||
+QMAKE_AR_LTCG = gcc-ar-12 cqs
|
+QMAKE_AR_LTCG = gcc-ar-13 cqs
|
||||||
+QMAKE_NM_LTCG = gcc-nm-12 -P
|
+QMAKE_NM_LTCG = gcc-nm-13 -P
|
||||||
QMAKE_RANLIB_LTCG = true # No need to run since gcc-ar has "s"
|
QMAKE_RANLIB_LTCG = true # No need to run since gcc-ar has "s"
|
||||||
|
|
||||||
QMAKE_LINK_OBJECT_SCRIPT = object_script
|
QMAKE_LINK_OBJECT_SCRIPT = object_script
|
||||||
--
|
--
|
||||||
2.41.0
|
2.43.0
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 31 14:51:31 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Switch to the latest GCC version available in Leap
|
||||||
|
- Replace 0001-Require-GCC-12.patch with 0001-Use-newer-GCC-on-Leap.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 3 08:52:06 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
|
Wed Jan 3 08:52:06 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ Patch100: 0001-Tell-the-truth-about-private-API.patch
|
|||||||
# No need to pollute the library dir with object files, install them in the qt6 subfolder
|
# No need to pollute the library dir with object files, install them in the qt6 subfolder
|
||||||
Patch101: 0001-CMake-Install-objects-files-into-ARCHDATADIR.patch
|
Patch101: 0001-CMake-Install-objects-files-into-ARCHDATADIR.patch
|
||||||
%if 0%{?suse_version} == 1500
|
%if 0%{?suse_version} == 1500
|
||||||
Patch102: 0001-Require-GCC-12.patch
|
Patch102: 0001-Use-newer-GCC-on-Leap.patch
|
||||||
%endif
|
%endif
|
||||||
Patch103: 0001-Don-t-strip-binaries-when-building-with-qmake.patch
|
Patch103: 0001-Don-t-strip-binaries-when-building-with-qmake.patch
|
||||||
##
|
##
|
||||||
@ -57,8 +57,8 @@ BuildRequires: cmake >= 3.18.3
|
|||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
# The default GCC version in Leap 15 is too old
|
# The default GCC version in Leap 15 is too old
|
||||||
%if 0%{?suse_version} == 1500
|
%if 0%{?suse_version} == 1500
|
||||||
BuildRequires: gcc12-PIE
|
BuildRequires: gcc13-PIE
|
||||||
BuildRequires: gcc12-c++
|
BuildRequires: gcc13-c++
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%endif
|
%endif
|
||||||
@ -239,8 +239,8 @@ Requires: libQt6Core6 = %{version}
|
|||||||
Requires: qt6-base-common-devel = %{version}
|
Requires: qt6-base-common-devel = %{version}
|
||||||
%if 0%{?suse_version} == 1500
|
%if 0%{?suse_version} == 1500
|
||||||
# Some public classes require C++ 17 features
|
# Some public classes require C++ 17 features
|
||||||
Requires: gcc12-PIE
|
Requires: gcc13-PIE
|
||||||
Requires: gcc12-c++
|
Requires: gcc13-c++
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n qt6-core-devel
|
%description -n qt6-core-devel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user