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-CheckLib | Assignee: | Jitka Plesnikova <jplesnik> |
| Status: | CLOSED ERRATA | QA Contact: | Martin Kyral <mkyral> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.3 | CC: | jplesnik, mkyral |
| Target Milestone: | rc | Keywords: | 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: | |||
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. 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
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 |
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