summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/perl-sanity/perl_5.28.2.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl-sanity/perl_5.28.2.bb b/meta/recipes-devtools/perl-sanity/perl_5.28.2.bb
index f175e87a12..540b9f2df3 100644
--- a/meta/recipes-devtools/perl-sanity/perl_5.28.2.bb
+++ b/meta/recipes-devtools/perl-sanity/perl_5.28.2.bb
@@ -90,6 +90,16 @@ do_configure_class-native() {
90 -Ui_xlocale 90 -Ui_xlocale
91} 91}
92 92
93do_configure_append() {
94 if [ -n "$SOURCE_DATE_EPOCH" ]; then
95 PERL_BUILD_DATE="$(${PYTHON} -c "\
96from datetime import datetime, timezone; \
97print(datetime.fromtimestamp($SOURCE_DATE_EPOCH, timezone.utc).strftime('%a %b %d %H:%M:%S %Y')) \
98 ")"
99 echo "#define PERL_BUILD_DATE \"$PERL_BUILD_DATE\"" >> config.h
100 fi
101}
102
93do_compile() { 103do_compile() {
94 oe_runmake 104 oe_runmake
95} 105}