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:
Andy Dougherty
Date:
January 2, 2001 11:14
Subject:
Re: [PATCH 5.7.1/Configure] failure to set src='.'
Message ID:
Pine.SOL.4.10.10101021408270.27603-100000@maxwell.phys.lafayette.edu
On Tue, 2 Jan 2001, Lupe Christoph wrote:

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

?S:src (srcdir):
?S:     This variable holds the path to the package source. It is up to
?S:     the Makefile to use this variable and set VPATH accordingly to
?S:     find the sources remotely.
?S:.
?S:rsrc (relsrcdir):
?S:     This variable holds a potentially relative path to the package
?S:     source.  The contents are correct for the configuration environment,
?S:     i.e. there might be an extra .. prepended to get out of the UU dir.
?S:     Configure units should use this, not the src variable.

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.

The problem is, as was observed earlier in this thread, is that the
call-back-units are getting called at different times, and hence from
different locations.

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)

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

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

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

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

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042


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