Bug 831575

Summary: perl-Module-Build and dependent modules fails to build without mock - install files to /{instdir}/home/...
Product: [Fedora] Fedora Reporter: Anton Guda <atu.guda>
Component: perl-Module-BuildAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: iarnell, mmaslano, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-13 12:04:20 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:
Attachments:
Description Flags
build log with rpmbuild none

Description Anton Guda 2012-06-13 11:02:32 UTC
Description of problem:
If perl-Module-Build or any other module, which uses it for install,
build with mock chroot -- all works. But if rpm package
tryed to build with rpmbuild -ba ...., then build fails
with message about not found files:

File not found by glob: /home/atu/rpmbuild/BUILDROOT/perl-Module-Build-0.40-3.0.1.bcx.i386/usr/share/perl5/vendor_perl/*

But really files installed in 
/home/atu/rpmbuild/BUILDROOT/perl-Module-Build-0.40-3.0.1.bcx.i386/home/atu/perl5/....


Version-Release number of selected component (if applicable):
perl-Module-Build-0.40-3

How reproducible:
Always.


Steps to Reproduce:
1. Make env to build with rpmbuild
2. rpmbuild -ba --target i686 perl-Module-Build-0.40-3.fc*.src.rpm
  
Actual results:
Build fails - files in wrong position


Expected results:
Build exit with success.

Additional info:

Comment 1 Anton Guda 2012-06-13 11:05:28 UTC
Created attachment 591443 [details]
build log with rpmbuild

Comment 2 Petr Pisar 2012-06-13 11:21:38 UTC
How could you install the release 3.fc18 into rawhide? The package has been built against perl 5.16 into special build-root which is not part of standard rawhide.

Do you experience the same problem with 2.fc18?

Comment 3 Iain Arnell 2012-06-13 11:28:32 UTC
This looks familiar to me. Are you using perl-local-lib? Or have something in your bash profile that sets PERL_MB_OPT? Try

  unset PERL_LOCAL_LIB_ROOT
  unset PERL_MB_OPT
  unset PERL_MM_OPT
  unset PERL5LIB

before building locally.

Comment 4 Anton Guda 2012-06-13 12:04:20 UTC
Really, ~/.bashrc was poisoned by this variables (dont know who and why).
After Removing all works.
Closing bug. Thanks!