Bug 89710 - [patch] Mk/bsd.port.mk: check-conflicts target generates false positives
Summary: [patch] Mk/bsd.port.mk: check-conflicts target generates false positives
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-29 06:10 UTC by Mark Andrews
Modified: 2006-01-28 02:13 UTC (History)
0 users

See Also:


Attachments
file.diff (916 bytes, patch)
2005-11-29 06:10 UTC, Mark Andrews
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Andrews 2005-11-29 06:10:02 UTC
	"pkg_info -I" checks against both the installed packages *and*
	the packages in PKG_PATH.   This cause the check-conflicts target
	of Mk/bsd.port.mk to generate false positives.

Fix: Use "pkg_info -e" to eliminate the false positives.
How-To-Repeat: 
	Attempt to install / reinstall xterm-206_1.  This conflicts
	with xorg-clients-6.8.2 (not xorg-clients-6.8.2_1 which is
	installed).  Note xorg-clients-6.8.2.tgz is available as a
	package but is not installed.

drugs# portupgrade -f xterm-206_1
...
--->  Backing up the old version
--->  Uninstalling the old version
--->  Deinstalling 'xterm-206_1'
pkg_delete: package 'xterm-206_1' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
xorg-clients-6.8.2_1
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 303 packages found (-1 +0) (...) done]
--->  Installing the new version via the port
===>  Installing for xterm-206_1

===>  xterm-206_1 conflicts with installed package(s): 
      xorg-clients-6.8.2

      They install files into the same place.
      Please remove them first with pkg_delete(1).
*** Error code 1

Stop in /usr/ports/x11/xterm.
*** Error code 1

Stop in /usr/ports/x11/xterm.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade18976.0 make -DFORCE_PKG_REGISTER reinstall
--->  Restoring the old version
** Fix the installation problem and try again.
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 304 packages found (-0 +1) . done]
** Listing the failed packages (*:skipped / !:failed)
        ! x11/xterm (xterm-206_1)       (install error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
drugs#
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-11-29 06:17:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Affects bsd.port.mk.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-01-21 19:59:05 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:44 UTC
State Changed
From-To: analyzed->closed

Committed, thanks.