Bug 773622

Summary: ExtUtils::MakeMaker sets LD_RUN_PATH, causing RPATHs to be inserted
Product: [Fedora] Fedora Reporter: Paul Howarth <paul>
Component: perl-ExtUtils-MakeMakerAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: mmaslano, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-ExtUtils-MakeMaker-6.62-2.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-12 16:25:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Fix none

Description Paul Howarth 2012-01-12 12:55:14 UTC
Description of problem:
The ExtUtils::MakeMaker in the main perl package has been patched for a long time to not set LD_RUN_PATH unless the USE_MM_LD_RUN_PATH environment variable is set in the MakeMaker run, to avoid adding RPATH entries for (say) /usr/lib64 when linking against external libraries. The recently-added dual-lived version of the package does not include this patch (perl-USE_MM_LD_RUN_PATH.patch), so the RPATHs are back in newly-built packages in Rawhide.

Version-Release number of selected component (if applicable):
perl-ExtUtils-MakeMaker-6.62-1.fc17

How reproducible:
Easily.

Steps to Reproduce:
1. Build perl-Math-GMP for Rawhide x86_64 and see the RPATH in the resulting package.
  
Actual results:
$ rpmlint ~/perl-Math-GMP-*
perl-Math-GMP.src: W: spelling-error %description -l en_US BigInt -> Big Int, Biting, Big-int
perl-Math-GMP.x86_64: W: spelling-error %description -l en_US BigInt -> Big Int, Biting, Big-int
perl-Math-GMP.x86_64: E: binary-or-shlib-defines-rpath /usr/lib64/perl5/vendor_perl/auto/Math/GMP/GMP.so ['/usr/lib64']
perl-Math-GMP.x86_64: E: incorrect-fsf-address /usr/share/doc/perl-Math-GMP-2.06/LICENSE
perl-Math-GMP-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/Math-GMP/Math-GMP-2.06/GMP.xs

Expected results:
$ rpmlint ~/perl-Math-GMP-*
perl-Math-GMP.src: W: spelling-error %description -l en_US BigInt -> Big Int, Biting, Big-int
perl-Math-GMP.x86_64: W: spelling-error %description -l en_US BigInt -> Big Int, Biting, Big-int
perl-Math-GMP.x86_64: E: incorrect-fsf-address /usr/share/doc/perl-Math-GMP-2.06/LICENSE
perl-Math-GMP-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/Math-GMP/Math-GMP-2.06/GMP.xs

Additional info:
This really could do with fixing before the Fedora 17 mass rebuilt starts later today.

Comment 1 Petr Pisar 2012-01-12 16:18:35 UTC
Created attachment 552448 [details]
Fix

Rebased patch from `perl' package. Fix verified by building perl-Math-GMP.

Comment 2 Petr Pisar 2012-01-12 16:25:22 UTC
Thank you very much for finding this issue. I'm sorry I did fix it sooner because I had to dig through extraordinary load of mails from package database.

This bug should be fixed in perl-ExtUtils-MakeMaker-6.62-2.fc17.