Bug 167018

Summary: Wrong size in zip archives
Product: [Applications] ark Reporter: Sebastian Kratzert <krase>
Component: generalAssignee: Harald Hvaal <metellius>
Status: RESOLVED FIXED    
Severity: normal CC: christiandehne, elias.frantisek, mail, piasecki.robert, rakuco, sathya
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test Case

Description Sebastian Kratzert 2008-07-19 20:13:38 UTC
Version:           2.9.999 (using 4.1.00 (KDE 4.0.99 (4.1 RC1+)) "release 10.2", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.9-0.2-default

Hi,

ark seems to have problems calculating the filesize in zip files. Files with a few kilobytes in size show up as terabyte sized.
I checked to see if it is a problem of the file itself. Using the KIO-slave in dolphin shows right file sizes. e.g.: zip:/home/krase/download/pyAXL-0.5.2.zip

An example file is attached.
Comment 1 Sebastian Kratzert 2008-07-19 20:15:29 UTC
Created attachment 26266 [details]
Test Case
Comment 2 David Korth 2008-07-26 02:14:36 UTC
The problem seems to be a mismatch between Ark and libzip. Ark's configured to enable 64-bit filesizes regardless of architecture (-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64), while libzip doesn't.

The solution is to recompile libzip with these additional CFLAGS:
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
Comment 3 Pino Toscano 2008-07-26 10:06:06 UTC
*** Bug 167469 has been marked as a duplicate of this bug. ***
Comment 4 Pino Toscano 2008-08-02 20:29:31 UTC
*** Bug 168135 has been marked as a duplicate of this bug. ***
Comment 5 Harald Hvaal 2008-08-06 10:48:23 UTC
SVN commit 842913 by metellius:

BUG: 167018
Redefining off_t to 32bit inside of libzip plugin


 M  +8 -0      zipplugin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=842913
Comment 6 Harald Hvaal 2008-08-06 10:50:26 UTC
A somewhat temporary solution as mentioned in the comments of the commit. Will investigate further what can be done with the libzip with regards to compilation flags.
Comment 7 Pino Toscano 2008-08-18 19:54:12 UTC
*** Bug 169386 has been marked as a duplicate of this bug. ***
Comment 8 Pino Toscano 2008-08-18 19:55:55 UTC
*** Bug 169391 has been marked as a duplicate of this bug. ***
Comment 9 Harald Hvaal 2009-05-10 06:22:31 UTC
*** Bug 190205 has been marked as a duplicate of this bug. ***