Hello community, here is the log from the commit of package potrace for openSUSE:Factory checked in at 2019-08-27 10:13:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/potrace (Old) and /work/SRC/openSUSE:Factory/.potrace.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "potrace" Tue Aug 27 10:13:38 2019 rev:31 rq:725293 version:1.15 Changes: -------- --- /work/SRC/openSUSE:Factory/potrace/potrace.changes 2017-12-19 10:46:56.890773419 +0100 +++ /work/SRC/openSUSE:Factory/.potrace.new.7948/potrace.changes 2019-08-27 10:13:42.223970268 +0200 @@ -1,0 +2,6 @@ +Fri Aug 16 12:41:48 UTC 2019 - Michel Normand <[email protected]> + +- Add potrace_configure_chg_for_lto.patch + to avoid PowerPC and ARM build failure when LTO enabled. + +------------------------------------------------------------------- New: ---- potrace_configure_chg_for_lto.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ potrace.spec ++++++ --- /var/tmp/diff_new_pack.AZmC67/_old 2019-08-27 10:13:45.615970042 +0200 +++ /var/tmp/diff_new_pack.AZmC67/_new 2019-08-27 10:13:45.619970042 +0200 @@ -1,7 +1,7 @@ # # spec file for package potrace # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,11 +20,13 @@ Version: 1.15 Release: 0 Summary: Utility for Tracing a Bitmap to Scalable Outline Image -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Graphics/Convertors Url: http://potrace.sourceforge.net/ Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz +BuildRequires: libtool BuildRequires: zlib-devel +Patch1: potrace_configure_chg_for_lto.patch Provides: bitmap_tracing %description @@ -65,6 +67,7 @@ %prep %setup -q +%patch1 -p1 %build %define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security @@ -77,6 +80,7 @@ %endif # clang does not support that yet... export CFLAGS="${CFLAGS/-fstack-clash-protection /}" +autoreconf -fvi %configure\ --docdir=%{_docdir}/%{name}\ --with-libpotrace\ ++++++ potrace_configure_chg_for_lto.patch ++++++ From: Michel Normand <[email protected]> Subject: potrace configure chg for lto Date: Fri, 16 Aug 2019 14:39:23 +0200 potrace configure chg for lto For asm inline checking. Signed-off-by: Michel Normand <[email protected]> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: potrace-1.15/configure.ac =================================================================== --- potrace-1.15.orig/configure.ac +++ potrace-1.15/configure.ac @@ -250,7 +250,7 @@ AC_CHECK_FUNC(strncasecmp, , dnl ---------------------------------------------------------------------- dnl Check whether we have i386 features AC_MSG_CHECKING([for Intel 386]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x; +AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int x; asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x)); return x; /* need this so that -O2 does not optimize the asm away */ ]])],[AC_MSG_RESULT(yes)
