Merge: zmap: 4.2.0 -> 4.3.1 (#364578)
[NixPkgs.git] / pkgs / development / libraries / nspr / 0001-Makefile-use-SOURCE_DATE_EPOCH-for-reproducibility.patch
blobd7fec73910fb67589e66354f557f60d0222d86e1
1 From e5cc8f7c387e3238ebb8239e2555c933a41502c0 Mon Sep 17 00:00:00 2001
2 From: Graham Christensen <graham@grahamc.com>
3 Date: Thu, 7 Mar 2019 08:11:32 -0500
4 Subject: [PATCH] Makefile: use SOURCE_DATE_EPOCH for reproducibility
6 ---
7 nspr/lib/ds/Makefile.in | 4 ++--
8 nspr/lib/libc/src/Makefile.in | 4 ++--
9 nspr/lib/prstreams/Makefile.in | 4 ++--
10 nspr/pr/src/Makefile.in | 6 +++---
11 4 files changed, 9 insertions(+), 9 deletions(-)
13 diff --git a/nspr/lib/ds/Makefile.in b/nspr/lib/ds/Makefile.in
14 index e737791..d56b0a7 100644
15 --- a/nspr/lib/ds/Makefile.in
16 +++ b/nspr/lib/ds/Makefile.in
17 @@ -101,8 +101,8 @@ ECHO = echo
18 TINC = $(OBJDIR)/_pl_bld.h
19 PROD = $(notdir $(SHARED_LIBRARY))
20 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
21 -SH_DATE = $(shell date "+%Y-%m-%d %T")
22 -SH_NOW = $(shell $(NOW))
23 +SH_DATE = $(shell date "+%Y-%m-%d %T" --date $(SOURCE_DATE_EPOCH))
24 +SH_NOW = $(SOURCE_DATE_EPOCH)000000
26 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
27 SUF = i64
28 diff --git a/nspr/lib/libc/src/Makefile.in b/nspr/lib/libc/src/Makefile.in
29 index e8a6d9f..0485737 100644
30 --- a/nspr/lib/libc/src/Makefile.in
31 +++ b/nspr/lib/libc/src/Makefile.in
32 @@ -103,8 +103,8 @@ ECHO = echo
33 TINC = $(OBJDIR)/_pl_bld.h
34 PROD = $(notdir $(SHARED_LIBRARY))
35 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
36 -SH_DATE = $(shell date "+%Y-%m-%d %T")
37 -SH_NOW = $(shell $(NOW))
38 +SH_DATE = $(shell date "+%Y-%m-%d %T" --date $(SOURCE_DATE_EPOCH))
39 +SH_NOW = $(SOURCE_DATE_EPOCH)000000
41 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
42 SUF = i64
43 diff --git a/nspr/lib/prstreams/Makefile.in b/nspr/lib/prstreams/Makefile.in
44 index aeb2944..83ae423 100644
45 --- a/nspr/lib/prstreams/Makefile.in
46 +++ b/nspr/lib/prstreams/Makefile.in
47 @@ -105,8 +105,8 @@ ECHO = echo
48 TINC = $(OBJDIR)/_pl_bld.h
49 PROD = $(notdir $(SHARED_LIBRARY))
50 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
51 -SH_DATE = $(shell date "+%Y-%m-%d %T")
52 -SH_NOW = $(shell $(NOW))
53 +SH_DATE = $(shell date "+%Y-%m-%d %T" --date $(SOURCE_DATE_EPOCH))
54 +SH_NOW = $(SOURCE_DATE_EPOCH)000000
56 ifeq ($(OS_ARCH), WINNT)
57 SUF = i64
58 diff --git a/nspr/pr/src/Makefile.in b/nspr/pr/src/Makefile.in
59 index 19c5a69..989cc8c 100644
60 --- a/nspr/pr/src/Makefile.in
61 +++ b/nspr/pr/src/Makefile.in
62 @@ -46,7 +46,7 @@ MKSHLIB += -M $(MAPFILE)
63 endif
65 # In Solaris 2.6 or earlier, -lrt is called -lposix4.
66 -#
68 LIBRT_TEST=$(firstword $(sort 5.7 $(OS_RELEASE)))
69 ifeq (5.7, $(LIBRT_TEST))
70 LIBRT=-lrt
71 @@ -311,8 +311,8 @@ PROD = $(notdir $(SHARED_LIBRARY))
72 endif
74 NOW = $(MOD_DEPTH)/config/$(OBJDIR)/now
75 -SH_DATE = $(shell date "+%Y-%m-%d %T")
76 -SH_NOW = $(shell $(NOW))
77 +SH_DATE = $(shell date "+%Y-%m-%d %T" --date $(SOURCE_DATE_EPOCH))
78 +SH_NOW = $(SOURCE_DATE_EPOCH)000000
80 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
81 SUF = i64
82 --
83 2.19.2