Re: Bering-uClibc build files for Wireguard VPN server (rerouted to leaf-user and leaf-devel)
John Sager <[email protected]> Sat, 25 Aug 2018 09:05:52 +0100
| Newsgroups | gmane.linux.leaf.devel |
|---|---|
| Message-ID | <[email protected]> |
Erich, This /dev/fd thing is a bit more nuanced than I thought. The configure script for bash tests for its presence, and will try other ways of doing the subprocess pipes if not (e.g using /proc/self/fd on Linux), but the test runs for the system that the toolchain is hosted on, and there are no specific --enable options that could influence this feature for the target system. So inevitably a build of Bering-uClibc on more or less any modern flavour of Linux will require /dev/fd to be present on the target to support bash (and maybe other programs). John On 24/08/18 19:19, Erich Titl wrote: > Hi John > > Am 24.08.2018 um 12:11 schrieb John Sager: >> Reading around the subject it seems that /dev/fd -> /proc/self/fd has been >> around since at least Linux 2.6, and there should also be soft links for >> /dev/stdin, /dev/stdout /dev/stderr: >> >> ln -s /dev/self/fd/0 /dev/stdin >> ln -s /dev/self/fd/1 /dev/stdout >> ln -s /dev/self/fd/2 /dev/stderr >> >> Perhaps these should also be added to the root.linuxrc script to avoid any >> issues with code that depends on them. > > Should not hurt, we could include this for the next release, which may > have the new initrd. > > cheers > > ET > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > leaf-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/leaf-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot