Hello community,
here is the log from the commit of package openpgm for openSUSE:Factory checked in at 2019-02-13 10:15:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openpgm (Old)
and /work/SRC/openSUSE:Factory/.openpgm.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openpgm"
Wed Feb 13 10:15:44 2019 rev:6 rq:669095 version:5.2.122
Changes:
--------
--- /work/SRC/openSUSE:Factory/openpgm/openpgm.changes 2018-07-28 12:36:26.219968846 +0200
+++ /work/SRC/openSUSE:Factory/.openpgm.new.28833/openpgm.changes 2019-02-13 10:15:48.129393834 +0100
@@ -1,0 +2,12 @@
+Mon Jan 28 12:51:34 UTC 2019 - luca.boccassi@gmail.com
+
+- Backport patches from upstream to avoid adding a non-existing
+ foo/lib/pgm-5.2/include directory to pkg-config's CFLAGS which
+ breaks applications using strict compiler flags, and to make the
+ build reproducible regardless of the reported system/architecture
+
+Added:
+- libpgm-5.2.122-pkg-config-do-not-add-I-to-non-existing-directory.patch
+- libpgm-5.2.122-reproducible-architecture.patch
+
+-------------------------------------------------------------------
New:
----
libpgm-5.2.122-pkg-config-do-not-add-I-to-non-existing-directory.patch
libpgm-5.2.122-reproducible-architecture.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openpgm.spec ++++++
--- /var/tmp/diff_new_pack.9gfM65/_old 2019-02-13 10:15:49.101393464 +0100
+++ /var/tmp/diff_new_pack.9gfM65/_new 2019-02-13 10:15:49.109393460 +0100
@@ -2,7 +2,7 @@
#
# spec file for package openpgm
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser
#
# All modifications and additions to the file contributed by third parties
@@ -14,7 +14,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/
#
@@ -35,6 +35,10 @@
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM bmwiedemann https://github.com/steve-o/openpgm/pull/48
Patch0: libpgm-5.2.122-reproducible.patch
+# PATCH-FIX-UPSTREAM bluca https://github.com/steve-o/openpgm/pull/58
+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
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@@ -76,6 +80,8 @@
%prep
%setup -q -n "%{name}-release-%{tarball_version}/openpgm/pgm"
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
mkdir -p m4
++++++ libpgm-5.2.122-pkg-config-do-not-add-I-to-non-existing-directory.patch ++++++
Author: Luca Boccassi
Description: pkg-config: do not add -I to non-existing directory
foo/lib/pgm-5.2/include does not exist, so applications using strict
compiler flags will fail to build due to this -I flag
Origin: https://github.com/steve-o/openpgm/pull/57
--- pgm.orig/openpgm-5.2.pc.in
+++ pgm/openpgm-5.2.pc.in
@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@
# packagers may wish to move @LIBS@ to Libs.private for platforms with
# versions of pkg-config that support static linking.
Libs: -L${libdir} -lpgm @LIBS@
-Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ -I${libdir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@/include
+Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@
++++++ libpgm-5.2.122-reproducible-architecture.patch ++++++
Author: Luca Boccassi
Description: version_generator.py: make build reproducible
If SOURCE_DATE_EPOCH is defined then the user is most likely interested
in building the library in a reproducible way. So in that case use fixed
"BuildSystem" and "BuildMachine" strings instead of the operating system
and architecture.
Origin: https://github.com/steve-o/openpgm/pull/58
--- pgm.orig/version_generator.py
+++ pgm/version_generator.py
@@ -8,6 +8,11 @@ timestamp = time.gmtime (int (os.getenv
build_date = time.strftime ("%Y-%m-%d", timestamp)
build_time = time.strftime ("%H:%M:%S", timestamp)
build_rev = filter (str.isdigit, "$Revision$")
+build_system = platform.system()
+build_machine = platform.machine()
+if 'SOURCE_DATE_EPOCH' in os.environ:
+ build_system = 'BuildSystem'
+ build_machine = 'BuildMachine'
print """
/* vim:ts=8:sts=8:sw=4:noai:noexpandtab
@@ -51,6 +56,6 @@ const char* pgm_build_revision = "%s";
/* eof */
-"""%(build_date, build_time, platform.system(), platform.machine(), build_rev)
+"""%(build_date, build_time, build_system, build_machine, build_rev)
# end of file