Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 1686
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: jurgen [...] botz.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 6.03
  • 6.04
  • 6.05
Fixed in: (no value)



Subject: Variables expanded too far in Makefile
Recent versions of MakeMaker expand variables too far... older versions proceduced the following in Makefile: PREFIX = /usr SITEPREFIX = $(PREFIX) VENDORPREFIX = $(PREFIX) INSTALLDIRS = site INSTALLPRIVLIB = $(PREFIX)/lib/perl5/5.6.1 INSTALLARCHLIB = $(PREFIX)/lib/perl5/5.6.1/i386-linux INSTALLSITELIB = $(SITEPREFIX)/lib/perl5/site_perl/5.6.1 ... new versions (I tested 6.03 and 6.05) produce the following: INSTALLDIRS = site PREFIX = /usr SITEPREFIX = /usr VENDORPREFIX = /usr INSTALLPRIVLIB = /usr/lib/perl5/5.8.0 INSTALLSITELIB = /usr/lib/perl5/site_perl/5.8.0 This is a problem because it makes it impractical to override the PREFIX at invocation time... i.e. specifically it makes it impractical to build for one prefix but install into another (for example, when making RPM packages). In general it would seem that least amount of pre-expansion is always the better way to go, no?
[guest - Thu Oct 17 15:38:27 2002]: Show quoted text
> Recent versions of MakeMaker expand variables too far
This problem has been fixed in the latest snapshot on makemaker.org. Please give it a shot and let me know if its working all right for you. Additionally, there is a new DESTDIR parameter useful for building RPMs and the like. perl Makefile.PL make test make install DESTDIR=/tmp/rpm-build