* [PATCH] Revert "unzip: Add update-alternatives to unzip"
@ 2010-11-13 14:13 Paul Menzel
2010-11-13 14:27 ` Martin Jansa
2010-11-13 17:42 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Paul Menzel @ 2010-11-13 14:13 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2610 bytes --]
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.
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
recipes/unzip/unzip_552.bb | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/recipes/unzip/unzip_552.bb b/recipes/unzip/unzip_552.bb
index 0decc4a..6e3497e 100644
--- a/recipes/unzip/unzip_552.bb
+++ b/recipes/unzip/unzip_552.bb
@@ -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"
--
1.7.2.3
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] Revert "unzip: Add update-alternatives to unzip"
2010-11-13 14:13 [PATCH] Revert "unzip: Add update-alternatives to unzip" Paul Menzel
@ 2010-11-13 14:27 ` Martin Jansa
2010-11-13 17:42 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2010-11-13 14:27 UTC (permalink / raw)
To: openembedded-devel
Hi Paul,
On Sat, Nov 13, 2010 at 03:13:09PM +0100, Paul Menzel wrote:
> 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`.
> diff --git a/recipes/unzip/unzip_552.bb b/recipes/unzip/unzip_552.bb
> index 0decc4a..6e3497e 100644
> --- a/recipes/unzip/unzip_552.bb
> +++ b/recipes/unzip/unzip_552.bb
> @@ -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).
> 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}
> -}
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,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Revert "unzip: Add update-alternatives to unzip"
2010-11-13 14:13 [PATCH] Revert "unzip: Add update-alternatives to unzip" Paul Menzel
2010-11-13 14:27 ` Martin Jansa
@ 2010-11-13 17:42 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2010-11-13 17:42 UTC (permalink / raw)
To: Paul Menzel; +Cc: openembedded-devel
On 11/13/2010 07:13 AM, Paul Menzel wrote:
> 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.
>
> Signed-off-by: Paul Menzel<paulepanter@users.sourceforge.net>
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!
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-13 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-13 14:13 [PATCH] Revert "unzip: Add update-alternatives to unzip" Paul Menzel
2010-11-13 14:27 ` Martin Jansa
2010-11-13 17:42 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.