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: KO Myung-Hun
Subject: Re: [PATCH 03/14] relocatable: support UNIXROOT in relocate() on EMX
Date: Tue, 09 Dec 2014 14:51:51 +0900
User-agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2


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 ?

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr




reply via email to

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