Wind River Support Network

HomeDefectsLIN6-8259
Fixed

LIN6-8259 : update-alternatives fails for "[" and "[[" in busybox

Created: Aug 28, 2014    Updated: Dec 3, 2018
Resolved Date: Sep 21, 2014
Found In Version: 6.0
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Building a small filesystem with busybox gives the following  error lines;
see log.do_rootfs
sed: -e expression #1, char 41: unterminated address regex
sed: -e expression #1, char 42: unterminated address regex

The error lines comes from busybox install script;
update-alternatives --install /usr/bin/[ lbracket /usr/lib/busybox/usr/bin/[ 50
update-alternatives --install /usr/bin/[[ [[ /usr/lib/busybox/usr/bin/[[ 50

With this "[" and "[[" links will be missing from the rootfs 

Steps to Reproduce

$ .../wrlinux-6/wrlinux/configure --enable-build=production --enable-rootfs=glibc_tiny --enable-kernel=standard --enable-board=lsi-axm55xx
$ make fs
$ less bitbake_build/tmp/work/lsi_axm55xx-wrs-linux-gnueabi/wrlinux-image-glibc-tiny/1.0-r0/temp/log.do_rootfs

Other Downloads


Live chat
Online