develooper Front page | perl.perl5.porters | Postings from January 2004

Re: nonrelocateable Makefile in 5.8.3 RC1

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
January 13, 2004 23:08
Subject:
Re: nonrelocateable Makefile in 5.8.3 RC1
Message ID:
20040114070749.GJ24883@localhost.attbi.com
On Sun, Jan 11, 2004 at 03:26:20PM +0100, Andreas J Koenig wrote:
> Here's the offending line:
> 
>   # grep XSUBPPDIR ext/B/C/Makefile
>   XSUBPPDIR = /home/src/perl/completeperls/perl-5.8.3-RC1/lib/ExtUtils
>   XSUBPP = $(XSUBPPDIR)/xsubpp
> 
> It seems to be a MakeMaker bug. When MM_Unix.pm reaches tool_xsubpp(),
> @INC is filled with absolute directories. Sorry, no more details
> available...

Searching @INC for xsubpp is relatively recent (March 2003).  Previously it
would only look in $self->{PERL_LIB}.

Try this.

--- lib/ExtUtils/MM_Unix.pm	17 Nov 2003 22:55:22 -0000	1.207
+++ lib/ExtUtils/MM_Unix.pm	14 Jan 2004 07:07:22 -0000
@@ -3954,7 +3954,12 @@
     return "" unless $self->needs_linking;
 
     my $xsdir;
-    foreach my $dir (@INC) {
+    my @xsubpp_dirs = @INC;
+
+    # Make sure we pick up the new xsubpp if we're building perl.
+    unshift @xsubpp_dirs, $self->{PERL_LIB} if $self->{PERL_CORE};
+
+    foreach my $dir (@xsubpp_dirs) {
         $xsdir = $self->catdir($dir, 'ExtUtils');
         if( -r $self->catfile($xsdir, "xsubpp") ) {
             last;


-- 
Michael G Schwern        schwern@pobox.com  http://www.pobox.com/~schwern/
Carpe canem!  Seize the dog!  This cannot be right.
	-- The Critic

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About