Skip to content

Commit 3b4ee54

Browse files
committed
Define PERL_BUILD_DATE where supported
This means we don't have to do the -U__DATE__ -U__TIME__ hack in later perls.
1 parent 5ba8ac4 commit 3b4ee54

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

steps/perl-5.24.4/pass1.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,15 @@ src_configure() {
7878
-Dcc=gcc \
7979
-Dusedl=false \
8080
-Ddate=':' \
81-
-Dccflags="-U__DATE__ -U__TIME__" \
8281
-Darchname="i386-linux" \
8382
-Dmyhostname="(none)" \
8483
-Dmaildomain="(none)"
8584
}
8685

86+
src_compile() {
87+
PERL_BUILD_DATE="Jan 01 1970" default
88+
}
89+
8790
src_install() {
8891
default
8992

steps/perl-5.30.3/pass1.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@ src_configure() {
7272
-Dcc=gcc \
7373
-Dusedl=false \
7474
-Ddate=':' \
75-
-Dccflags="-U__DATE__ -U__TIME__" \
7675
-Darchname="i386-linux" \
7776
-Dmyhostname="(none)" \
7877
-Dmaildomain="(none)"
7978
}
8079

80+
src_compile() {
81+
PERL_BUILD_DATE="Jan 01 1970" default
82+
}
83+
8184
src_install() {
8285
default
8386

steps/perl-5.36.3/pass1.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,19 @@ src_configure() {
7373
-Dcc=gcc \
7474
-Dusedl=false \
7575
-Ddate=':' \
76-
-Dccflags="-U__DATE__ -U__TIME__" \
7776
-Darchname="i386-linux" \
7877
-Dmyhostname="(none)" \
7978
-Dmaildomain="(none)"
8079
}
8180

8281
src_compile() {
83-
make "${MAKEJOBS}" pod/perlapi.pod
82+
PERL_BUILD_DATE="Jan 01 1970" make "${MAKEJOBS}" pod/perlapi.pod
8483

8584
pushd dist/Devel-PPPort
8685
perl devel/mkapidoc.pl
8786
popd
8887

89-
default
88+
PERL_BUILD_DATE="Jan 01 1970" default
9089
}
9190

9291
src_install() {

steps/perl-5.42.0/pass1.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ src_configure() {
8282
}
8383

8484
src_compile() {
85-
make "${MAKEJOBS}" pod/perlapi.pod
85+
PERL_BUILD_DATE="Jan 01 1970" make "${MAKEJOBS}" pod/perlapi.pod
8686

8787
pushd dist/Devel-PPPort
8888
perl devel/mkapidoc.pl
8989
popd
9090

91-
default
91+
PERL_BUILD_DATE="Jan 01 1970" default
9292
}
9393

9494
src_install() {

0 commit comments

Comments
 (0)