Bug 89448

Summary: [patch] bsd.port.mk: improve behavior when dealing with versioned dependencies
Product: Ports & Packages Reporter: Anton Berezin <tobez>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Anton Berezin freebsd_committer freebsd_triage 2005-11-23 07:10:13 UTC
Currently, the existing mechanism of version dependencies
(BUILD_DEPENDS=pkg_a>0.42:pkg_a_port) behaves somewhat
counter-intuitively when an incompatible with this specification
version of pkg_a is installed (say, version 0.21).  Namely,
the "not found" condition is detected and the build of the current
version of pkg_a_port is commensed.  This leads nowhere, however,
since the install stage refuses to install a newer version of
pkg_a on top of already installed version.  This is a good thing
in and by itself, but the behavior can and should be improved, so
that the user gets earlier indication that something is amiss and
a less cryptic error message.

Fix: The proposed fix, upon detection of the condition described above,
tries to determine whether another, incompatible version of the
package is installed.  If that is the case, the build process is
interrupted immediately, with a (hopefully) sane error message.

Thanks to lth for poking me about this and to him and to lars@balker.dk
for testing and discussion.
Comment 1 Anton Berezin freebsd_committer freebsd_triage 2005-11-23 07:22:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Assign this PR to the port maintainer.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-01-22 00:48:59 UTC
State Changed
From-To: open->analyzed

Accepted for a test build on the cluster.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-01-28 02:13:33 UTC
State Changed
From-To: analyzed->closed

Committed, thanks.