The package rpms/sems.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/sems.git/commit/?id=c4fe8ae4c0eca....
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit c4fe8ae4c0eca40b18d8b3f05a0d59904434b8ae
Author: Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl>
Date: Wed Sep 30 13:23:16 2020 +0200
Disable lto on s390x
In function 'strncpy',
inlined from 'fctstr_safe_cpy' at
/builddir/build/BUILD/sems-baad4717fdb3c02a63eb4869f31ec33ff8ec1fed/core/tests/fct.h:267:12,
inlined from 'fct_ts_new' at
/builddir/build/BUILD/sems-baad4717fdb3c02a63eb4869f31ec33ff8ec1fed/core/tests/fct.h:1157:20:
/usr/include/bits/string_fortified.h:106:34: error: '__builtin_strncpy'
specified bound 256 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^
lto1: some warnings being treated as errors
diff --git a/sems.spec b/sems.spec
index 8010829..9f9af8f 100644
--- a/sems.spec
+++ b/sems.spec
@@ -23,6 +23,10 @@ Patch8: sems-0008-cmake-fix-symbol-visibility.patch
# Workaround for bug in GCC 10 on s390x (test again in the next builds)
Patch9: sems-0009-Don-t-copy-byte-which-will-be-replaced-with-NULL-any.patch
+%ifarch s390x
+%define _lto_cflags %{nil}
+%endif
+
BuildRequires: cmake >= 3.0
BuildRequires: flite-devel
BuildRequires: gcc-c++
commit 65ece67429b768d5e2e060249cf4c7b48552d846
Author: Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl>
Date: Wed Sep 30 12:18:06 2020 +0200
Fix build
I kept adding BRs while there were errors in the build log. Some of those
might be unnecessary, but they probably don't hurt either.
diff --git a/sems.spec b/sems.spec
index 44616c6..8010829 100644
--- a/sems.spec
+++ b/sems.spec
@@ -1,7 +1,3 @@
-# This package depends on automagic byte compilation
-#
https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompi...
-%global _python_bytecompile_extra 1
-
Summary: SIP Express Media Server, an extensible SIP media server
Name: sems
Version: 1.7.0
@@ -45,11 +41,13 @@ BuildRequires: opus-devel
#BuildRequires: python2-devel
BuildRequires: spandsp-devel
BuildRequires: speex-devel
-BuildRequires: systemd
+BuildRequires: systemd-rpm-macros
+BuildRequires: /usr/bin/git
+BuildRequires: /usr/bin/man
+BuildRequires: git-core-doc
+BuildRequires: groff
+BuildRequires: python2
Requires(pre): /usr/sbin/useradd
-Requires(post): systemd-units
-Requires(preun): systemd-units
-Requires(postun): systemd-units
# Disable gateway module
Obsoletes: %{name}-gateway =< 1.3.1
Provides: %{name}-gateway%{?_isa} = %{version}-%{release}
@@ -259,12 +257,12 @@ mv doc/README.stats core/plug-in/stats/README.stats
-DSEMS_AUDIO_PREFIX=%{_datadir} \
-DSEMS_EXEC_PREFIX=%{_prefix} \
-DSEMS_LIBDIR=%{_lib} \
- -DSEMS_DOC_PREFIX=%{_docdir}
-
-make %{?_smp_mflags}
+ -DSEMS_DOC_PREFIX=%{_docdir} \
+ -DSEMS_USE_PYTHON=no
+%cmake_build
%install
-make install DESTDIR=%{buildroot}
+%cmake_install
# FIXME disable python2 until upstream adds support for Py3
rm -f %{buildroot}/%{_sbindir}/%{name}-get-callproperties
@@ -693,6 +691,9 @@ getent passwd %{name} >/dev/null || \
%changelog
+* Tue Sep 29 20:44:24 CEST 2020 Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl> -
1.7.0-0.3.20200311.git.baad471
+- Adjust cmake and python config to fix build (#1865475)
+
* Sat Aug 01 2020 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.7.0-0.3.20200311.git.baad471
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild