From 7db4b4962750d1080062a54e8e0a1d1175e0ac21b4633d28b2303c89b1fff00e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 1 Jul 2019 10:02:52 +0000 Subject: [PATCH] Accepting request 712734 from home:marxin:branches:devel:libraries:c_c++ - Add floating-point-format-no-lto.patch in order to fix assembler scanning (boo#1138809). OBS-URL: https://build.opensuse.org/request/show/712734 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=75 --- floating-point-format-no-lto.patch | 13 +++++++++++++ gmp.changes | 6 ++++++ gmp.spec | 8 +++++--- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 floating-point-format-no-lto.patch diff --git a/floating-point-format-no-lto.patch b/floating-point-format-no-lto.patch new file mode 100644 index 0000000..0041e4f --- /dev/null +++ b/floating-point-format-no-lto.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index 12ddffd..a7890ed 100755 +--- a/configure ++++ b/configure +@@ -24563,7 +24563,7 @@ struct foo foo = { + { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }, + }; + EOF +-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1" ++gmp_compile="$CC $CFLAGS $CPPFLAGS -fno-lto -c conftest.c >&5 2>&1" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 + (eval $gmp_compile) 2>&5 + ac_status=$? diff --git a/gmp.changes b/gmp.changes index f806db7..a7e021e 100644 --- a/gmp.changes +++ b/gmp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 1 07:48:02 UTC 2019 - Martin Liška + +- Add floating-point-format-no-lto.patch in order to fix assembler scanning + (boo#1138809). + ------------------------------------------------------------------- Thu Feb 22 15:10:32 UTC 2018 - fvogt@suse.com diff --git a/gmp.spec b/gmp.spec index 6342e89..68b1bb6 100644 --- a/gmp.spec +++ b/gmp.spec @@ -1,7 +1,7 @@ # # spec file for package gmp # -# Copyright (c) 2018 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,7 +20,7 @@ Name: gmp Version: 6.1.2 Release: 0 Summary: The GNU MP Library -License: GPL-3.0+ and LGPL-3.0+ +License: GPL-3.0-or-later AND LGPL-3.0-or-later Group: System/Libraries Url: https://gmplib.org/ Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz @@ -29,6 +29,7 @@ Source2: %{name}.keyring Source3: baselibs.conf Patch0: gmp-noexec.diff Patch1: gmp-6.1.2-conftest.patch +Patch2: floating-point-format-no-lto.patch BuildRequires: gcc-c++ BuildRequires: m4 BuildRequires: xz @@ -71,6 +72,7 @@ huge numbers (integer and floating point). %setup -q %patch0 %patch1 +%patch2 -p1 %build export CFLAGS="%{optflags} -fexceptions"