Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2216280

Summary: perl-Devel-CheckLib: FTBFS due to missing BuildRequires: perl(blib) if C compiler installed
Product: Red Hat Enterprise Linux 9 Reporter: Florian Weimer <fweimer>
Component: perl-Devel-CheckLibAssignee: Jitka Plesnikova <jplesnik>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.3CC: jplesnik, mkyral
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Devel-CheckLib-1.14-9.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:56:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Weimer 2023-06-20 17:34:11 UTC
This should fix it:

diff --git a/perl-Devel-CheckLib.spec b/perl-Devel-CheckLib.spec
index 9645a77..4e0d6f3 100644
--- a/perl-Devel-CheckLib.spec
+++ b/perl-Devel-CheckLib.spec
@@ -31,6 +31,7 @@ BuildRequires:  perl(File::Spec::Functions)
 BuildRequires:  perl(IO::File)
 BuildRequires:  perl(Capture::Tiny)
 BuildRequires:  perl(lib)
+BuildRequires:  perl(blib)
 BuildRequires:  perl(Test::More) >= 0.88
 # Optional tests
 %if %{with perl_Devel_CheckLib_enables_optional_test}

It's not visible in the current buildroot because for some reason, the testsuite does not find GCC, so not much is tested:

PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................... ok
t/analyze-binary.t ............ skipped: Couldn't find your C compiler
Subroutine Config::STORE redefined at t/bad-single-word-compiler.t line 19.
t/bad-single-word-compiler.t .. ok
t/cmdline-LIBS-INC.t .......... skipped: Couldn't find your C compiler
t/custom-function.t ........... skipped: Couldn't find your C compiler
t/dash-l-libs.t ............... skipped: Couldn't find your C compiler
t/exit_with_message.t ......... skipped: Couldn't find your C compiler
t/flags.t ..................... skipped: Couldn't find your C compiler
t/found.t ..................... skipped: Couldn't find your C compiler
t/headers.t ................... skipped: Couldn't find your C compiler
Subroutine Config::STORE redefined at t/multi-word-compiler.t line 19.
t/multi-word-compiler.t ....... ok
t/not_found.t ................. skipped: Couldn't find your C compiler
All tests successful.
Files=12, Tests=3,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.67 cusr  0.07 csys =  0.77 CPU)
Result: PASS

Comment 1 Jitka Plesnikova 2023-06-21 06:42:34 UTC
GCC is not needed for building of the module, but should be required for tests execution.

I would recommend adding perl(blib) and gcc to build-requires.

Comment 2 Jitka Plesnikova 2023-07-18 08:29:03 UTC
commit 5527c758ac03fa786654bdab0da8b9b6d1b632b6
Author: Jitka Plesnikova <jplesnik>
Date:   Tue Jul 18 10:15:29 2023 +0200

    Resolves: rhbz#2216280 - Add test BR gcc and perl(blib) to not skip the tests

Comment 8 errata-xmlrpc 2023-11-07 08:56:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (perl-Devel-CheckLib bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6716