Hello community, here is the log from the commit of package jasper for openSUSE:Factory checked in at 2017-03-10 21:00:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jasper (Old) and /work/SRC/openSUSE:Factory/.jasper.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "jasper" Fri Mar 10 21:00:26 2017 rev:36 rq:477393 version:1.900.14 Changes: -------- --- /work/SRC/openSUSE:Factory/jasper/jasper.changes 2016-12-26 21:37:48.048149529 +0100 +++ /work/SRC/openSUSE:Factory/.jasper.new/jasper.changes 2017-03-10 21:00:27.344275359 +0100 @@ -1,0 +2,7 @@ +Mon Mar 6 14:19:57 CET 2017 - [email protected] + +- Add -D_BSD_SOURCE to fix redefinition of system types in + jas_config.h and breakage in ppc64le, s390 and s390x + (bsc#1028070). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jasper.spec ++++++ --- /var/tmp/diff_new_pack.TOPWZg/_old 2017-03-10 21:00:28.144162007 +0100 +++ /var/tmp/diff_new_pack.TOPWZg/_new 2017-03-10 21:00:28.148161440 +0100 @@ -1,7 +1,7 @@ # # spec file for package jasper # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -84,9 +84,18 @@ %patch5 -p1 %build -export CFLAGS="$RPM_OPT_FLAGS -Wall -std=c99" +export CFLAGS="$RPM_OPT_FLAGS -Wall -std=c99 -D_BSD_SOURCE" %configure --prefix="%{_prefix}" --enable-shared --disable-static --libdir=%{_libdir} make %{?_smp_mflags} +# +# Sanity check +# With some CFLAGS sets, uint, ulong and ushort are not visible and jas_config.h +# refefines system types. It can trigger build failures after +# #include <jasper/jasper.h>. +if grep "#define ushort" src/libjasper/include/jasper/jas_config.h ; then + echo "jas_config.h redefines system types" >&2 + exit 1 +fi %install make install DESTDIR=$RPM_BUILD_ROOT
