aboutsummaryrefslogtreecommitdiff
path: root/lang/perl/patches/120-remove-build-timestamp.patch
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-12-06 23:51:49 +0100
committerAlexander Couzens <lynxis@fe80.eu>2017-12-14 18:59:10 +0100
commita73e96cb0ccf514f9dc9b5bfdeafb496512599fb (patch)
tree7eec1e418e4a43d6e71574131aaf0aee3e2bbd96 /lang/perl/patches/120-remove-build-timestamp.patch
parentf3d0d51e9697cfb5dddaf22a9083357de7c11e8b (diff)
perl: remove build timestamp
Build timestamp prevents reproducible builds [0]. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'lang/perl/patches/120-remove-build-timestamp.patch')
-rw-r--r--lang/perl/patches/120-remove-build-timestamp.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/perl/patches/120-remove-build-timestamp.patch b/lang/perl/patches/120-remove-build-timestamp.patch
new file mode 100644
index 000000000..d20345e99
--- /dev/null
+++ b/lang/perl/patches/120-remove-build-timestamp.patch
@@ -0,0 +1,21 @@
+Index: perl-5.26.1/perl.c
+===================================================================
+--- perl-5.26.1.orig/perl.c
++++ perl-5.26.1/perl.c
+@@ -1870,16 +1870,6 @@ S_Internals_V(pTHX_ CV *cv)
+ PUSHs(Perl_newSVpvn_flags(aTHX_ non_bincompat_options,
+ sizeof(non_bincompat_options) - 1, SVs_TEMP));
+
+-#ifndef PERL_BUILD_DATE
+-# ifdef __DATE__
+-# ifdef __TIME__
+-# define PERL_BUILD_DATE __DATE__ " " __TIME__
+-# else
+-# define PERL_BUILD_DATE __DATE__
+-# endif
+-# endif
+-#endif
+-
+ #ifdef PERL_BUILD_DATE
+ PUSHs(Perl_newSVpvn_flags(aTHX_
+ STR_WITH_LEN("Compiled at " PERL_BUILD_DATE),