Bug 73401 - PREFIX not used in Makefiles generated by perl
PREFIX not used in Makefiles generated by perl
Product: Red Hat Linux
Classification: Retired
Component: perl (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Warren Togami
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-09-04 03:48 EDT by Gerald Teschl
Modified: 2007-04-18 12:46 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-11 07:11:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gerald Teschl 2002-09-04 03:48:16 EDT

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 09:15:01 EDT
also: is there a cpanflute available for redhat 8.0 ?
Comment 2 Gerald Teschl 2003-01-19 11:44:42 EST
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


instaed of


As a consequence

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

will no longer work. However,

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

will work.

This change breaks all rpms made with cpanflute.
Comment 3 Christof Damian 2003-01-19 12:41:40 EST
to answer my own question: on CPAN you can find RPM::Specfile which includes
cpanflute2 which works nicely with redhat 8.0.

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