bugs in a couple scripts

J j at dawnrazor.net
Sun Jan 22 06:14:49 UTC 2017


yeah, i see where you mean - as you say, with the trylink script I  
just modified it and then rebuilt and didn't worry about it since the  
build worked, so that was pretty stupid of me. i've attached a patch  
correcting the points you mention in case it's needed.

Quoting Kang-Che Sung <explorer09 at gmail.com>:

> On Sun, Jan 22, 2017 at 6:56 AM, J <j at dawnrazor.net> wrote:
>> Hello mailing list,
>>
>> i found (the hard way) that scripts/gen_build_files.sh is making unsafe
>> assumptions about the nature of /bin/sh; it appears to be presuming that
>> it's bash or dash or something:
>> --
>>   GEN     runit/Kbuild
>> /usr/src/install/busybox-1.26.2/scripts/gen_build_files.sh[23]: local: not
>> found [No such file or directory]
>>   GEN     runit/Config.in
>>   HOSTCC  scripts/basic/fixdep
>> /usr/src/install/busybox-1.26.2/scripts/gen_build_files.sh[23]: local: not
>> found [No such file or directory]
>> sed: can't read : No such file or directory
>> sed: can't read : No such file or directory
>>   GEN
>> mv: cannot rename .tmp to : No such file or directory
>> /usr/src/install/busybox-1.26.2/scripts/gen_build_files.sh[23]: local: not
>> found [No such file or directory]
>> sed: can't read : No such file or directory
>>   HOSTCC  scripts/basic/docproc
>>   HOSTCC  scripts/basic/split-include
>> sed: can't read : No such file or directory
>>   GEN
>> mv: cannot rename .tmp to : No such file or directory
>> /usr/src/install/busybox-1.26.2/scripts/gen_build_files.sh[23]: local: not
>> found [No such file or directory]
>> /usr/src/install/busybox-1.26.2/scripts/gen_build_files.sh[23]: local: not
>> found [No such file or directory]
>> --
>>
>> and so on. attached is a patch which fixes this script and thus allows
>> busybox to build. while i was in scripts/ i also noticed that the "trylink"
>> script is making the same wrong assumption, so i went ahead and patched it
>> as well to be safe, and i've attached that also.
>>
>
> Your attached scripts.trylink.diff has bugs. It seems that you just  
> found-and-
> replaced the variables without verifying the script further.
>
> It should give you "cc_r: command not found" and "lig_r: command not found".
> I hope you know where I'm talking about.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: scripts.trylink.diff
Type: text/diff
Size: 1716 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20170122/4154ff6b/attachment.bin>


More information about the busybox mailing list