ports/184152: "pkg install" can try to install conflicting packages

Paul Hoffman phoffman at proper.com
Thu Nov 21 22:00:00 UTC 2013


>Number:         184152
>Category:       ports
>Synopsis:       "pkg install" can try to install conflicting packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 21 22:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Paul Hoffman
>Release:        9.2
>Organization:
>Environment:
FreeBSD free9base 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013     root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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".
>How-To-Repeat:
sudo pkg install subversion
>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.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list