Accepting request 707688 from home:bmwiedemann:branches:server:monitoring
Add reproducible.patch to override build date (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/707688 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/ndpi?expand=0&rev=11
This commit is contained in:
parent
b7be32393a
commit
aa19bf79d9
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 5 04:03:31 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add reproducible.patch to override build date (boo#1047218)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 30 09:53:01 UTC 2019 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
|
@ -33,6 +33,8 @@ URL: https://github.com/ntop/nDPI
|
||||
Source: https://github.com/ntop/nDPI/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# FIXME: Upstream makefile is broken
|
||||
Patch0: ndpi-fix-build.patch
|
||||
# PATCH-FIX-UPSTREAM https://github.com/ntop/nDPI/pull/662
|
||||
Patch1: reproducible.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
@ -89,6 +91,7 @@ This package contains the ndpiReader binary.
|
||||
%prep
|
||||
%setup -q -n nDPI-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
sh autogen.sh
|
||||
|
29
reproducible.patch
Normal file
29
reproducible.patch
Normal file
@ -0,0 +1,29 @@
|
||||
https://github.com/ntop/nDPI/pull/662
|
||||
|
||||
From e91123e17a6ebe2cb1f718aa3e44edb10b707779 Mon Sep 17 00:00:00 2001
|
||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
||||
Date: Thu, 24 Jan 2019 14:21:06 +0100
|
||||
Subject: [PATCH] Use ChangeLog date instead of build date
|
||||
|
||||
in order to make builds reproducible.
|
||||
See https://reproducible-builds.org/ for why this is good.
|
||||
|
||||
This date call works with GNU date and BSD date.
|
||||
Also use UTC/gmtime to be independent of timezone.
|
||||
---
|
||||
configure.seed | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.seed b/configure.seed
|
||||
index 1aa68f17..006e6d97 100644
|
||||
--- a/configure.seed
|
||||
+++ b/configure.seed
|
||||
@@ -30,7 +30,7 @@ if test -d ".git"; then :
|
||||
GIT_RELEASE="${PACKAGE_VERSION}-${GIT_NUM}-${GIT_TAG}"
|
||||
else
|
||||
GIT_RELEASE="${PACKAGE_VERSION}"
|
||||
- GIT_DATE=`date`
|
||||
+ GIT_DATE=`date -u -r CHANGELOG.md`
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(NDPI_GIT_RELEASE, "${GIT_RELEASE}", [GIT Release])
|
Loading…
Reference in New Issue
Block a user