Bug 184152 - "pkg install" can try to install conflicting packages
Summary: "pkg install" can try to install conflicting packages
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 22:00 UTC by phoffman
Modified: 2015-01-01 23:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phoffman 2013-11-21 22:00:00 UTC
If the pkg repo has more than one package with the same prefix, "pkg install" will blithely try to install them all at once. For example:

# sudo pkg install subversion
Updating repository catalogue
The following 10 packages will be installed:
 
        Installing expat: 2.1.0
        Installing gdbm: 1.10
        Installing db42: 4.2.52_5
        Installing sqlite3: 3.8.0.2
        Installing neon29: 0.29.6_4
        Installing apr: 1.4.8.1.5.2
        Installing subversion: 1.6.23_2
        Installing subversion: 1.7.13
        Installing serf: 1.3.2_1
        Installing subversion: 1.8.4
Saying "yes" will, fortunately, fail, but with a mysterious long list of errors instead of saying "pick just one version to install".

Fix: 

Maybe put some smarts into "pkg install"? I'm not sure what the interface should be here, but I think if "pkg install" sees it is installing a bunch of things with the same name, it shouldn't even try.
How-To-Repeat: sudo pkg install subversion
Comment 1 Philippe Audeoud freebsd_committer freebsd_triage 2013-11-22 09:54:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bapt

bapt's territory
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2015-01-01 23:17:17 UTC
This has been fixed