public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/Simple-Fuzzer] f45: Simple-Fuzzer: backport unused-repls fix for GCC 15
@ 2026-11-29 15:36 moushun chen
0 siblings, 0 replies; only message in thread
From: moushun chen @ 2026-11-29 15:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/Simple-Fuzzer
Branch : f45
Commit : 444286df0ecf35480476b12b3ce29f922904f5be
Author : moushun chen <cms19859230182@gmail.com>
Date : 2026-11-26T03:10:39+00:00
Stats : +46/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/Simple-Fuzzer/c/444286df0ecf35480476b12b3ce29f922904f5be?branch=f45
Log:
Simple-Fuzzer: backport unused-repls fix for GCC 15
Same as rawhide fix-werror.patch: drop unused repls counters so -Wall -Werror builds on GCC 15.
---
diff --git a/Simple-Fuzzer.spec b/Simple-Fuzzer.spec
index 1ce6e08..4ded826 100644
--- a/Simple-Fuzzer.spec
+++ b/Simple-Fuzzer.spec
@@ -1,7 +1,7 @@
Summary: A simple fuzz test-case builder
Name: Simple-Fuzzer
Version: 0.7.1
-Release: 29%{?dist}
+Release: 30%{?dist}
# Automatically converted from old format: BSD - review is highly recommended.
License: LicenseRef-Callaway-BSD
URL: http://aconole.bytheb.org/programs/sfuzz.html
@@ -37,6 +37,48 @@ plugins for Simple Fuzzer
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
+# Backport rawhide GCC15 unused-repls fix (same as fix-werror.patch)
+cat > .fix-werror.patch <<'PATCH_EOF'
+--- a/os-abs.c
++++ b/os-abs.c
+@@ -692,7 +692,6 @@
+ {
+ char *f;
+ char *str = buf;
+- int repls = 0;
+
+ int origl;
+ int oldl;
+@@ -707,8 +706,6 @@
+
+ while((f = strstr(str, old)) != NULL)
+ {
+- ++repls;
+-
+ origl -= oldl;
+
+ if(origl < 0)
+@@ -728,7 +725,6 @@
+ {
+ char *f;
+ char *str = buf;
+- int repls = 0;
+
+ int origl = buflen;
+ int oldl;
+@@ -740,8 +736,6 @@
+ while((f = __internal_memmem(str, (buf + buflen) - str, old, oldl))
+ != NULL)
+ {
+- ++repls;
+-
+ if( ( (f+newl) < buf) || ( (f+newl) > (buf + maxlen) ) )
+ return origl;
+ else if ( (((f+oldl) < buf)) || ( (f+oldl) > (buf+maxlen)) )
+PATCH_EOF
+patch -p1 < .fix-werror.patch
+rm -f .fix-werror.patch
+
%build
%configure --force-symbols --aux-search-path=%{_libdir}/simple-fuzzer
@@ -65,6 +107,9 @@ mv %{buildroot}%{_datadir}/sfuzz-db/*.so %{buildroot}%{_libdir}/simple-fuzzer/
%license LICENSING
%changelog
+* Thu Nov 26 2026 moushun chen <cms19859230182@gmail.com> - 0.7.1-30
+- Backport unused repls fix for GCC 15 -Werror (same as rawhide)
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-29 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 15:36 [rpms/Simple-Fuzzer] f45: Simple-Fuzzer: backport unused-repls fix for GCC 15 moushun chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox