Bug 89448 - [patch] bsd.port.mk: improve behavior when dealing with versioned dependencies
Summary: [patch] bsd.port.mk: improve behavior when dealing with versioned dependencies
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: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 07:10 UTC by Anton Berezin
Modified: 2006-01-28 02:13 UTC (History)
0 users

See Also:


Attachments
file.diff (1013 bytes, patch)
2005-11-23 07:10 UTC, Anton Berezin
no flags Details | Diff

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