Bug 32123

Summary: --enable-extra-template etc. cause prompts from unzip
Product: LibreOffice Reporter: Bernhard Rosenkraenzer <bero>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED FIXED    
Severity: normal CC: sophi, thb
Priority: medium    
Version: 3.3.0 RC1   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Proposed patch

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-3.3.0.1/src/OOOP-gallery-pack-2.8.0.0.zip ... ok
Unpacking OOOP-gallery-pack-2.8.0.0.zip
replace /usr/src/ark/BUILD/libreoffice-build-3.3.0.1/build/libreoffice-3.3.0.1/extras/source/gallery/accessories-nonfree/delzip? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
Looking for /usr/src/ark/BUILD/libreoffice-build-3.3.0.1/src/OOOP-samples-pack-2.7.0.0.zip ... ok
Unpacking OOOP-samples-pack-2.7.0.0.zip
replace /usr/src/ark/BUILD/libreoffice-build-3.3.0.1/build/libreoffice-3.3.0.1/extras/source/premium/samples-nonfree/documentation/lang/delzip? [y]es, [n]o, [A]ll, [N]one, [r]ename: A

Looking for /usr/src/ark/BUILD/libreoffice-build-3.3.0.1/src/OOOP-templates-pack-2.8.0.0.zip ... ok
Unpacking OOOP-templates-pack-2.8.0.0.zip
warning [/usr/src/ark/BUILD/libreoffice-build-3.3.0.1/src/OOOP-templates-pack-2.8.0.0.zip]:  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-3.3.0.1/build/libreoffice-3.3.0.1/extras/source/premium/templates/misc/lang/delzip? [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