1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-15 15:37:03 +00:00

mtools: fix broken /usr/bin/lz

When build fs with mtools-3.9.9, has file /usr/bin/lz in rootfs,
it is the symlink to uz:

root@qemu3:~# /usr/bin/lz
-sh: /usr/bin/lz: No such file or directory
$root@qemu3:~# ls -l /usr/bin/lz
lrwxrwxrwx 1 root root 2 Jul 18 18:07 /usr/bin/lz -> uz
root@qemu3:~# uz
-sh: uz: command not found

But the uz isn't actually exist, so the result is that lz is a
broken symlink.

The root cause is that uz hasn't been installed when install-scripts.

(From OE-Core rev: 7308da9ccd4b8b9b5077aacd0442be28a6c73c61)

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Wenlin Kang
2014-10-16 06:26:49 -04:00
committed by Richard Purdie
parent 38968de275
commit e17e815177
2 changed files with 26 additions and 1 deletions
@@ -0,0 +1,23 @@
Upstream-Status: Backport
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
Makefile.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.in b/Makefile.in
index 8f9305a..694e837 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -251,6 +251,7 @@ install-scripts: ${DESTDIR}$(bindir)/mtools
@$(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir)
@for j in $(SCRIPTS) ; do \
$(INSTALL_SCRIPT) $(srcdir)/scripts/$$j ${DESTDIR}$(bindir)/$$j ; \
+ $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j ${DESTDIR}$(bindir)/$$j ; \
echo ${DESTDIR}$(bindir)/$$j ; \
done
rm -f ${DESTDIR}$(bindir)/lz
--
2.0.0