Bug 204401

Summary: lang/rust: upgrading using portupgrade fails
Product: Ports & Packages Reporter: Philip Homburg <pch-freebsd-bugs-1>
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed Not A Bug    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (riggs)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Philip Homburg 2015-11-09 15:32:17 UTC
Somehow portupgrade wants to install a new version of rust next to older versions instead of upgrading. Only rusts seems to have this problem.
(On FreeBSD 10.2-RELEASE #0 r286666)

# portupgrade --batch rust                                            
[Reading data from pkg(8) ... - 939 packages found - done]
--->  Upgrading 'rust-1.4.0' to 'rust-1.4.0_1' (lang/rust)
--->  Building '/usr/ports/lang/rust'
===>  Cleaning for rust-1.4.0_1
===>  License APACHE20  MIT accepted by the user
===>  Found saved configuration for rust-0.12.0_1
===>   rust-1.4.0_1 depends on file: /usr/local/sbin/pkg - found

===>  rust-1.4.0_1 conflicts with installed package(s): 
      rust-1.4.0

      They will not build together.
      Please remove them first with pkg delete.
*** Error code 1
Comment 1 Thomas Zander freebsd_committer freebsd_triage 2015-11-09 17:00:20 UTC
(In reply to Philip Homburg from comment #0)

Nope.
rust currently can't be build if it is already installed. That is exactly what the message is telling you: You need to remove the installed version of rust prior to build it. Sorry, but that's the way it is at the moment.