From 0da1e6801e86bc7624961173275fe8eac6721273d2d9a9df82316cfb1133cca7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 10 Dec 2022 10:45:40 +0000 Subject: [PATCH] Accepting request 1041971 from home:dirkmueller:Factory - add reproducible.patch to avoid using compile-time specific date/time constructs OBS-URL: https://build.opensuse.org/request/show/1041971 OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=309 --- openldap2.changes | 6 ++++++ openldap2.spec | 2 ++ reproducible.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 reproducible.patch diff --git a/openldap2.changes b/openldap2.changes index d2b9a6d..6e20edc 100644 --- a/openldap2.changes +++ b/openldap2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Dec 10 09:46:56 UTC 2022 - Dirk Müller + +- add reproducible.patch to avoid using compile-time specific date/time + constructs + ------------------------------------------------------------------- Mon Sep 26 05:16:18 UTC 2022 - William Brown diff --git a/openldap2.spec b/openldap2.spec index e94685d..1e5198f 100644 --- a/openldap2.spec +++ b/openldap2.spec @@ -52,6 +52,7 @@ Source21: slapd-ldif-update-crc.sh Source22: update-crc.sh Source23: slapd.conf Source24: slapd.conf.olctemplate +Patch1: reproducible.patch Patch3: 0003-LDAPI-socket-location.dif Patch5: 0005-pie-compile.dif Patch8: 0008-In-monitor-backend-do-not-return-Connection0-entries.patch @@ -239,6 +240,7 @@ Servers %prep %setup -q -a 9 -n openldap-%{version_main} +%patch1 -p1 %patch3 -p1 %patch5 -p1 %patch8 -p1 diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..006a7a0 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +Index: openldap-2.6.3/build/mkversion +=================================================================== +--- openldap-2.6.3.orig/build/mkversion ++++ openldap-2.6.3/build/mkversion +@@ -77,7 +77,7 @@ static const char copyright[] = + "COPYING RESTRICTIONS APPLY\n"; + + $static $const char $SYMBOL[] = +-"@(#) \$$PACKAGE: $APPLICATION $VERSION (" __DATE__ " " __TIME__ ") \$\n" ++"@(#) \$$PACKAGE: $APPLICATION $VERSION \$\n" + "\t$WHOWHERE\n"; + + __EOF__