From 619f2f08451522ee35ab4e0ca1f67ac1bf1aa0d255c7224b7056992ed6dc8d56 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 22 Aug 2019 12:49:25 +0000 Subject: [PATCH] Accepting request 724023 from home:michel_mno:branches:devel:libraries:c_c++ - Add libpgm-5.2.122-configure-rdtsc-checking-chg.patch same as https://github.com/steve-o/openpgm/pull/63 OBS-URL: https://build.opensuse.org/request/show/724023 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/openpgm?expand=0&rev=23 --- ...5.2.122-configure-rdtsc-checking-chg.patch | 28 +++++++++++++++++++ openpgm.changes | 6 ++++ openpgm.spec | 3 ++ 3 files changed, 37 insertions(+) create mode 100644 libpgm-5.2.122-configure-rdtsc-checking-chg.patch diff --git a/libpgm-5.2.122-configure-rdtsc-checking-chg.patch b/libpgm-5.2.122-configure-rdtsc-checking-chg.patch new file mode 100644 index 0000000..f488e69 --- /dev/null +++ b/libpgm-5.2.122-configure-rdtsc-checking-chg.patch @@ -0,0 +1,28 @@ +From: Michel Normand +Subject: libpgm 5.2.122 configure rdtsc checking chg +Date: Fri, 16 Aug 2019 13:20:53 +0200 + +libpgm 5.2.122 configure rdtsc checking chg + +To avoid rdtsc to be enabled when not required +(for PowerPC ARM) when LTO is enabled; eg openSUSE: +https://build.opensuse.org/package/show/devel:libraries:c_c++/openpgm + +Signed-off-by: Michel Normand +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: pgm/configure.ac +=================================================================== +--- pgm.orig/configure.ac ++++ pgm/configure.ac +@@ -153,7 +153,7 @@ darwin*) + AC_MSG_RESULT([no]) + ;; + *) +-AC_COMPILE_IFELSE( ++AC_LINK_IFELSE( + [AC_LANG_PROGRAM(,[[unsigned long lo, hi; + __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));]])], + [AC_MSG_RESULT([yes]) diff --git a/openpgm.changes b/openpgm.changes index a959f2c..9c1c573 100644 --- a/openpgm.changes +++ b/openpgm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 16 11:40:05 UTC 2019 - Michel Normand + +- Add libpgm-5.2.122-configure-rdtsc-checking-chg.patch + same as https://github.com/steve-o/openpgm/pull/63 + ------------------------------------------------------------------- Mon Jan 28 12:51:34 UTC 2019 - luca.boccassi@gmail.com diff --git a/openpgm.spec b/openpgm.spec index 5d54e83..fb79a6e 100644 --- a/openpgm.spec +++ b/openpgm.spec @@ -39,6 +39,8 @@ Patch0: libpgm-5.2.122-reproducible.patch Patch1: libpgm-5.2.122-reproducible-architecture.patch # PATCH-FIX-UPSTREAM bluca https://github.com/steve-o/openpgm/pull/57 Patch2: libpgm-5.2.122-pkg-config-do-not-add-I-to-non-existing-directory.patch +# upstream pending patch https://github.com/steve-o/openpgm/pull/63 +Patch3: libpgm-5.2.122-configure-rdtsc-checking-chg.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ @@ -82,6 +84,7 @@ This subpackage contains the header files for OpenPGM. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build mkdir -p m4