Bug 3156 - Negative package size reported by urpmq
: Negative package size reported by urpmq
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
Depends on:
  Show dependency treegraph
Reported: 2013-11-14 14:11 MSK by Dmitry
Modified: 2014-08-19 16:43 MSD (History)
1 user (show)

See Also:
RPM Package:
Bad POT generating:


Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2013-11-14 14:11:17 MSK
Description of problem:

Negative value of packages size:

$ urpmq -i ncbi-blast-debuginfo
Name        : ncbi-blast-debuginfo
Version     : 2.2.27
Release     : 1
Group       : Development/Debug
Size        : -1765658171                  Architecture: x86_64
Source RPM  : ncbi-blast-2.2.27-1.src.rpm
URL         : http://www.ncbi.nlm.nih.gov
Summary     : Debug information for package ncbi-blast
Description :
This package provides debug information for package ncbi-blast.
Debug information is useful when developing applications that use this
package or when debugging this package.

Size        : -1765658171

How ii it possible?
Comment 1 Denis Silakov 2013-11-14 22:02:49 MSK
Yes, I confirm - for large packages, the size can become negative.

Looks like an integer overflow somewhere inside perl-URPM (in functions invoked by genhdlist2).
Comment 2 Denis Silakov 2014-08-19 16:43:23 MSD
Updated perl-URPM is rosa2014.1 platform doesn't have this problem. We have also backported fixes to 2012.1, though metadata in 'release' repositories were not regenerated so some packages still an have negative size. But we don't consider this issue in 2012.1 to be crucial, so let's close the bug.