mtools: fix broken /usr/bin/lz
PATCH v2 1/1 mtools: fix broken /usr/bin/lz
From: Wenlin Kang <[email protected]>
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.
--- .../mtools/mtools/fix-broken-lz.patch | 23 ++++++++++++++++++++++ meta/recipes-devtools/mtools/mtools_3.9.9.bb | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/mtools/mtools/fix-broken-lz.patch
meta/recipes-devtools/mtools/mtools/fix-broken-lz.patch new file +23 -0
@@ -0,0 +1,23 @@ +Upstream-Status: Backport + +Signed-off-by: Wenlin Kang <[email protected]> +Signed-off-by: Jackie Huang <[email protected]> +--- + 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 +
meta/recipes-devtools/mtools/mtools_3.9.9.bb +3 -1
@@ -31,7 +31,9 @@ RRECOMMENDS_${PN} = "\ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/mtools-${PV}.tar.gz \ file://mtools-makeinfo.patch \ file://mtools.patch \ - file://no-x11.patch" + file://no-x11.patch \ + file://fix-broken-lz.patch \ +" SRC_URI[md5sum] = "3e68b857b4e1f3a6521d1dfefbd30a36" SRC_URI[sha256sum] = "af083a73425d664d4607ef6c6564fd9319a0e47ee7c105259a45356cb834690e"
Signature · 1 line
2.0.0
Sorry, this should be in oe-core, please ignore this.
Thanks,
Jackie
Quoted 82 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of [email protected]
Sent: Thursday, October 16, 2014 6:27 PM
To: [email protected]
Subject: [oe] [PATCH v2] mtools: fix broken/usr/bin/lzFrom: Wenlin Kang <[email protected]>
When build fs with mtools-3.9.9, has file
/usr/bin/lzin 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 foundBut 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.
Signed-off-by Wenlin Kang <[email protected]>Signed-off-by Jackie Huang <[email protected]>--- .../mtools/mtools/fix-broken-lz.patch | 23 ++++++++++++++++++++++ meta/recipes-devtools/mtools/mtools_3.9.9.bb | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-
devtools/mtools/mtools/fix-broken-lz.patchmeta/recipes- renamed from meta/recipes-devtools/mtools/mtools/fix-broken-lz.patch +0
-0
devtools/mtools/mtools/fix-broken-lz.patch
new file mode 100644
index 0000000..cb45491meta/recipes-devtools/mtools/mtools/fix-broken-lz.patch new file +23
-0@@ -0,0 +1,23 @@ +Upstream-Status: Backport + +Signed-off-by: Wenlin Kang <[email protected]> +Signed-off-by: Jackie Huang <[email protected]> +--- + 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 +meta/recipes- renamed from meta/recipes-devtools/mtools/mtools_3.9.9.bb +0
-0devtools/mtools/mtools_3.9.9.bb
index d995c8f..f6dd336 100644meta/recipes-devtools/mtools/mtools_3.9.9.bb +3
-2@@ -31,7 +31,9 @@ RRECOMMENDS_${PN} = "\ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/mtools-${PV}.tar.gz \ file://mtools-makeinfo.patch \ file://mtools.patch \ - file://no-x11.patch" + file://no-x11.patch \ + file://fix-broken-lz.patch \ +" SRC_URI[md5sum] = "3e68b857b4e1f3a6521d1dfefbd30a36" SRC_URI[sha256sum] = "af083a73425d664d4607ef6c6564fd9319a0e47ee7c105259a45356cb834690e" --2.0.0
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel