develooper Front page | perl.perl5.porters | Postings from October 2011

Re: 5.10.0 "Configure" improvement for 'userelocatableinc' onSolaris 10

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
October 6, 2011 08:34
Subject:
Re: 5.10.0 "Configure" improvement for 'userelocatableinc' onSolaris 10
Message ID:
20111006153427.GT23881@plum.flirble.org
On Wed, Mar 25, 2009 at 01:31:23AM +0100, Paul Johnson wrote:

> Here's a patch for this.  Please don't apply it yet (unless you'd like
> to force a fix by breaking the build).

> There are two parts to the patch.  The first is the configure fix from
> Luc.  This does indeed get things basically working on Solaris 10.
> However, two tests fail: lib/ExtUtils/t/INST_PREFIX.t and
> lib/ExtUtils/t/prefixify.t.  The reason for this seems to be because
> installbin is missing from the list in configpm.  And indeed, adding it
> in, as with the second part of the patch, leads to all tests passing.
> 
> However, when trying this patch on linux, although all tests continued
> to pass, make install installed all the bin files into ./... (that is a
> directory called "..." in the build directory.  (I've not had a chance
> to test whether this also happens on Solaris.)
> 
> So, the outstanding questions are:
> 
>  1. Without the configpm patch, why do the tests pass on linux (and
>     presumably BSD) but not on Solaris?

It turns out it's actually nothing to do with your patch. I can make
Linux and FreeBSD fail in the same way, with a perl of the same vintage.

It happens if one re-runs Configure -Duserelocatableinc in the same
directory with config.sh from the previous run still there. I've reported
this as bug #100844

The problem has been masked by ExtUtils::MakeMaker 6.55_02, added in
commit cb06ebec412ca5c6, which has this changelog

--- a/lib/ExtUtils/Changes
+++ b/lib/ExtUtils/Changes
@@ -1,3 +1,13 @@
+6.55_02  Wed Aug  5 00:36:36 PDT 2009
+    Feature Changes
+    * PREFIX now applies to relative directories.  This is a change since
+      6.20 when they were ignored.  Its necessary for relocatable Perls.
+
+    VMS
+    * Refactoring of "MakeMaker Parameters" section in 6.55_01 broke VMS.
+      (Craig Berry)
+
+

>  2. Should the configpm patch have been a part of the original patch
>     (1d230ada), and something additional needs to be done to install in
>     the correct location?

Yes. I have it tested in a local branch, and will push it soon.
(Trying to do too many things concurrently)

>  3. Does anyone have any time and appropriate OSes to look further into
>     this?  I'm afraid my tuits have run out for now.

I have now, and a variant of this patch is in blead. Solaris 10 and 11
now convert $^X to an absolute path.

Nicholas Clark

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