Accepting request 725293 from graphics
OBS-URL: https://build.opensuse.org/request/show/725293 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/potrace?expand=0&rev=31
This commit is contained in:
commit
53c32e1411
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 16 12:41:48 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
- Add potrace_configure_chg_for_lto.patch
|
||||||
|
to avoid PowerPC and ARM build failure when LTO enabled.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 13 09:48:27 UTC 2017 - dimstar@opensuse.org
|
Wed Dec 13 09:48:27 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
10
potrace.spec
10
potrace.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package potrace
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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 @@ Name: potrace
|
|||||||
Version: 1.15
|
Version: 1.15
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
|
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: Productivity/Graphics/Convertors
|
Group: Productivity/Graphics/Convertors
|
||||||
Url: http://potrace.sourceforge.net/
|
Url: http://potrace.sourceforge.net/
|
||||||
Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz
|
Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: libtool
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
Patch1: potrace_configure_chg_for_lto.patch
|
||||||
Provides: bitmap_tracing
|
Provides: bitmap_tracing
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -65,6 +67,7 @@ at any resolution.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
|
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
|
||||||
@ -77,6 +80,7 @@ export CFLAGS="${CFLAGS/-fstack-protector /}"
|
|||||||
%endif
|
%endif
|
||||||
# clang does not support that yet...
|
# clang does not support that yet...
|
||||||
export CFLAGS="${CFLAGS/-fstack-clash-protection /}"
|
export CFLAGS="${CFLAGS/-fstack-clash-protection /}"
|
||||||
|
autoreconf -fvi
|
||||||
%configure\
|
%configure\
|
||||||
--docdir=%{_docdir}/%{name}\
|
--docdir=%{_docdir}/%{name}\
|
||||||
--with-libpotrace\
|
--with-libpotrace\
|
||||||
|
26
potrace_configure_chg_for_lto.patch
Normal file
26
potrace_configure_chg_for_lto.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From: Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
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 <normand@linux.vnet.ibm.com>
|
||||||
|
---
|
||||||
|
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)
|
Loading…
x
Reference in New Issue
Block a user