Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubi9/perl-532 missing expat-devel package #324

Open
nathanweeks opened this issue Nov 26, 2024 · 2 comments
Open

ubi9/perl-532 missing expat-devel package #324

nathanweeks opened this issue Nov 26, 2024 · 2 comments

Comments

@nathanweeks
Copy link

Container platform

Podman/Docker

Version

registry.access.redhat.com/ubi9/perl-532:9.5-1731645377

OS version of the container image

RHEL 9

Bugzilla, Jira

No response

Description

The ubi9/perl-532 does not have the expat-devel package installed; in particular, this causes the installation of XML::Parser to fail (see "Reproducer" section)

% podman run -it --rm registry.access.redhat.com/ubi9/perl-532 dnf list --installed 'expat*'
Not root, Subscription Management repositories not updated
Installed Packages
expat.x86_64                          2.5.0-3.el9_5.1                           @System

For comparison, ubi8/perl-532 does the expat-devel package installed:

% podman run -it --rm registry.access.redhat.com/ubi8/perl-532:1-169.1731464736 dnf list --installed 'expat*'
Not root, Subscription Management repositories not updated
Installed Packages
expat.x86_64                2.2.5-16.el8_10           @System                          
expat-devel.x86_64          2.2.5-16.el8_10           @rhel-8-for-x86_64-baseos-rpms__8

Reproducer

$ podman run -it --rm registry.access.redhat.com/ubi9/perl-532: cpanm install -nL local XML::Parser
--> Working on install
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building install-0.01 ... OK
Successfully installed install-0.01
--> Working on XML::Parser
Fetching http://www.cpan.org/authors/id/T/TO/TODDR/XML-Parser-2.47.tar.gz ... OK
Configuring XML-Parser-2.47 ... N/A
! Configure failed for XML-Parser-2.47. See /opt/app-root/src/.cpanm/work/1732624072.1/build.log for details.
1 distribution installed

The log file includes the error:

Expat must be installed prior to building XML::Parser and I can't find
it in the standard library directories. Install 'expat-devel' (or
'libexpat1-dev') package with your OS package manager. See 'README'.

Using ubi8/perl-532, the installation succeeds:

$ podman run -it --rm registry.access.redhat.com/ubi8/perl-532:1-169.1731464736 cpanm install -nL local XML::Parser
...
Building XML-Parser-2.47 ... OK
Successfully installed XML-Parser-2.47
20 distributions installed
@michal-josef-spacek
Copy link
Member

@nathanweeks You could simply install expat-devel, sure?

@nathanweeks
Copy link
Author

Yes, though I was hoping to use this image as-is without having to build a custom image from Dockerfile/Containerfile & maintain it in another container registry. Also, for Perl apps that depend on XML::Parser, not having expat-devel in the ubi9 flavors complicates any ubi8 -> ubi9 upgrade path for S2I application use cases (e.g., on OpenShift).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants