Hi,

today I tried the SVN-Trunk (since there is _finally_ gmake built in the 
toolchain - hurray!) and there was a problem with the detection of ed. 
(Just for the records, my build-system is SuSE 10.1).

My ed is installed in /bin/ed and symlinked to /usr/bin/ed. But "which" 
returns only the first found "ed" in Path, in my case /usr/bin/ed. So 
scan-tools.sh complains that I don't have ed installed at all. One way to 
fix it would be setting the path the other way round (would need further 
documentation), another way is the attached patch, which fixed it for me.

But why is the "ed"-check needed at all? The only reference I found is in 
trunk/freewrt/package/mksh/patches/patch-dot_mkshrc and this looks like a 
call in the target-system. (But I am not an expert, so I may be wrong.)

regads,
Christian
--- scripts/scan-tools.sh       (Revision 2219)
+++ scripts/scan-tools.sh       (Arbeitskopie)
@@ -340,7 +340,7 @@
        echo text editor, ed? Please install it to continue.
        echo
        out=1
-elif [[ "$(which ed 2>/dev/null)" != /bin/ed ]]; then
+elif [[ ! -x /bin/ed ]]; then
        echo Your operating system installs ed, the standard text
        echo editor, not as /bin/ed. While you can build FreeWRT
        echo with this, ask your vendor to fix it, point to the
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to