Quoting Andy Dougherty (doughera@lafayette.edu):
>
> Yes, and it's already done :-). There's an existing $Config{afs} key
> that's either 'true' or 'false' that's designed for such tests.
>
This is the flag to say that AFS is present on systems where this
Perl is likely to run.
> There's also an existing $Config{afsroot} that is normally '/afs' but
> could be anything. I doubt, however, that $Config{afsroot} is used
> consistently throughout Configure, let alone installperl, installman, and
> MakeMaker. Someone familiar with afs is welcome to comment (or better
> yet, provide patches!)
>
I supplied the patch that added the $Config{afsroot}. It is to be
used to determine if a location is on AFS or not. I have only changed
the tests that always failed when run on AFS, not the install, since I
always override the install targets. Basically all tests on filenames
that look if m{^/afs/} is true should be changed to check for
$Config{afsroot} instead. Looking for something with @sys in is not the
correct solution, since this is not always present. (you can use it
expanded to the arch or not at all)
Since I supplied the original incomplete patch, I shall have a look for
all these kind of tests in the current configure and install scripts and
then provide a next patch. Which needs to be carefully checked :-)
Cheers,
--
Merijn Broeren | Everything in excess! To enjoy the flavour of life,
Software Geek | take big bites. Moderation is for monks.
|
Thread Previous
|
Thread Next