Wind River Support Network

HomeDefectsLIN7-1080
Fixed

LIN7-1080 : mtools-3.9.9 adds non-functional symlink /usr/bin/lz

Created: Oct 15, 2014    Updated: Mar 31, 2016
Resolved Date: Nov 3, 2014
Found In Version: 7.0
Fix Version: 7.0
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

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
Live chat
Online