Bug 831575 - perl-Module-Build and dependent modules fails to build without mock - install files to /{instdir}/home/...
Summary: perl-Module-Build and dependent modules fails to build without mock - install...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Module-Build
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-13 11:02 UTC by Anton Guda
Modified: 2012-06-13 12:04 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-13 12:04:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build log with rpmbuild (13.60 KB, text/plain)
2012-06-13 11:05 UTC, Anton Guda
no flags Details

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!


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