Bug 308475

Summary: YaST thinks kernel-source package is ~250GB
Product: [openSUSE] openSUSE 10.3 Reporter: Eric Kincl <Eric>
Component: libzyppAssignee: Michael Andres <ma>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dmacvicar, forgotten_LB2tBsiOfo, locilka, lslezak
Version: Beta 3   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 log

Description Eric Kincl 2007-09-07 00:33:29 UTC
Before checking the "kernel-source" package for installation in YaST it reports that I have 6.9GB free on my HD.  After checking the package it pops up an "out of space" error saying I have -235.8GB free.  It appears to be taking the package size of 242.7MB (listed in YaST) and thinking it's GB instead of MB.

It *is* possible to simply ignore the fault continue installing the package, but it is still very disconcerting.


/var/log/YaST2/y2log doesn't have any useful information.
Comment 1 Eric Kincl 2007-09-07 00:58:40 UTC
I have found several additional packages that cause this error.  They include packages from external repositories.
Comment 2 Lukas Ocilka 2007-09-07 09:24:41 UTC
Anyway, please, attach those YaST logs.
Comment 3 Andreas Jaeger 2007-09-09 15:45:14 UTC
*** Bug 309046 has been marked as a duplicate of this bug. ***
Comment 4 Forgotten User LB2tBsiOfo 2007-09-09 20:51:50 UTC
I have attached YAST logs for this issue to my duplicate buy 309046, if that is any help for resolving it.
Comment 5 Eric Kincl 2007-09-10 00:25:33 UTC
Created attachment 162916 [details]
YaST2 log

This a fresh YaST2 log where all I did was go into the Software Management module and clicked on a random package.  ("boswars" from the Packman repository)  This random package triggered the bug telling me that the single package would take up many GB when it is in reality only a few MB.
Comment 6 Forgotten User LB2tBsiOfo 2007-09-10 00:31:07 UTC
Oh, okay.  I thought that request for the YAST logs was in reference to the kernel-source problem mentioned at the top of this bug, showing not enough disk space.  I haven't experienced the problem with adding or updating any packages except the kernel packages here.
Comment 7 Ladislav Slezák 2007-09-10 09:07:59 UTC
The problem is in libzypp - when the disk usage is not known (a YUM repository) zypp uses the installed package size. The disk usage size must be in kilobytes so the package size must be divided by 1024.

Fixed in SVN (rev. 7156)
Comment 9 Ladislav Slezák 2007-09-10 09:23:36 UTC

*** This bug has been marked as a duplicate of bug 308362 ***
Comment 10 Ladislav Slezák 2007-09-12 12:48:06 UTC
*** Bug 309640 has been marked as a duplicate of this bug. ***