Hello community, here is the log from the commit of package odp for openSUSE:Factory checked in at 2017-06-26 15:52:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/odp (Old) and /work/SRC/openSUSE:Factory/.odp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "odp" Mon Jun 26 15:52:13 2017 rev:2 rq:505192 version:1.11.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/odp/odp.changes 2017-03-16 09:36:16.379458854 +0100 +++ /work/SRC/openSUSE:Factory/.odp.new/odp.changes 2017-06-26 15:52:15.831656252 +0200 @@ -1,0 +2,16 @@ +Wed Jun 14 07:03:51 UTC 2017 - marco.varlese@suse.com + +- Removed 0002-fix-PKTIO_NAME_LEN.patch +- Following instructions from upstream to build with gcc-7 + +------------------------------------------------------------------- +Mon Jun 5 15:24:42 UTC 2017 - marco.varlese@suse.com + +- Added 0002-fix-PKTIO_NAME_LEN.patch + +------------------------------------------------------------------- +Mon Jun 5 14:04:03 UTC 2017 - marco.varlese@suse.com + +- Support for GCC-7 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ odp.spec ++++++ --- /var/tmp/diff_new_pack.b8NPwF/_old 2017-06-26 15:52:16.611546280 +0200 +++ /var/tmp/diff_new_pack.b8NPwF/_new 2017-06-26 15:52:16.615545717 +0200 @@ -24,12 +24,16 @@ Group: Development/Libraries/C and C++ Url: https://www.opendataplane.org Source0: https://git.linaro.org/lng/odp.git/snapshot/odp-1.11.0.0_monarch.tar.gz -Patch1: 0001-increase_ODP_CPUMASK_SIZE.patch +Patch0: 0001-increase_ODP_CPUMASK_SIZE.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: chrpath BuildRequires: doxygen +%if %{suse_version} >= 1330 +BuildRequires: gcc +%else BuildRequires: gcc6 +%endif BuildRequires: graphviz BuildRequires: libopenssl-devel BuildRequires: libtool @@ -79,15 +83,23 @@ %setup -q -n odp-1.11.0.0_monarch # The below command is used to replace the use of git-hash with the version of the source code sed -i "s|^AC_INIT.*|AC_INIT([OpenDataPlane], [%{version}], [lng-odp@lists.linaro.org])|" configure.ac -%patch1 +%patch0 %build -export CFLAGS="%{optflags} -O3" +%if %{suse_version} >= 1330 +export CFLAGS="%{optflags} -Wformat-overflow=0 -Wimplicit-fallthrough=0 -Wformat-truncation=0 -latomic" +%else +export CFLAGS="%{optflags}" +%endif ./bootstrap %configure --disable-static %install +%if %{suse_version} >= 1330 +make V=1 DESTDIR=%{buildroot} %{?_smp_mflags} install +%else make V=1 CC=gcc-6 DESTDIR=%{buildroot} %{?_smp_mflags} install +%endif find %{buildroot} -type f -name 'libodp*.la' |xargs rm -f rm -f %{buildroot}%{_bindir}/odp_ipsec_run* chrpath -k -d %{buildroot}%{_bindir}/*