Bug 13650 - Port Conflict Checking for bsd.port.mk
Summary: Port Conflict Checking for bsd.port.mk
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: 1999-09-09 03:40 UTC by Scot W. Hetzel
Modified: 2003-01-31 17:40 UTC (History)
0 users

See Also:


Attachments
file.diff (3.42 KB, patch)
1999-09-09 03:40 UTC, Scot W. Hetzel
no flags Details | Diff
bsd.port.mk.patch (4.10 KB, patch)
2002-12-01 20:39 UTC, Sergey Matveychuk
no flags Details | Diff
bsd.port.mk.patch (3.99 KB, patch)
2002-12-05 01:59 UTC, Sergey Matveychuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot W. Hetzel 1999-09-09 03:40:01 UTC
Currently, we have no way of checking our installed ports for conflicting 
files when a port/package is being installed.

With the attached patch to bsd.port.mk and pr bin/13649 (4.0-CURRENT) or
bin/13647 (3.2-STABLE) applied to pkg_install tools or ports collection
will be able to check the system for conflicting ports.

Place the following into a port's Makefile:

CONFLICTS=      apache*-1.2* apache*-1.3.[012345] apache-*+ssl_*

The CONFLICTS variable uses shell meta characters (  []*?<>,<=,>= ), to do
pattern matching on conflicting ports.

will result in @pkgcfl directives in its packing list.

@pkgcfl apache*-1.2*
@pkgcfl apache*-1.3.[012345]
@pkgcfl apache-*+ssl_*

bsd.port.mk will check for conflicting packages during the install of the
port.  If it detects a conflict, it will not install the port until the
offending port is removed from the system.

NOTE: By setting ENABLE_CONFLICTS to NO, it will disable conflict checking
      for the port install and for the building of the port's package.


Currently, the patch is set to allow Conflict checking for CURRENT
(OSVERSION >= 400009) and 3.2-STABLE (OSVERSION >= 320001).  These will need
to be changed to the appropriate values.

Fix: Apply the attached patched to bsd.port.mk.
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-09-27 02:43:28 UTC
Responsible Changed
From-To: freebsd-ports->asami

Satoshi is the maintainer of bsd.port*mk. 
Comment 2 Will Andrews freebsd_committer freebsd_triage 2001-04-04 09:06:38 UTC
Responsible Changed
From-To: asami->portmgr

Over to new maintainer.
Comment 3 Sergey Matveychuk 2002-12-01 20:39:34 UTC
Adapted patch to current bsd.port.mk.

----
Sem.
Comment 4 Sergey Matveychuk 2002-12-05 01:59:20 UTC
Send again my patch with Mozilla because stupid =0A= symbols of M$ Outlook.
Comment 5 Sergey Matveychuk 2003-01-16 16:17:32 UTC
is obsoleted by ports/47176
Comment 6 Sergey Matveychuk 2003-01-16 16:24:52 UTC
sorry, obsoleted by ports/47146
Comment 7 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2003-01-31 17:40:20 UTC
State Changed
From-To: open->closed

Superseded by PR 47146, thanks!