summaryrefslogtreecommitdiff
path: root/lang/perl5.42/files/patch-perl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.42/files/patch-perl.c')
-rw-r--r--lang/perl5.42/files/patch-perl.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/lang/perl5.42/files/patch-perl.c b/lang/perl5.42/files/patch-perl.c
new file mode 100644
index 000000000000..736f9a7c5543
--- /dev/null
+++ b/lang/perl5.42/files/patch-perl.c
@@ -0,0 +1,28 @@
+Remove compile time information (reproducible builds)
+
+--- perl.c.orig 2025-06-24 16:19:17 UTC
++++ perl.c
+@@ -2113,23 +2113,7 @@ 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),
+- SVs_TEMP));
+-#else
+ PUSHs(&PL_sv_undef);
+-#endif
+
+ for (i = 1; i <= local_patch_count; i++) {
+ /* This will be an undef, if PL_localpatches[i] is NULL. */