From 113119e97defce726e932034da84fb4f87e08febef9796918bb92ee2cf75738f Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 9 May 2018 07:07:51 +0000 Subject: [PATCH] Accepting request 605522 from home:bmwiedemann:branches:Base:System Add libtool-reproducible-hostname.patch to make package build reproducible (boo#1084909) insprired by a patch in https://bugs.debian.org/819767 OBS-URL: https://build.opensuse.org/request/show/605522 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtool?expand=0&rev=78 --- libtool-reproducible-hostname.patch | 13 +++++++++++++ libtool-testsuite.changes | 6 ++++++ libtool-testsuite.spec | 3 +++ libtool.changes | 6 ++++++ libtool.spec | 3 +++ 5 files changed, 31 insertions(+) create mode 100644 libtool-reproducible-hostname.patch diff --git a/libtool-reproducible-hostname.patch b/libtool-reproducible-hostname.patch new file mode 100644 index 0000000..1c59994 --- /dev/null +++ b/libtool-reproducible-hostname.patch @@ -0,0 +1,13 @@ +Index: libtool-2.4.6/configure +=================================================================== +--- libtool-2.4.6.orig/configure ++++ libtool-2.4.6/configure +@@ -31426,7 +31426,7 @@ $as_echo X"$file" | + cat <<_LT_EOF >> "$cfgfile" + #! $SHELL + # Generated automatically by $as_me ($PACKAGE) $VERSION +-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ++# Libtool was configured on host localhost: + # NOTE: Changes made to this file will be lost: look at ltmain.sh. + + # Provide generalized library-building support services. diff --git a/libtool-testsuite.changes b/libtool-testsuite.changes index dabfd3b..f2bd670 100644 --- a/libtool-testsuite.changes +++ b/libtool-testsuite.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 9 03:34:16 UTC 2018 - bwiedemann@suse.com + +- Add libtool-reproducible-hostname.patch + to make package build reproducible (boo#1084909) + ------------------------------------------------------------------- Thu May 3 14:16:43 UTC 2018 - dimstar@opensuse.org diff --git a/libtool-testsuite.spec b/libtool-testsuite.spec index f607315..bdea098 100644 --- a/libtool-testsuite.spec +++ b/libtool-testsuite.spec @@ -33,6 +33,8 @@ Source1: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz.sig Source2: libtool.keyring Source3: baselibs.conf Source4: libtool-rpmlintrc +# PATCH-FIX-OPENSUSE -- do not add build host name boo#1084909 +Patch0: libtool-reproducible-hostname.patch BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: gcc-fortran @@ -65,6 +67,7 @@ Library needed by programs that use the ltdl interface of GNU libtool. %prep %setup -q -n libtool-%{version} +%patch0 -p1 %build ./configure CFLAGS="%{optflags}" \ diff --git a/libtool.changes b/libtool.changes index dabfd3b..f2bd670 100644 --- a/libtool.changes +++ b/libtool.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 9 03:34:16 UTC 2018 - bwiedemann@suse.com + +- Add libtool-reproducible-hostname.patch + to make package build reproducible (boo#1084909) + ------------------------------------------------------------------- Thu May 3 14:16:43 UTC 2018 - dimstar@opensuse.org diff --git a/libtool.spec b/libtool.spec index 4a2be07..9d5c983 100644 --- a/libtool.spec +++ b/libtool.spec @@ -33,6 +33,8 @@ Source1: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz.sig Source2: libtool.keyring Source3: baselibs.conf Source4: libtool-rpmlintrc +# PATCH-FIX-OPENSUSE -- do not add build host name boo#1084909 +Patch0: libtool-reproducible-hostname.patch BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: gcc-fortran @@ -65,6 +67,7 @@ Library needed by programs that use the ltdl interface of GNU libtool. %prep %setup -q -n libtool-%{version} +%patch0 -p1 %build ./configure CFLAGS="%{optflags}" \