Bug 73401

Summary: PREFIX not used in Makefiles generated by perl
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: perlAssignee: Warren Togami <wtogami>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: maine
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-11 11:11:42 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:

Description Gerald Teschl 2002-09-04 07:48:16 UTC
make-3.79.1-14

I just tried to rebuild some rpms created with cpanflute2 and noted that
all will fail (they build fine under 7.3).

I noted that the problem is that the command

make PREFIX=..... install

does not install the files under the PREFIX given on the command line
but under the PREFIX given in the Makefile.

Comment 1 Christof Damian 2002-10-16 13:15:01 UTC
also: is there a cpanflute available for redhat 8.0 ?

Comment 2 Gerald Teschl 2003-01-19 16:44:42 UTC
The problem is that the Makefile generated by perl from Makefile.PL
has a PREFIX varibale but it is not used. E.g., it has

PREFIX=/usr
INSTALLVENDORLIB=/usr/lib/perl5/vendor_perl/5.8.0

instaed of

PREFIX=/usr
INSTALLVENDORLIB=$(PREFIX)/lib/perl5/vendor_perl/5.8.0

As a consequence

perl Makefile.PL
make
PREFIX=$RPM_BUILD_ROOT/usr make install

will no longer work. However,

perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr
make
make install

will work.

This change breaks all rpms made with cpanflute.

Comment 3 Christof Damian 2003-01-19 17:41:40 UTC
to answer my own question: on CPAN you can find RPM::Specfile which includes
cpanflute2 which works nicely with redhat 8.0.