update perl

This commit is contained in:
Connor Olding 2022-09-23 17:08:10 -07:00
parent d05e5ec49d
commit 652e29ad50
2 changed files with 12 additions and 6 deletions

View File

@ -56,7 +56,7 @@ dbg_retrieve() \
&& podman build -t cosmo-yices cosmo-yices \ && podman build -t cosmo-yices cosmo-yices \
\ \
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \ && dbg_retrieve cosmo-kuroko /bin/kuroko.com \
&& yes_retrieve cosmo-perl /bin/perl.com \ && dbg_retrieve cosmo-perl /bin/perl.com \
&& dbg_retrieve cosmo-yices /bin/kissat.com \ && dbg_retrieve cosmo-yices /bin/kissat.com \
&& dbg_retrieve cosmo-yices /bin/yices-sat.com \ && dbg_retrieve cosmo-yices /bin/yices-sat.com \
&& dbg_retrieve cosmo-yices /bin/yices-smt.com \ && dbg_retrieve cosmo-yices /bin/yices-smt.com \

View File

@ -3,8 +3,8 @@
# FORK: https://github.com/G4Vi/perl5/tree/cosmo # FORK: https://github.com/G4Vi/perl5/tree/cosmo
FROM localhost/notwa-util AS downloader FROM localhost/notwa-util AS downloader
ARG PERL_COMMIT=75e54093a8376c4b2196510e88201e8d793f5424 ARG PERL_COMMIT=154c25ba29a115544bdfe0983c0c938993c00959
ARG PERL_SHA256=b28ccbb96f9dfb96a4216215dafc2db8ba3b998e5ead6357b2614f5334c3a6f7 ARG PERL_SHA256=9980e388a0b08c0f5830aa9f63cdb3da8d11e460f637bf4622e22c6e8710eff8
RUN --mount=type=cache,id=common,target=/media/common,sharing=locked \ RUN --mount=type=cache,id=common,target=/media/common,sharing=locked \
--mount=type=tmpfs,target=/tmp : \ --mount=type=tmpfs,target=/tmp : \
@ -83,6 +83,7 @@ RUN : \
&& COSMO_MODE="" COSMO_REPO="/cosmopolitan" sh Configure -d -e \ && COSMO_MODE="" COSMO_REPO="/cosmopolitan" sh Configure -d -e \
-Dprefix="/zip" \ -Dprefix="/zip" \
-Dusedevel \ -Dusedevel \
-Uversiononly \
-Doptimize="-Os" \ -Doptimize="-Os" \
-Dmyhostname="cosmo" \ -Dmyhostname="cosmo" \
-Dmydomain="invalid" \ -Dmydomain="invalid" \
@ -102,10 +103,12 @@ RUN : \
; ;
RUN : \ RUN : \
&& cd "/perl5/cosmo/o/tmp/zip" \ && cd "/perl5/cosmo/o/tmp/zip" \
&& rm "bin/perl" "bin/perl5.36.0" \
&& find lib -name '*.a' -delete \ && find lib -name '*.a' -delete \
&& find lib -name '*.h' -delete \ && find lib -name '*.h' -delete \
&& find -name '*.pod' -delete \ && find -name '*.pod' -delete \
&& cp "../perl.com" "../perl.com.bak" \ && cp "../perl.com" "../perl.com.bak" \
&& chmod u+w "../perl.com" \
&& zip -qr "../perl.com" "lib" \ && zip -qr "../perl.com" "lib" \
&& mv "../perl.com" "../../perl.com" \ && mv "../perl.com" "../../perl.com" \
; ;
@ -118,14 +121,17 @@ RUN : \
&& mv "perltidy-$version.pl" ../perltidy.pl \ && mv "perltidy-$version.pl" ../perltidy.pl \
&& cd .. \ && cd .. \
&& rm -r Perl-Tidy-$version \ && rm -r Perl-Tidy-$version \
;
RUN : \
&& cd "/perl5/cosmo/o/tmp/zip" \ && cd "/perl5/cosmo/o/tmp/zip" \
&& find -type f -name '*.pm' -exec \ && find -type f -name '*.pm' -exec \
/cosmopolitan/o/ape/ape.elf ../../perl.com /perl5/perltidy.pl \ /cosmopolitan/o/ape/ape.elf ../../perl.com /perl5/perltidy.pl \
--mangle --delete-all-comments --backup-and-modify-in-place --backup-file-extension=/ {} \ --mangle --delete-all-comments --backup-and-modify-in-place --backup-file-extension=/ {} \
+ \ + \
;
RUN : \
&& cd "/perl5/cosmo/o/tmp/zip" \
&& cp "../perl.com.bak" "../perl.com" \ && cp "../perl.com.bak" "../perl.com" \
&& chmod u+w "../perl.com" \
&& zip -qr "../perl.com" "bin" \
&& zip -qr "../perl.com" "lib" \ && zip -qr "../perl.com" "lib" \
&& mv "../perl.com" "../../perl.com" \ && mv "../perl.com" "../../perl.com" \
; ;
@ -134,6 +140,6 @@ FROM scratch AS runner
COPY --chmod=0755 --from=localhost/notwa-util /usr/local/bin/busybox /bin/busybox COPY --chmod=0755 --from=localhost/notwa-util /usr/local/bin/busybox /bin/busybox
COPY --chmod=0755 --from=builder /cosmopolitan/bin/ape /bin/ape COPY --chmod=0755 --from=builder /cosmopolitan/bin/ape /bin/ape
COPY --chmod=0755 --from=builder /perl5/cosmo/o/perl.com /bin/perl.com COPY --chmod=0755 --from=builder /perl5/cosmo/o/perl.com /bin/perl.com
# TODO: include .dbg file too! COPY --chmod=0755 --from=builder /perl5/perl.elf /bin/perl.com.dbg
COPY --from=builder /perl5/minitest_results.txt /minitest_results.txt COPY --from=builder /perl5/minitest_results.txt /minitest_results.txt
ENTRYPOINT ["/bin/ape", "/bin/perl.com"] ENTRYPOINT ["/bin/ape", "/bin/perl.com"]