Wind River Support Network

HomeDefectsLIN5-19088
Fixed

LIN5-19088 : mtools-3.9.9 adds non-functional symlink /usr/bin/lz

Created: Jul 18, 2014    Updated: Dec 19, 2017
Resolved Date: Aug 6, 2014
Found In Version: 5.0.1.14
Fix Version: 5.0.1.18
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Build & Config

Description

After adding mtools-3.9.9 you can see the the following link created in the rootfs
root@qemu3:~# ls -l /usr/bin/lz
lrwxrwxrwx    1 root     root             2 Jul 18 18:07 /usr/bin/lz -> uz

This link does not seem to be pointing to a valid unzip utility:

root@qemu3:~# /usr/bin/lz
-sh: /usr/bin/lz: No such file or directory
root@qemu3:~# uz
-sh: uz: command not found

Workaround

Use the attached mtools_3.9.9.bbappend to remove symlink lz if broken.

Steps to Reproduce

1. 
configure --enable-board=qemuppc --enable-kernel=standard --enable-rootfs=glibc_small --with-template=feature/debug --enable-reconfig=yes

2. add a new variable to local.conf
PREFERRED_VERSION_mtools = "3.9.9"

3. make -C build mtools.addpkg

4. make fs

5. make start-target

6. On a running target execute the unzip utility referenced by the newly created link
/usr/bin/lz

*** Expected result:
# /usr/bin/lz
Reading directory of  standard input.
gzip: compressed data not read from terminal, use -f to force it
tar: short read
# uz
Extracting from  standard input.
gzip: compressed data not read from terminal, use -f to force it
tar: short read

*** Actual result: Invalid link/utility missing

# /usr/bin/lz
-sh: /usr/bin/lz: No such file or directory
# uz
-sh: uz: command not found

Other Downloads


Live chat
Online