5.18.2 -> 5.18.4, fix for gcc4.9, and sha1 check

This commit is contained in:
Peter Martini 2014-10-02 21:50:46 -04:00
parent 4099593a1b
commit fafc19ddca
4 changed files with 23 additions and 11 deletions

View file

@ -3,12 +3,16 @@ MAINTAINER Peter Martini <PeterCMartini@GMail.com>
RUN apt-get update && apt-get install -y curl procps
RUN mkdir /usr/src/perl
WORKDIR /usr/src/perl
RUN curl -SL http://www.cpan.org/src/5.0/perl-5.18.2.tar.gz \
| tar -xz --strip-components=1
WORKDIR /tmp
ADD sha1.txt /tmp/sha1.txt
RUN curl -SL https://cpan.metacpan.org/authors/id/R/RJ/RJBS/perl-5.18.4.tar.bz2 -o /tmp/perl-5.18.4.tar.bz2
RUN sha1sum -c /tmp/sha1.txt
RUN ./Configure -Duse64bitall -des \
WORKDIR /usr/src/perl
RUN tar --strip-components=1 -xjf /tmp/perl-5.18.4.tar.bz2
RUN rm /tmp/perl-5.18.4.tar.bz2 /tmp/sha1.txt
# ccflags=-fwrapv is needed for gcc 4.9, and added by Configure automatically in 5.20+
RUN ./Configure -Dusethreads -A ccflags=-fwrapv -Duse64bitall -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
@ -22,4 +26,4 @@ RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
WORKDIR /root
CMD ["perl5.18.2","-de0"]
CMD ["perl5.18.4","-de0"]

View file

@ -0,0 +1 @@
69c34558a0a939a7adbbc1de48c06ea418d81e27 perl-5.18.4.tar.bz2

View file

@ -4,11 +4,17 @@ MAINTAINER Peter Martini <PeterCMartini@GMail.com>
RUN apt-get update && apt-get install -y curl procps
RUN mkdir /usr/src/perl
WORKDIR /usr/src/perl
RUN curl -SL http://www.cpan.org/src/5.0/perl-5.18.2.tar.gz \
| tar -xz --strip-components=1
RUN ./Configure -Dusethreads -Duse64bitall -des \
WORKDIR /tmp
ADD sha1.txt /tmp/sha1.txt
RUN curl -SL https://cpan.metacpan.org/authors/id/R/RJ/RJBS/perl-5.18.4.tar.bz2 -o /tmp/perl-5.18.4.tar.bz2
RUN sha1sum -c /tmp/sha1.txt
WORKDIR /usr/src/perl
RUN tar --strip-components=1 -xjf /tmp/perl-5.18.4.tar.bz2
RUN rm /tmp/perl-5.18.4.tar.bz2 /tmp/sha1.txt
# ccflags=-fwrapv is needed for gcc 4.9, and added by Configure automatically in 5.20+
RUN ./Configure -Duse64bitall -A ccflags=-fwrapv -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
@ -22,4 +28,4 @@ RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
WORKDIR /root
CMD ["perl5.18.2","-de0"]
CMD ["perl5.18.4","-de0"]

1
5.018.004-64bit/sha1.txt Normal file
View file

@ -0,0 +1 @@
69c34558a0a939a7adbbc1de48c06ea418d81e27 perl-5.18.4.tar.bz2