bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 03/14] relocatable: support UNIXROOT in relocate() on EMX


From: Ben Pfaff
Subject: Re: [PATCH 03/14] relocatable: support UNIXROOT in relocate() on EMX
Date: Mon, 8 Dec 2014 21:58:02 -0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Dec 09, 2014 at 02:51:51PM +0900, KO Myung-Hun wrote:
> Ben Pfaff wrote:
> > On Tue, Dec 09, 2014 at 10:40:48AM +0900, KO Myung-Hun wrote:
> >> UNIXROOT is used to specify a drive of a root of FHS. So if a path is
> >> started with '/', then it should be translated to "$UNIXROOT/".
> >>
> >> * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
> >> started with '/' on EMX.
> > 
> > As one of the maintainers of the relocatable modules, the code in this
> > patch seems reasonable to me.  I don't know enough about OS/2 or EMX to
> > know whether $UNIXROOT is a customary variable or whether this is a
> > correct context for using it.  Can you assure me that you've thought
> > about those?
> 
> OS/2 file system is based on drives[A-Z]. '/' means a root of a current
> drive. There are maximum 26 kinds of '/'.
> 
> For examples, consider that xxx is installed into f:/usr/bin. If
> executing xxx on drive e:, '/' of xxx is e:/ not f:/. In this case, xxx
> fails to find its root.
> 
> $UNIXROOT is used to overcome this problem. On OS/2, $UNIXROOT is used
> to specify a drive of '/'. And all programs following FHS are installed
> on a drive specified by $UNIXROOT. In the above, if UNIXROOT is set to
> 'f:'. Then '/' is translated to 'f:/' as xxx expects.
> 
> And see <http://trac.netlabs.org/libc/wiki/UnixPenthouseApartement>.
> 
> Still not assured ?

Thank you for explaining.

I applied this to the gnulib repository.

Thanks,

Ben.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]