The package rpms/snoopy.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/snoopy.git/commit/?id=0c23cadebec572....
Change: +%ifarch s390x
Thanks.
Full change: ============
commit 0c23cadebec572b7547d01917ef830bbe0eb1f1c Author: Neal Gompa ngompa@fedoraproject.org Date: Thu Jul 29 08:24:52 2021 -0400
Disable -Werror on s390x on Fedora 33 only
There's a puzzling failure that only occurs there:
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -Wpedantic -I../../../src -I../../.. -DINI_MAX_LINE=1024 -DINI_INITIAL_ALLOC=1024 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o ini.lo ini.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -Wpedantic -I../../../src -I../../.. -DINI_MAX_LINE=1024 -DINI_INITIAL_ALLOC=1024 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c ini.c -fPIC -DPIC -o .libs/ini.o make[4]: Leaving directory '/builddir/build/BUILD/snoopy-2.4.14/lib/inih/src' In file included from /usr/include/string.h:519, from ini.c:16: In function 'strncpy', inlined from 'strncpy0' at ini.c:73:5, inlined from 'snoopy_ini_parse_stream' at ini.c:202:17: /usr/include/bits/string_fortified.h:91:10: error: 'strncpy' output may be truncated copying 49 bytes from a string of length 1023 [-Werror=stringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
It looks like it's something goofy from the standard library, and doesn't show up in Fedora 34+, so just ignore it there for now.
diff --git a/snoopy.spec b/snoopy.spec index 945d703..193d83a 100644 --- a/snoopy.spec +++ b/snoopy.spec @@ -34,6 +34,14 @@ Logging is done via syslog.
%build +%if 0%{?fc33} +# Only for Fedora 33 +%ifarch s390x +# Disable -Werror to prevent weirdness from the standard library on s390x +export CFLAGS="%{build_cflags} -Wno-error" +%endif +%endif + %configure %make_build
arch-excludes@lists.fedoraproject.org