Skip to content

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

@nathanweeks

Description

@nathanweeks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions