Perl / Perl/docker-perl

Generate "libperl.a" In Addition To "libperl.so"

Open
#198 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
129
Forks
54
Avg merge
21m
Merged PRs (30d)
2

Description

Howdy @zakame & Perl Docker Team!

If I put this in a new Dockerfile:

FROM perl:stable-slim-bookworm
RUN find / -name libperl.*

Then it will give this output:

RUN find / -name libperl.*
/usr/local/lib/perl5/5.42.0/x86_64-linux-gnu/CORE/libperl.so
DONE 1.8s

However, the (incompatible) operating system package provides two files:

/usr/lib/x86_64-linux-gnu/libperl.a
/usr/lib/x86_64-linux-gnu/libperl.so

https://packages.ubuntu.com/plucky/amd64/libperl-dev/filelist

Believe it or not, some of us actually use the libperl.a file. :-)

However, it is incorrect to try and load apt-get install libperl-dev, because that would be mixing two different Perl builds together and can cause all kinds of crazy ABI incompatibilities etc.

So, can we please simply configure the Docker Perl build process to generate the libperl.a file along with the already-existing libperl.so file?

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the repository's Dockerfile or build entry point for the stable slim Bookworm image, then inspect how libperl.so is produced. Rebuild the image and run the reported find / -name libperl.* check. Done means the image contains both libperl.a and libperl.so from the same Perl build, without installing libperl-dev.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, perl
Domain
build-system, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
47/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.