Skip to content

Commit

Permalink
remove libcrypt.so in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Oct 7, 2024
1 parent f4e2163 commit 8ac17fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN curl -fsSL https://raw.githubusercontent.com/skaji/relocatable-perl/main/per
RUN curl -fsSL --compressed -o /cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm
RUN --mount=type=bind,target=src /perl/bin/perl /cpm install -g --cpmfile src/build/cpm.yml

# RUN rm -f /usr/lib64/libcrypt.so /usr/lib64/libcrypt.so.1
RUN rm -f /usr/lib64/libcrypt.so /usr/lib64/libcrypt.so.1
COPY --from=static-libcrypt /libcrypt.a /usr/lib64/libcrypt.a
RUN --mount=type=bind,target=src /perl/bin/perl src/build/relocatable-perl-build --perl_version $(cat src/BUILD_VERSION) --prefix /opt/perl
RUN cd /usr/lib64; \
Expand Down
3 changes: 0 additions & 3 deletions build/relocatable-perl-build
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ sub perl_build {
}
}
say "---> building perl $perl_version, see $log for progress";
if ($^O eq "linux") {
system "rm -f /usr/lib64/libcrypt.so /usr/lib64/libcrypt.so.1"; # XXX
}
run \@Configure, $log;
my @option = $jobs ? ("--jobs=$jobs") : ();
run ["make", @option, "install"], $log;
Expand Down

0 comments on commit 8ac17fb

Please sign in to comment.