Dan Kogai wrote:

! Thank you folks.  How about the one below ?  Does it look
!
! --- bin/enc2xs  2002/03/31 21:00:50     1.10
! +++ bin/enc2xs  2002/04/01 20:59:58
! @@ -1,7 +1,8 @@
!   #!./perl
!   BEGIN {
!       # fiddle with @INC iff I am a part of perl dist
! -    if ($^X =~ m/\bminiperl$/o){
! +    require Config; import Config;
! +    if ($^X =~ m/\bminiperl$Config{_exe}$/){
!          warn "Fixing \@INC for perl core.\n";
!          unshift @INC, qw(../../lib ../../../lib ../../../../lib);
!          $ENV{PATH} .= ';../..;../../..;../../../..' if $^O eq 'MSWin32';

I understand that there is some other patch that employs
$ENV{PERL_CORE} that addresses the @INC problem
for ext/Encode/bin/enc2xs.

I wanted to point out that vmsperl's config.sh does not know
about _exe.  It does know about exe_ext though.  In looking
at Configure it would appear that _exe is a special executable
extension for use before .-ing a hints/$foo.sh file.  Hence I suspect
that if your patch were to go in it would have been better to use
$Config{exe_ext} rather than $Config{_exe}.

Nonetheless, here is a patch, should it ever be
needed:

--- configure.com;1     Wed Apr  3 14:17:55 2002
+++ configure.com Wed Apr  3 14:18:04 2002
@@ -5069,6 +5069,9 @@
 $ WC "PERL_SUBVERSION='" + subversion + "'"
 $ WC "PERL_API_VERSION='" + api_version + "'"
 $ WC "PERL_API_SUBVERSION='" + api_subversion + "'"
+$ WC "_a='" + lib_ext + "'"
+$ WC "_ext='" + exe_ext + "'"
+$ WC "_o='" + obj_ext + "'"
 $ WC "alignbytes='" + alignbytes + "'"
 $ WC "aphostname='write sys$output 
f$edit(f$getsyi(\""SCSNODE\""),\""TRIM,LOWERCASE\"")'"
 $ WC "ar='" + "'"
End of Patch.

P.S. By the way CLEAN and REALCLEAN targets seem to be missing
from the generated ext/*descrip.mms files:

t_def.h Makeaperl.MMS misc_t.fnm mac_t.c blib extralibs.ld
cleaning Encode/EBCDIC . . .
%MMS-F-GWKNOPRN, There are no known sources for the current target CLEAN
cleaning Encode . . .
%MMS-F-GWKNOPRN, There are no known sources for the current target CLEAN
cleaning Encode/Symbol . . .

$_)}" [---.lib.auto.Encode.Byte]Byte.olb [---.lib.Encode]byte.pm
realcleaning Encode/EBCDIC . . .
%MMS-F-GWKNOPRN, There are no known sources for the current target
REALCLEAN
realcleaning Encode . . .
%MMS-F-GWKNOPRN, There are no known sources for the current target
REALCLEAN
realcleaning Encode/Symbol . . .

Hmmm.. another MM_VMS.pm problem likely.

Peter Prymmer


Reply via email to