Red Hat Bugzilla – Bug 73401
PREFIX not used in Makefiles generated by perl
Last modified: 2007-04-18 12:46:19 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.
also: is there a cpanflute available for redhat 8.0 ?
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
As a consequence
PREFIX=$RPM_BUILD_ROOT/usr make install
will no longer work. However,
perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr
This change breaks all rpms made with cpanflute.
to answer my own question: on CPAN you can find RPM::Specfile which includes
cpanflute2 which works nicely with redhat 8.0.