Please keep CC,
I'm trying to package grepmail (SF project) as Cygwin Net release and
to do that I need to instruct MakeMaker to install under separate
directory, but just like as it would normally.
$ perl Makefile.PL
$ grep -i prefix Makefile
PREFIX = /usr
SITEPREFIX = /usr
VENDORPREFIX =
That installs fine as system wide, but not if I do this with grepmail:
$ perl Makefile.PL FASTREADER=0 INSTALLDIRS=perl PREFIX=.inst/usr
$ grep -i prefix Makefile
PREFIX = .inst/usr
SITEPREFIX = .inst/usr
VENDORPREFIX = .inst/usr
...
MAKEMAKER = /usr/lib/perl5/5.8.0/ExtUtils/MakeMaker.pm
MM_VERSION = 6.05
Everything skyrockets if I do make install. I would have expected it to
get installed like this:
./inst/usr/bin/grepmail
./inst/usr/man/man1/grepmail.1
etc.
At install.pm, line 136, it says this, when I added a print:
if ($diff){
if (-f $targetfile){
forceunlink($targetfile) unless $nonono;
} else {
print ">>$targetdir\n";
mkpath($targetdir,0,0755) unless $nonono;
print "mkpath($targetdir,0,0755)\n" if $verbose>1;
}
[EMAIL PROTECTED]:/usr/src/build/grepmail-cvs-2003.0616$ make install
>>.inst/usr/man/man1/.inst/usr/man/man1/.inst/usr/man/man1/.inst/usr/man/man1/\
.inst/usr/man/man1/.inst/usr/man/man1/.inst/usr/man/man1/.inst/usr/man/man1
mkdir .inst/usr/man/man1/.inst/usr/man/man1/.inst/usr/man/man1/.inst: Invalid \
argument at /usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 139
make: *** [pure_perl_install] Error 255
Jari
[EMAIL PROTECTED]:/usr/src/build/grepmail-cvs-2003.0616# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=cygwin, osvers=1.3.22(0.7832), archname=cygwin-multi-64int
uname='cygwin_nt-4.0 iokaste 1.3.22(0.7832) 2003-03-18 09:20 i686 unknown uknown
cygwin '
config_args='-de -Dmksymlinks -Dusemultiplicity -Duse64bitint -Doptimize=-O
-Dman3ext=3pm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=defne
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
optimize='-O3',
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
ccversion='', gccversion='3.2.3 (home grown)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseksize=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld2', ldflags =' -s -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -ldb -lcrypt -lutil -lgdbm_compat
perllibs=-lcrypt -lutil -lgdbm_compat
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_64_BIT_INT USE_LARGE_FILES
PERL_IMPLICT_CONTEXT
Built under cygwin
Compiled at Jun 2 2003 13:55:45
%ENV:
CYGWIN="tty ntsec binmode smbntsec"
@INC:
/usr/lib/perl5/5.8.0/cygwin-multi-64int
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.
--
http://tiny-tools.sourceforge.net/
Swatch @time http://www.ryanthiessen.com/swatch/resources.htm
Convert @time http://www.mir.com.my/iTime/itime.htm