On Friday, May 10, 2002, at 09:38 PM, Max Horn wrote:
> At 20:48 Uhr +1000 10.05.2002, Ken Williams wrote: >> The main problem with the above is that it actually installs >> the main files during the "build" phase. So I need to tell it >> to install into /sw/src/root-perl-5.6.1-1/ , which I can do at >> './Configure' time using "prefix" and the like - I don't think >> I can do it at 'make install' time. >> >> This creates a problem, though - perl remembers its "prefix" >> setting (and all the rest of the settings like this) and >> stores it in Config.pm for later use when the module is >> installed, so all these values will be wrong if I change them. >> >> Any suggestions? > > I didn't look at Perl's build system, but with many other > packges, this can be done either by > > make install DESTDIR=%d > > which will prepend DESTDIR to the prefix given at configure > time, or for those package which don't support this, you can > usually specify a different prefix for use during the install, > something like: > > make install prefix=/prefix/used/for/install > > or sometimes > > make install PREFIX=/prefix/used/for/install > > > Alas, this is purely hypothetical; I didn't look at the Perl > build system, thus it's well possible that none of the above > will work. Yeah, I don't think any of these work. Installation uses the ../installperl script, which reads the directory values from its Config.pm directly. Yuck. I guess one option would be to create a temporary Config.pm somewhere with the fink paths, and then fool ./installperl into reading that version. Double-yuck! Or I could patch ./installperl to be more flexible, which might be a better idea. -Ken
