Skip to content

Install perl-ExtUtils-MakeMaker in the backport agent images#606

Merged
majamassarini merged 1 commit into
packit:mainfrom
majamassarini:agent-images-add-perl-extutils-makemaker
Jun 18, 2026
Merged

Install perl-ExtUtils-MakeMaker in the backport agent images#606
majamassarini merged 1 commit into
packit:mainfrom
majamassarini:agent-images-add-perl-extutils-makemaker

Conversation

@majamassarini

Copy link
Copy Markdown
Member

Problem

Several perl packages invoke perl -MExtUtils::MakeMaker during %prep (e.g. perl-DBI runs ExtUtils::MM_Unix->fixin(...)). The backport agent images install perl-srpm-macros but not perl-ExtUtils-MakeMaker, so that call aborts:

+ perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(q{dbixs_rev.pl})'
BEGIN failed--compilation aborted.
error: Bad exit status from /var/tmp/rpm-tmp.XXXX (%prep)

rhpkg/centpkg prep then fails before the CVE patch is even fetched, and the backport errors out.

Seen in production

RHEL-184984 (perl-DBI, CVE-2026-9698, rhel-9.8.z) — triggered via ymir_todo, every backport attempt failed in %prep with the above, landing on ymir_backport_errored.

Fix

Add perl-ExtUtils-MakeMaker to both Containerfile.c9s and Containerfile.c10s, alongside the other build macros, so perl package %prep can run. (It pulls in the perl interpreter/toolchain it needs.) Kept the two images in sync.

Assisted-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

Several perl packages run `perl -MExtUtils::MakeMaker` during %prep (e.g.
perl-DBI calls ExtUtils::MM_Unix->fixin). Without perl-ExtUtils-MakeMaker in
the agent image, that aborts with "BEGIN failed--compilation aborted", so
`rhpkg/centpkg prep` fails before the CVE patch is even applied and the
backport errors out.

Add perl-ExtUtils-MakeMaker to both the c9s and c10s images, alongside the
other build macros, so perl package %prep can run.

Seen on RHEL-184984 (perl-DBI, rhel-9.8.z), where every backport attempt
failed in %prep.

Assisted-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the perl-ExtUtils-MakeMaker package to the list of installed dependencies in both Containerfile.c10s and Containerfile.c9s. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@majamassarini majamassarini merged commit 2d0f4f5 into packit:main Jun 18, 2026
10 checks passed
@cgwalters

Copy link
Copy Markdown
Contributor

This seems like a missing dependency in perl-srpm-macros?

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

Successfully merging this pull request may close these issues.

3 participants