[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.
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, (continued)
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, KO Myung-Hun, 2014/12/19
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, Daiki Ueno, 2014/12/24
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, KO Myung-Hun, 2014/12/24
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, Daiki Ueno, 2014/12/25
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, KO Myung-Hun, 2014/12/25
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, Daiki Ueno, 2014/12/26
- Re: [PATCH 02/14] Fix character encoding aliases for OS/2, KO Myung-Hun, 2014/12/26
[PATCH 03/14] relocatable: support UNIXROOT in relocate() on EMX, KO Myung-Hun, 2014/12/08
[PATCH 04/14] binary-io: don't put fd in binary mode if it is a console on EMX, KO Myung-Hun, 2014/12/08
[PATCH 05/14] pipe-filter-aux: undefine HAVE_SELECT on KLIBC, KO Myung-Hun, 2014/12/08
[PATCH 06/14] w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC, KO Myung-Hun, 2014/12/08
[PATCH 07/14] getdtablesize: do not use getrlimit() on OS/2 kLIBC, KO Myung-Hun, 2014/12/08
[PATCH 08/14] wcwidth: fix 'conflicting types' error for `__wcwidth' on OS/2 kLIBC, KO Myung-Hun, 2014/12/08
[PATCH 09/14] utimes: detect utimes() correctly on OS/2 kLIBC, KO Myung-Hun, 2014/12/08
[PATCH 10/14] gnulib-tool: fall back into copy if symbolic link is not supported, KO Myung-Hun, 2014/12/08
[PATCH 11/14] pipe_filter_ii_execute: port to OS/2 kLIBC, KO Myung-Hun, 2014/12/08