From df8ae7aa1bc6930afe387e85db37b27e7a04bbadb3ebd8b5f4b5cadb73f35269 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 23 Mar 2016 15:21:01 +0000 Subject: [PATCH] Accepting request 376080 from home:bmwiedemann:branches:Base:System Add reproducible.patch to fix build-compare OBS-URL: https://build.opensuse.org/request/show/376080 OBS-URL: https://build.opensuse.org/package/show/Base:System/sitar?expand=0&rev=8 --- sitar.changes | 5 +++++ sitar.spec | 6 +++++- reproducible.patch | 13 +++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 reproducible.patch diff --git a/sitar.changes b/sitar.changes index 0e08286..409605d 100644 --- a/sitar.changes +++ b/sitar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Mar 20 14:51:02 UTC 2016 - bwiedemann@suse.com + +- Add reproducible.patch to fix build-compare + ------------------------------------------------------------------- Mon Oct 6 13:41:18 UTC 2014 - wbauer@tmo.at diff --git a/sitar.spec b/sitar.spec index 9612411..7e7dd55 100644 --- a/sitar.spec +++ b/sitar.spec @@ -1,7 +1,7 @@ # # spec file for package sitar # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Group: System/Monitoring Source0: sitar-%{version}.tar.bz2 # PATCH-FIX-OPENSUSE fix-syntax-errors-with-newer-perl.patch boo#899992 wbauer@tmo.at -- fix syntax errors when run with the perl in openSUSE 13.1 and higher Patch: fix-syntax-errors-with-newer-perl.patch +Patch1: reproducible.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: groff BuildArch: noarch @@ -58,8 +59,11 @@ Authors: %prep %setup -q %patch -p1 +%patch1 -p1 %build +: ${SOURCE_DATE_EPOCH:=1168904229} +export SOURCE_DATE_EPOCH make %install diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..37b5e2c --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +Index: sitar-1.0.6/Makefile +=================================================================== +--- sitar-1.0.6.orig/Makefile ++++ sitar-1.0.6/Makefile +@@ -26,7 +26,7 @@ PERL = /usr/bin/perl + RELEASE = 1.0.6 + + SVNVERSION := $(shell svnversion -n . | sed "s/:/./" ) +-RELDATE := $(shell date +"%Y%m%d") ++RELDATE := $(shell date --date=@$$SOURCE_DATE_EPOCH +"%Y%m%d") + CFG_PFRAGS = pfrags/cfg2scm.header.pl \ + pfrags/cfg2scm.manpage.pl \ + pfrags/cfg2scm.globals.pl \