Uname wrapper bug

Alexander E. Patrakov patrakov at ums.usu.ru
Sun Jan 29 22:16:08 PST 2006


Alexander E. Patrakov wrote:

> For the (misnamed) "qx64" branch, the proposed (and tested) plan is:
>
> 1) Always add /lfs-livecd/scripts as the first component in $PATH
> 2) Have this uname wrapper as /lfs-livecd/scripts/uname:
>
> #!/bin/sh
> PATH=${PATH#*:}
> uname "$@" | sed 's/[56]86/486/'
>
> 3) Have this arch wrapper as /lfs-livecd/scripts/arch:
>
> #!/bin/sh
> PATH=${PATH#*:}
> arch "$@" | sed 's/[56]86/486/'
>
> 4) Don't install this wrapper into /tools/bin or /bin while installing 
> coreutils, because it is the first in $PATH anyway.

Scrap the idea. The configure scripts always check /bin/uname or 
/usr/bin/uname, and ignore $PATH for this purpose. But I believe they 
can be fooled by config.site.

-- 
Alexander E. Patrakov



More information about the livecd mailing list