Bug 2216280 - perl-Devel-CheckLib: FTBFS due to missing BuildRequires: perl(blib) if C compiler installed
Summary: perl-Devel-CheckLib: FTBFS due to missing BuildRequires: perl(blib) if C comp...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: perl-Devel-CheckLib
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jitka Plesnikova
QA Contact: Martin Kyral
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-20 17:34 UTC by Florian Weimer
Modified: 2023-08-10 09:55 UTC (History)
2 users (show)

Fixed In Version: perl-Devel-CheckLib-1.14-9.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-160318 0 None None None 2023-06-20 17:38:30 UTC

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


Note You need to log in before you can comment on or make changes to this bug.