[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] problem with "PREFIX" installing with MV alpha 13 on FreeBSD 3.1
****** message to minivend-users from Mark Stosberg <mark@summersault.com> ******
The files in the "bin" directory aren't landing in the right directory
when installing
MV alpha 13 on FreeBSD 3.1
Upon some investigation, MakeMaker.pm (version 5.4301) doesn't seem to
be respecting the settings in Makefile.PL
I specified "/usr/local/mvend" for where to install minivend but as
you can see for this snippet of the 'make install' below, the prefix of
'/usr' rather than '/usr/local' is being used for the 'script' and 'bin'
directories.
By default, I got this sort of result in my make file:
PREFIX = /usr
INSTALLDIRS = perl
INSTALLPRIVLIB = /usr/local/mvend/lib
INSTALLARCHLIB = /usr/local/mvend
INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005
INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
INSTALLBIN = $(PREFIX)/mvend/bin
INSTALLSCRIPT = $(PREFIX)/mvend/bin
Below is a simple patch that corrects this for FreeBSD 3.1. Perhaps it
will work fine on other systems as well..
-mark
<<-------------------------------------------------------------->>
personal website < Summersault Website Design
http://mark.stosberg.com/ > http://www.summersault.com/
Here's the patch:
--- Makefile.PL.orig Sat Feb 5 17:52:09 2000
+++ Makefile.PL Sat Feb 5 18:21:40 2000
@@ -306,8 +306,9 @@
$realdir = $MV::Default{final};
}
- $X{INSTALLSCRIPT} = "$realdir/bin";
- $X{INSTALLBIN} = "$realdir/bin";
+ $X{PREFIX} = "$realdir";
+# $X{INSTALLSCRIPT} = "$X{PREFIX}/bin";
+# $X{INSTALLBIN} = "$X{PREFIX}/bin";
$X{INSTALLARCHLIB} = "$realdir";
$X{INSTALLPRIVLIB} = "$realdir/lib";
$X{INSTALLMAN1DIR} = "$realdir/doc";
Basically, it adds an explicit PREFIX and comments out the INSTALLSCRIPT
and INSTALLBIN lines.
That produces a Makefile like this:
PREFIX = /usr/local/mvend
INSTALLDIRS = perl
INSTALLPRIVLIB = /usr/local/mvend/lib
INSTALLARCHLIB = /usr/local/mvend
INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005
INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
INSTALLBIN = $(PREFIX)/bin
INSTALLSCRIPT = $(PREFIX)/bin
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list