All of lore.kernel.org
 help / color / mirror / Atom feed
* base.bbclass: Enable overwrite flag for unzip command
@ 2008-03-30 13:16 Leon Woestenberg
  2008-03-30 13:43 ` Rod Whitby
  2008-03-30 14:14 ` Koen Kooi
  0 siblings, 2 replies; 4+ messages in thread
From: Leon Woestenberg @ 2008-03-30 13:16 UTC (permalink / raw)
  To: openembedded-devel

Hello,

During rebuilds I noticed unpacking a zip a second time fails, whereas tar
silently succeeds, overwriting files.

A manual test confirms this:

leon@witty:/tmp$ unzip -q
/home/leon/sandbox/efika/openembedded/downloads/faad2-2.0.zip
leon@witty:/tmp$ unzip -q
/home/leon/sandbox/efika/openembedded/downloads/faad2-2.0.zip
replace faad2/aacDECdrop/aacDECdrop/aacDECdrop.dsp? [y]es, [n]o, [A]ll,
[N]one, [r]ename: leon@witty:/tmp$

leon@witty:/tmp$ tar xzf ~/sandbox/efika/openembedded/downloads/zeroconf-
0.9.tar.gz
leon@witty:/tmp$ tar xzf ~/sandbox/efika/openembedded/downloads/zeroconf-
0.9.tar.gz

I will shortly commit the following change (after a test), which enables
overwrite behaviour for unzip:

-base.bbclass:574:               cmd = 'unzip -q'
+base.bbclass:574:               cmd = 'unzip -q -o'

Regards,
-- 
Leon


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: base.bbclass: Enable overwrite flag for unzip command
  2008-03-30 13:16 base.bbclass: Enable overwrite flag for unzip command Leon Woestenberg
@ 2008-03-30 13:43 ` Rod Whitby
  2008-03-30 14:14 ` Koen Kooi
  1 sibling, 0 replies; 4+ messages in thread
From: Rod Whitby @ 2008-03-30 13:43 UTC (permalink / raw)
  To: openembedded-devel

Leon Woestenberg wrote:
> During rebuilds I noticed unpacking a zip a second time fails, whereas tar
> silently succeeds, overwriting files.
...
> I will shortly commit the following change (after a test), which enables
> overwrite behaviour for unzip:
> 
> -base.bbclass:574:               cmd = 'unzip -q'
> +base.bbclass:574:               cmd = 'unzip -q -o'

+1 - I had the same problem arise today with ixp4xx-npe-native.

-- Rod



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: base.bbclass: Enable overwrite flag for unzip command
  2008-03-30 13:16 base.bbclass: Enable overwrite flag for unzip command Leon Woestenberg
  2008-03-30 13:43 ` Rod Whitby
@ 2008-03-30 14:14 ` Koen Kooi
  2008-03-30 15:45   ` Leon Woestenberg
  1 sibling, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2008-03-30 14:14 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leon Woestenberg schreef:
| Hello,
|
| During rebuilds I noticed unpacking a zip a second time fails, whereas tar
| silently succeeds, overwriting files.

I think all unpack methods should have consistent behaviour, but I don't
think silently overwriting files is a good idea, especially when SRC_URI
contains patches as well.



| I will shortly commit the following change (after a test), which enables
| overwrite behaviour for unzip:
|
| -base.bbclass:574:               cmd = 'unzip -q'
| +base.bbclass:574:               cmd = 'unzip -q -o'

Since sorting out unpack behaviour will take too long:

+1 from me

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH76BcMkyGM64RGpERAjmRAJsFayVq33qqBcSBgDzHHEput2Kk2gCePPQb
Ad+tFhoZs/Bt0FQM2fd+XqE=
=1wUR
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: base.bbclass: Enable overwrite flag for unzip command
  2008-03-30 14:14 ` Koen Kooi
@ 2008-03-30 15:45   ` Leon Woestenberg
  0 siblings, 0 replies; 4+ messages in thread
From: Leon Woestenberg @ 2008-03-30 15:45 UTC (permalink / raw)
  To: openembedded-devel

Hello,

On Sun, Mar 30, 2008 at 4:14 PM, Koen Kooi <koen@dominion.kabel.utwente.nl>
wrote:


> I think all unpack methods should have consistent behaviour, but I don't
> think silently overwriting files is a good idea, especially when SRC_URI
> contains patches as well.
>

In fact, unpacking over the previous work dir is one of numerous reasons why
rebuilds are very prone to non-deterministic builds; if the package build
behaves differently when left-overs are present, we have a problem. (A
simple example is a Makefile with non-correct dependency information - most
of these already fail during -jN with N>1).

However, we should note that re-builds are non-deterministic at least in
these two cases.
- when the meta data has changed inbetween. (Boosting PR helps as it will
start from a clean dir).
- if individual tasks are forced and the package has faulty internal build
dependencies.

I like the current behaviour of OpenEmbedded though, where we can force a
re-do of each stage during development.

I just never trust it for a release (candidate) build.

Change committed in  2e450cceb8dfc2c7a8dc9fce69d0d31223476a09, thanks for
the review.

Regards,
-- 
Leon


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-30 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-30 13:16 base.bbclass: Enable overwrite flag for unzip command Leon Woestenberg
2008-03-30 13:43 ` Rod Whitby
2008-03-30 14:14 ` Koen Kooi
2008-03-30 15:45   ` Leon Woestenberg

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.