Bug 132907

Summary: [patch] rpmbuild(8) vs. ENV(PERL_MM_OPT)
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: jbj, katzj, mattdm, nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-27 00:18:34 UTC Type: ---
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
Patch to delete ENV(PERL_MM_OPT) for %build and %install none

Description Jan Kratochvil 2004-09-19 07:14:48 UTC
Description of problem:
rpmbuild(8) gets confused by ENV(PERL_MM_OPT).

Version-Release number of selected component (if applicable):
rpm-build-4.3.1-0.3

How reproducible:
PERL_MM_OPT="PREFIX=/root" rpmbuild --rebuild
ImageMagick-6.0.7.1-3.src.rpm
  
Actual results:
+ find /var/tmp/ImageMagick-6.0.7.1-root/usr/lib/perl5/site_perl/5.8.3
-type d -name Image
find: /var/tmp/ImageMagick-6.0.7.1-root/usr/lib/perl5/site_perl/5.8.3:
No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.7795 (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.7795 (%install)

Expected results:
successfully built package

Additional info:

Comment 1 Jan Kratochvil 2004-09-19 07:16:31 UTC
Created attachment 103995 [details]
Patch to delete ENV(PERL_MM_OPT) for %build and %install

Comment 2 Jeff Johnson 2004-09-19 11:41:12 UTC
PERL_MM_OPT needs to be dealt with in ImageMagick.spec, not
in default rpmbuild configuration.

One could also fix in build system setup by controlling for
what is in the environment when rpmbuild is invoked.

Comment 3 Jan Kratochvil 2004-09-19 17:24:58 UTC
> PERL_MM_OPT needs to be dealt with in ImageMagick.spec

PERL_MM_OPT could be handled by all the packages building any Perl
modules. As the handling would be always the same. Therefore I think
it is more systematic approach to normalize Perl build environment by
rpmbuild(8) itself.

Otherwise there is a need to post 100+ bugreports or so.

ENV(PERL_MM_OPT) is the same category as ENV(CLASSPATH) or umask(1)
already handled by %___build_pre.


Comment 4 Matthew Miller 2005-04-26 16:35:47 UTC
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.

Comment 5 Jan Kratochvil 2005-06-04 07:55:41 UTC
The bug is still valid for: rpm-4.4.1-18.1
To prove it is not ImageMagick related you can try this command:

PERL_MM_OPT='PREFIX=/home/lace' rpmbuild --rebuild
/tmp/perl-XML-NamespaceSupport-1.08-7.src.rpm

Attached patch fixes it.


Comment 6 Jeff Johnson 2005-10-27 00:18:34 UTC
Added in rpm-4.4.3-0.26 when built.