[packages/gtk-webkit3] - require gcc 7 for C++17, disable too noisy warning

qboosh qboosh at pld-linux.org
Mon Mar 10 19:31:51 CET 2025


commit 4890c8b7b7331489e936a2d39e1adcfc8ac0d435
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 10 19:14:56 2025 +0100

    - require gcc 7 for C++17, disable too noisy warning

 gtk-webkit3.spec | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gtk-webkit3.spec b/gtk-webkit3.spec
index 1cfd523..6f07f1b 100644
--- a/gtk-webkit3.spec
+++ b/gtk-webkit3.spec
@@ -54,7 +54,6 @@ BuildRequires:	glibc-misc
 BuildRequires:	gperf
 BuildRequires:	gstreamer-devel >= 1.0.3
 BuildRequires:	gstreamer-plugins-base-devel >= 1.0.3
-BuildRequires:	libstdc++-devel >= 6:4.7
 # GTK+ 2.x for webkit2 plugin process; GTK+ 3 for base GUI
 BuildRequires:	gtk+2-devel >= 2:2.24.10
 BuildRequires:	gtk+3-devel >= 3.10.0
@@ -69,7 +68,7 @@ BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
 BuildRequires:	libsecret-devel
 BuildRequires:	libsoup-devel >= 2.42.0
-BuildRequires:	libstdc++-devel
+BuildRequires:	libstdc++-devel >= 6:7
 # libtool with -fuse-ld= gcc option support
 BuildRequires:	libtool >= 2:2.4.2-13
 BuildRequires:	libwebp-devel
@@ -129,7 +128,7 @@ Requires:	%{name} = %{version}-%{release}
 Requires:	glib2-devel >= 1:2.36.0
 Requires:	gtk+3-devel >= 3.10.0
 Requires:	libsoup-devel >= 2.42.0
-Requires:	libstdc++-devel
+Requires:	libstdc++-devel >= 6:7
 
 %description devel
 Development files for WebKit for GTK+ 3.
@@ -172,9 +171,7 @@ Dokumentacja API WebKita.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%if "%{cxx_version}" >= "4.9"
-CXXFLAGS="%{rpmcxxflags} -fno-delete-null-pointer-checks"
-%endif
+CXXFLAGS="%{rpmcxxflags} -fno-delete-null-pointer-checks -Wno-expansion-to-defined"
 %configure \
 %ifarch %{x8664}
 	LDFLAGS="%{rpmldflags} -fuse-ld=gold" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk-webkit3.git/commitdiff/4890c8b7b7331489e936a2d39e1adcfc8ac0d435



More information about the pld-cvs-commit mailing list