Revert "unzip: Add update-alternatives to unzip"
PATCH 1/1 Revert "unzip: Add update-alternatives to unzip"
Date: Sat, 13 Nov 2010 14:49:28 +0100
This reverts commit 902b98f32ffd35661e43382f47226f65528ff1b1.
With this patch, decompressing zip files does not work anymore in angstrom-2008.1, angstrom-2010.x, minimal and minimal-uclibc.
/oe/build-angstrom-next$ bitbake -k jasper
[…]
NOTE: package jasper-1.900.1-r1: task do_unpack: Started
NOTE: Unpacking ../downloads/jasper-1.900.1.zip to angstrom-dev/work/armv7a-angstrom-linux-gnueabi/jasper-1.900.1-r1/
FATAL: Unable to unpack '/oe/downloads/jasper-1.900.1.zip' to '/oe/build-angstrom-next/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/jasper-1.900.1-r1' (cmd: unzip -q -o '/home/paul/oe/downloads/jasper-1.900.1.zip'):
Execution of 'unzip -q -o '/oe/downloads/jasper-1.900.1.zip'' failed with exit code 127:
/bin/sh: unzip: command not found
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/perl/perl-native_5.10.1.bb do_compile failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/jpeg/jasper_1.900.1.bb do_distribute_sources failed /oe/build-angstrom-next$ find . -name unzip ./angstrom-dev/work/i686-linux/unzip-native-552-r2/unzip-5.52/unzip
I do not know what in Tom’s patch might cause this behavior but reverting this patch fixes the problem for me.
Please note, that unzip is not installed on my build host.
--- recipes/unzip/unzip_552.bb | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-)
recipes/unzip/unzip_552.bb +1 -10
@@ -1,7 +1,7 @@ DESCRIPTION = "A (de)compression library for the ZIP format" SECTION = "console/utils" LICENSE = "Info-ZIP" -PR = "r2" +PR = "r1" SRC_URI = "${SOURCEFORGE_MIRROR}/project/infozip/UnZip%205.x%20and%20earlier/5.52/unzip${PV}.tar.gz" S = "${WORKDIR}/unzip-5.52"
@@ -19,15 +19,6 @@ do_install() { oe_runmake -f unix/Makefile install prefix=${D}${prefix} install -d ${D}${mandir} mv ${D}${prefix}/man/* ${D}${mandir} - mv ${D}${bindir}/unzip ${D}${bindir}/unzip.${PN} -} - -pkg_postinst_${PN} () { - update-alternatives --install ${bindir}/unzip unzip unzip.${PN} 100 -} - -pkg_prerm_${PN} () { - update-alternatives --remove unzip unzip.${PN} } SRC_URI[md5sum] = "9d23919999d6eac9217d1f41472034a9"
Signature · 1 line
1.7.2.3
Hi Paul,
recipes/unzip/unzip_552.bb line 4
Quoted 13 lines · Paul Menzel
This reverts commit
902b98f32ffd35661e43382f47226f65528ff1b1.With this patch, decompressing zip files does not work anymore in
angstrom-2008.1, angstrom-2010.x,minimalandminimal-uclibc.recipes/unzip/unzip_552.bb +1
-1@@ -1,7 +1,7 @@ DESCRIPTION = "A (de)compression library for the ZIP format" SECTION = "console/utils" LICENSE = "Info-ZIP" -PR = "r2" +PR = "r1"
Even with revert the PR should be increased (need manual change).
recipes/unzip/unzip_552.bb do_install() { · line 23
Quoted 9 lines
recipes/unzip/unzip_552.bb +0
-2SRC_URI = "${SOURCEFORGE_MIRROR}/project/infozip/UnZip%205.x%20and%20earlier/5.52/unzip${PV}.tar.gz" S = "${WORKDIR}/unzip-5.52"@@ -19,15 +19,6 @@ do_install() { oe_runmake -f unix/Makefile install prefix=${D}${prefix} install -d ${D}${mandir} mv ${D}${prefix}/man/* ${D}${mandir} - mv ${D}${bindir}/unzip ${D}${bindir}/unzip.${PN} -}
limit this mv only to target's do_install while do_install for unzip-native keeps unzip name (or you can add unzip -> unzip.${PN} link to unzip-native)
Regards,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 21 lines · Paul Menzel
Date: Sat, 13 Nov 2010 14:49:28 +0100
This reverts commit
902b98f32ffd35661e43382f47226f65528ff1b1.With this patch, decompressing zip files does not work anymore in
angstrom-2008.1, angstrom-2010.x,minimalandminimal-uclibc./oe/build-angstrom-next$ bitbake -k jasper
[…]
NOTE: package jasper-1.900.1-r1: taskdo_unpack: Started
NOTE: Unpacking ../downloads/jasper-1.900.1.zip to angstrom-dev/work/armv7a-angstrom-linux-gnueabi/jasper-1.900.1-r1/
FATAL: Unable to unpack '/oe/downloads/jasper-1.900.1.zip' to '/oe/build-angstrom-next/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/jasper-1.900.1-r1' (cmd: unzip -q -o '/home/paul/oe/downloads/jasper-1.900.1.zip'):
Execution of 'unzip -q -o '/oe/downloads/jasper-1.900.1.zip'' failed with exit code 127:
/bin/sh: unzip: command not foundERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/perl/perl-native_5.10.1.bbdo_compilefailed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/jpeg/jasper_1.900.1.bbdo_distribute_sourcesfailed /oe/build-angstrom-next$ find . -name unzip ./angstrom-dev/work/i686-linux/unzip-native-552-r2/unzip-5.52/unzip
Quoted 5 lines
I do not know what in Tom’s patch might cause this behavior but reverting this patch fixes the problem for me.
Please note, that
unzipis not installed on my build host.Signed-off-by Paul Menzel<[email protected]>
OK, my fault, I forgot about the -native case here. The right way that I should have done here is to make the final mv be do_install_append_pn-unzip or so (will grep check). I'll fix this momentarily, sorry!
Signature · 2 lines
Tom Rini Mentor Graphics Corporation