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 1093387

Summary: FTBFS: make test fails
Product: Red Hat Enterprise Linux 7 Reporter: Pat Riehecky <riehecky>
Component: perl-Module-Load-ConditionalAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: blc, csieh, isenfeld, jbastian, johnny, kbsingh, lmiksik, misterbonnie, ppisar, redhatbugs, tis
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/jib/module-load-conditional/issues/6
Whiteboard:
Fixed In Version: perl-Module-Load-Conditional-0.54-3.sa1.4 Doc Type: Bug Fix
Doc Text:
Cause: Building perl-Module-Load-Conditional package. Consequence: The build fails. Fix: Tests have been adjusted to work with version-0.9907 on perl-5.16.3. Result: The perl-Module-Load-Conditional tests pass in Red Hat Enterprise Linux 7.
Story Points: ---
Clone Of:
: 1099207 (view as bug list) Environment:
Last Closed: 2015-11-19 09:09:56 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:
Bug Depends On:    
Bug Blocks: 1023810, 1109875, 1117045    
Attachments:
Description Flags
Upstream fix none

Description Pat Riehecky 2014-05-01 15:04:15 UTC
Description of problem: The provided %check section fails tests 37 and 38.


Version-Release number of selected component (if applicable):perl-Module-Load-Conditional-0.54-2.el7.noarch


How reproducible:100%


Steps to Reproduce(method A):
1.init buildroot from RHEL7 RC
2.rebuild rpm
3.%check fails

Steps to Reproduce(method B):
1.init buildroot from RHEL7 RC
2.rebuild rpm
3.%check fails
4. copy Conditional.pm into ./lib/Module/Load/ and ./blib/lib/Module/Load/ from RHEL7 RC provided RPM (perl-Module-Load-Conditional-0.54-2.el7.noarch.rpm : /usr/share/perl5/vendor_perl/Module/Load/Conditional.pm )
5. run make test by hand
6. tests 37 and 38 fail


Actual results:
tests 37 and 38 fail

Expected results:
provided selftests pass

Additional info:
It doesn't appear that the fedora version of this package ran %check:

http://kojipkgs.fedoraproject.org//packages/perl-Module-Load-Conditional/0.54/2.fc20/data/logs/noarch/

It is certianly curious that the offical RHEL module does not pass the tests.

Comment 1 Pat Riehecky 2014-05-01 15:26:29 UTC
Interestingly, it builds and tests just fine against the RHEL7 BETA.

It appears perl-version changes are related to this make test error.

Comment 3 Petr Pisar 2014-05-02 07:34:35 UTC
I can reproduce these tests failures.

Fedora 20 runs the tests, see:

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.K1C48d
+ umask 022
+ cd /builddir/build/BUILD
+ cd Module-Load-Conditional-0.54
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_Module_Load_Conditional.t .. ok
All tests successful.
Files=1, Tests=38,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.09 cusr  0.01 csys =  0.12 CPU)
Result: PASS
+ exit 0

Comment 4 Petr Pisar 2014-05-02 11:07:07 UTC
(In reply to Petr Pisar from comment #3)
> Fedora 20 runs the tests, see:
> 
Because Fedora 20 has perl 5.18, while RHEL-7 has perl 5.16.

This issue is known to upstream <https://github.com/jib/module-load-conditional/issues/6> and has been fixed by upstream in Module-Load-Conditional-0.62 with commit:

commit 295cb81d953bff3c7311cf5038d061abeb7802d9
Author: Chris 'BinGOs' Williams <chris.uk>
Date:   Fri Jan 24 15:51:43 2014 +0000

    Resolve test failures on v5.16.x

This test issue became visible after `version' module upgrade that fixed strings comparison.

Comment 5 Petr Pisar 2014-05-02 11:18:10 UTC
Created attachment 891783 [details]
Upstream fix

Comment 6 Petr Pisar 2014-06-12 05:49:58 UTC
*** Bug 1099207 has been marked as a duplicate of this bug. ***

Comment 7 Zenon Panoussis 2014-07-13 14:39:24 UTC
7.0 was released with the bug. I tested the fix and I can confirmn it works (but in 0.54 the hunks are @@ -253,8 +253,8 @@ and @@ -263,8 +263,8 @@).

Comment 10 Petr Pisar 2014-08-04 06:13:36 UTC
*** Bug 1125646 has been marked as a duplicate of this bug. ***

Comment 19 errata-xmlrpc 2015-11-19 09:09:56 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, 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://rhn.redhat.com/errata/RHBA-2015-2260.html