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

Re: [PATCH 5.7.1/Configure] failure to set src='.'

Thread Previous | Thread Next
From:
Lupe Christoph
Date:
January 2, 2001 23:41
Subject:
Re: [PATCH 5.7.1/Configure] failure to set src='.'
Message ID:
20010103075851.P4594@alanya.lupe-christoph.de
On Tuesday, 2001-01-02 at 14:15:22 -0500, Andy Dougherty wrote:
> On Tue, 2 Jan 2001, Lupe Christoph wrote:

> > Can we please sort out what $src is supposed to contain?

> Alas neither is necessarily absolute.  rsrc is supposed to be used within
> Configure while you're in the UU directory.  src is supposed to be used by
> the Makefile to find the relevant sources.  It is potentially relative.

Sigh.

> Seems to me the possible fixes are

> 1.  Make sure all call-back-units are called from within the UU directory
> (or not, but always do it only one way)

Since this only seems to affect solaris_2.sh, and that only in one place,
I agree that this is the easiest way.

solaris_2.sh calls use64bitall.cbu directly if $use64bitall is set,
but use64bitall.cbu can also be called later during manual selection.
This is what Jarkko had fixed with your method 3, below.

> 2.  Add another variable, say $asrc, that is the absolte path to the src
> directory.  Then the callback units are $asrc/UU/whatever.cbu

Too much effort to be worth it, IMHO.

> 3.  Add the test -f UU/whatever.cbu testing to every call to a
> call-back-unit that needs it.

Easier to do a "cd UU; . $src/UU/use64bitall.cbu; cd ..".

> 4.  Do something even more clever that solves the problem neatly.

Oooh, I'm not that clever...

> I'd be inclined to seriously consider #1 before giving up and trying one
> of the others.

Implementation of #1 attached.

Lupe Christoph
-- 
| lupe@lupe-christoph.de       |        http://free.prohosting.com/~lupe |
| The equal opportunity democracy - every vote has an equal chance       |
| of being counted. Though a bad one if you live in Florida.             |
| Those people told us how to run a democracy ?!?                        |

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