Bug 197345

Summary: ports-mgmt/pkg estimates 0 GiB additional disk space
Product: Ports & Packages Reporter: Nikolaus Klepp <dr.klepp>
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: Closed FIXED    
Severity: Affects Many People CC: dr.klepp, matthew
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Nikolaus Klepp 2015-02-05 09:22:29 UTC
When pkg installes a packet that requires more than some hundred MB it uses gigabytes to show the required disk space. But when the needed disk space is smaller that 1 gigabyte, it gives 0 gigabyte as space requirement.

Steps to reproduce:

# pkg install racket
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 packages will be affected (of 0 checked):

New packages to be INSTALLED:
	racket: 6.1_2

The process will require 0 GiB more space.
67 MiB to be downloaded.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2015-03-08 13:50:46 UTC
Can you specify which version of pkg?
Comment 2 Matthew Seaman freebsd_committer freebsd_triage 2015-03-08 15:12:25 UTC
Fixed some time back in git:

https://github.com/freebsd/pkg/commit/3bdbed6aa34b34e325c506fbbde44516c947633d