Re: [Module::Build] Data::FormValidator + Module::Build : local prefix install fails under linux
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-11-28 17:26:57
|
I think the first patch I'll make for this issue is below. It's too
confusing for the Makefile.PL to accept a PREFIX parameter but not
respect it.
This will just make it die when it encounters PREFIX.
===================================================================
RCS file:
/cvsroot/module-build/Module-Build/lib/Module/Build/Compat.pm,v
retrieving revision 1.31
diff -u -r1.31 Compat.pm
--- lib/Module/Build/Compat.pm 7 Sep 2003 23:05:07 -0000 1.31
+++ lib/Module/Build/Compat.pm 28 Nov 2003 17:24:52 -0000
@@ -13,7 +13,9 @@
VERBINST => 'verbose',
INC => sub { map "extra_compiler_flags=-I$_",
Module::Build->split_like_shell(shift) },
POLLUTE => sub { 'extra_compiler_flags=-DPERL_POLLUTE' },
- INSTALLDIRS => sub {local $_ = shift; 'installdirs=' . (/^perl$/ ?
'core' : $_) }
+ INSTALLDIRS => sub {local $_ = shift; 'installdirs=' . (/^perl$/ ?
'core' : $_) },
+ PREFIX => sub {die "Sorry, PREFIX is not supported. See the
Module::Build\n".
+ "documentation for 'destdir' or 'install_base' instead.\n"},
);
sub create_makefile_pl {
===================================================================
On Monday, November 17, 2003, at 07:12 PM, Terrence Brannon wrote:
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : perl
> Makefile.PL PR\
> EFIX=$PREFIX
> /usr/bin/perl Build.PL config=prefix=/home/princepawn/install
> Deleting _build
> Creating custom builder _build/lib/Data/FormValidator/Builder.pm in
> _build/lib/\
> Data/FormValidator
> Checking whether your kit is complete...
> Looks good
> Deleting Build
> Removed previous script 'Build'
> Creating new 'Build' script for 'Data-FormValidator' version '3.14'
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : echo
> $PREFIX
> /home/princepawn/install
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : make
> install
> /usr/bin/perl Build install
> Warning: You do not have permissions to install into
> /usr/local/share/perl/5.8.\
> 0 at /usr/share/perl/5.8.0/ExtUtils/Install.pm line 114.
> mkdir /usr/local/share/perl/5.8.0/Data: Permission denied at
> /usr/share/perl/5.\
> 8.0/ExtUtils/Install.pm line 176
> make: *** [install] Error 255
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 : uname -a
> Linux perlmonk.org 2.4.18 #12 Fri Sep 13 17:49:41 EDT 2002 i686
> GNU/Linux
> princepawn@perlmonk ~/.cpan/build/Data-FormValidator-3.14 :
>
>
>
>
>
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/
> g22lp.tmpl
> _______________________________________________
> Module-build-general mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/module-build-general
|