Bug 32123 - --enable-extra-template etc. cause prompts from unzip
Summary: --enable-extra-template etc. cause prompts from unzip
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
3.3.0 RC1
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2010-12-06 00:45 UTC by Bernhard Rosenkraenzer
Modified: 2011-01-13 08:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Proposed patch (493 bytes, patch)
2010-12-06 01:33 UTC, Bernhard Rosenkraenzer

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2010-12-06 00:45:22 UTC
In 3.3.0-rc1 (not available in the version list in bugzilla), passing --enable-extra-templates causes unzip to prompt whether or not it may overwrite already existing files - making life unnecessarily hard for packagers.

With --enable-extra-gallery --enable-extra-template --enable-extra-sample:

Looking for /usr/src/ark/BUILD/libreoffice-build- ... ok
Unpacking OOOP-gallery-pack-
replace /usr/src/ark/BUILD/libreoffice-build- [y]es, [n]o, [A]ll, [N]one, [r]ename: A
Looking for /usr/src/ark/BUILD/libreoffice-build- ... ok
Unpacking OOOP-samples-pack-
replace /usr/src/ark/BUILD/libreoffice-build- [y]es, [n]o, [A]ll, [N]one, [r]ename: A

Looking for /usr/src/ark/BUILD/libreoffice-build- ... ok
Unpacking OOOP-templates-pack-
warning [/usr/src/ark/BUILD/libreoffice-build-]:  151510 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  151510
  (attempting to re-compensate)
replace /usr/src/ark/BUILD/libreoffice-build- [y]es, [n]o, [A]ll, [N]one, [r]ename: 

unzip should probably be invoked with the -o parameter.
Comment 1 Bernhard Rosenkraenzer 2010-12-06 01:33:48 UTC
Created attachment 40819 [details]
Proposed patch
Comment 2 Thorsten Behrens (allotropia) 2010-12-10 14:05:19 UTC
Looks good, applied & pushed for libreoffice-3-3
Comment 3 sophie 2011-01-13 08:45:04 UTC
Not verified but without further comments, closing - Sophie