Bug 197345 - ports-mgmt/pkg estimates 0 GiB additional disk space
Summary: ports-mgmt/pkg estimates 0 GiB additional disk space
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 09:22 UTC by Nikolaus Klepp
Modified: 2015-04-14 20:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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