The package rpms/swig.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/swig.git/commit/?id=2510ac580b4ed...
https://src.fedoraproject.org/cgit/rpms/swig.git/commit/?id=859a5f560f678....
Change:
+%ifarch %{ix86}
+%ifarch %{ix86}
Thanks.
Full change:
============
commit 45987fab112c6f1f2bd3004c43dc12acd2ca72b2
Author: Jitka Plesnikova <jplesnik(a)redhat.com>
Date: Mon Apr 29 16:41:21 2024 +0200
Fix gcc -Wformat-security warning in R Raise function (rhbz#2277767)
diff --git a/swig-R-Fix-gcc-s-Wformat-security-warning-in-R-Raise-functi.patch
b/swig-R-Fix-gcc-s-Wformat-security-warning-in-R-Raise-functi.patch
new file mode 100644
index 0000000..0c0cd61
--- /dev/null
+++ b/swig-R-Fix-gcc-s-Wformat-security-warning-in-R-Raise-functi.patch
@@ -0,0 +1,27 @@
+From 3d5157514889c668bc14c245246c388eb23615ea Mon Sep 17 00:00:00 2001
+From: pekkarr <pekkarr(a)protonmail.com>
+Date: Mon, 29 Apr 2024 10:00:38 +0300
+Subject: [PATCH] Fix gcc's -Wformat-security warning in R Raise function
+ (#2896)
+
+The `Rf_error` function takes a format string as its first argument.
+---
+ Lib/r/r.swg | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Lib/r/r.swg b/Lib/r/r.swg
+index c1ce37c3e..63b69d8cf 100644
+--- a/Lib/r/r.swg
++++ b/Lib/r/r.swg
+@@ -28,7 +28,7 @@ SWIGEXPORT void SWIG_init(void) {
+
+ %runtime %{
+ SWIGINTERN void SWIG_R_Raise(SEXP obj, const char *msg) {
+- Rf_error(Rf_isString(obj) ? CHAR(Rf_asChar(obj)) : msg);
++ Rf_error("%s", Rf_isString(obj) ? CHAR(Rf_asChar(obj)) : msg);
+ }
+ %}
+
+--
+2.44.0
+
diff --git a/swig.spec b/swig.spec
index 56d81ed..841c419 100644
--- a/swig.spec
+++ b/swig.spec
@@ -68,7 +68,7 @@
Summary: Connects C/C++/Objective C to some high-level programming languages
Name: swig
Version: 4.2.1
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPL-3.0-or-later AND BSD-3-Clause
URL:
https://www.swig.org/
Source0:
http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%...
@@ -82,6 +82,9 @@ Source4: ccache-swig.csh
# Small fixes for java tests, in upstream after 4.2.1
Patch0: swig-java-Avoid-using-deprecated-API-in-doxygen-example.patch
Patch1: swig-java-Suppress-System.runFinalization-removal-warning.patch
+# Fix gcc's -Wformat-security warning in R Raise function
+#
https://github.com/swig/swig/pull/2896
+Patch2: swig-R-Fix-gcc-s-Wformat-security-warning-in-R-Raise-functi.patch
BuildRequires: coreutils
BuildRequires: findutils
@@ -365,6 +368,9 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
%{_datadir}/%{name}/gdb
%changelog
+* Mon Apr 29 2024 Jitka Plesnikova <jplesnik(a)redhat.com> - 4.2.1-4
+- Fix gcc's -Wformat-security warning in R Raise function (rhbz#2277767)
+
* Fri Apr 12 2024 Remi Collet <remi(a)remirepo.net> - 4.2.1-3
- disable PHP support on 32-bit
https://fedoraproject.org/wiki/Changes/php_no_32_bit
commit 2510ac580b4ed742d60d4bd7e1155b8acc9c54f5
Author: Jitka Plesnikova <jplesnik(a)redhat.com>
Date: Tue Apr 16 17:02:40 2024 +0200
Disable PHP support on 32-bit
diff --git a/swig.spec b/swig.spec
index 6314cda..56d81ed 100644
--- a/swig.spec
+++ b/swig.spec
@@ -16,18 +16,20 @@
%global ocamllang 0
%endif
+%{!?tcl:%global tcl 1}
+%{!?lualang:%global lualang 1}
+%{!?perllang:%global perllang 1}
+%{!?rubylang:%global rubylang 1}
+%{!?python3lang:%global python3lang 1}
+
+# PHP drop support for 32-bit builds since Fedora 41.
%if 0%{?fedora} >= 41
%ifarch %{ix86}
%global phplang 0
%endif
%endif
-
-%{!?tcl:%global tcl 1}
-%{!?lualang:%global lualang 1}
-%{!?perllang:%global perllang 1}
%{!?phplang:%global phplang 1}
-%{!?rubylang:%global rubylang 1}
-%{!?python3lang:%global python3lang 1}
+
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
%ifarch %{ix86}
%{!?ocamllang:%global ocamllang 0}
@@ -48,7 +50,7 @@
%bcond_without build_ccache_swig
%endif
-%ifarch i686
+%ifarch %{ix86}
%{!?javalang:%global javalang 0}
%else
# Temporary disable java tests, because they doesn't pass with java-21-openjdk
commit 859a5f560f6783ef416f0b33729879874a42675b
Author: Remi Collet <remi(a)fedoraproject.org>
Date: Fri Apr 12 09:57:42 2024 +0200
disable PHP support on 32-bit
diff --git a/swig.spec b/swig.spec
index 05b4c4f..6314cda 100644
--- a/swig.spec
+++ b/swig.spec
@@ -16,6 +16,12 @@
%global ocamllang 0
%endif
+%if 0%{?fedora} >= 41
+%ifarch %{ix86}
+%global phplang 0
+%endif
+%endif
+
%{!?tcl:%global tcl 1}
%{!?lualang:%global lualang 1}
%{!?perllang:%global perllang 1}
@@ -60,7 +66,7 @@
Summary: Connects C/C++/Objective C to some high-level programming languages
Name: swig
Version: 4.2.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL-3.0-or-later AND BSD-3-Clause
URL:
https://www.swig.org/
Source0:
http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%...
@@ -357,6 +363,10 @@ install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
%{_datadir}/%{name}/gdb
%changelog
+* Fri Apr 12 2024 Remi Collet <remi(a)remirepo.net> - 4.2.1-3
+- disable PHP support on 32-bit
+
https://fedoraproject.org/wiki/Changes/php_no_32_bit
+
* Sat Mar 02 2024 Jiri Vanek <jvanek(a)redhat.com> - 4.2.1-2
- Rebuilt for java-21-openjdk as system jdk
- Temporary disable java tests (rhbz#2266693)