Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2006 00:58:50 +0400
From:      Sergey Matveychuk <sem@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/95841: bsd.port.mk: remove a legacy code which sets FORCE_PKG_REGISTER=yes
Message-ID:  <E1FUrr0-000I6q-1t@mail.ciam.ru>
Resent-Message-ID: <200604152100.k3FL0XCM079214@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95841
>Category:       ports
>Synopsis:       bsd.port.mk: remove a legacy code which sets FORCE_PKG_REGISTER=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 15 21:00:33 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Matveychuk
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD sprite.ciam.ru 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Tue Jan 24 10:46:38 MSK 2006 root@sprite.ciam.ru:/usr/obj/usr/src/sys/PROXY i386


	
>Description:
	
	We have a legacy code was added more than 6.5 years ago.
	The code adds FORCE_PKG_REGISTER=yes in DEPENDS_ARGS knob.
	A reason for the code was to overwrite an exist port instalation.
	Now we have portupgrade tool and the code prevent us of right
	working of the tool - we have got stale ports records as a result. 
>How-To-Repeat:
	
	If you have an old expat2 version:
	cd /usr/ports/net/asterisks-devel
	make install

	You silently will have two records for expat2.
>Fix:

	

--- bsd.port.mk.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.529
diff -u -r1.529 bsd.port.mk
--- bsd.port.mk	23 Feb 2006 15:37:20 -0000	1.529
+++ bsd.port.mk	15 Apr 2006 20:43:46 -0000
@@ -2925,12 +2925,6 @@
 DEPENDS_TARGET+=	clean
 DEPENDS_ARGS+=	NOCLEANDEPENDS=yes
 .endif
-.else
-DEPENDS_ARGS+=	FORCE_PKG_REGISTER=yes
-.endif
-.if defined(DEPENDS)
-# pretty much guarantees overwrite of existing installation
-.MAKEFLAGS:	FORCE_PKG_REGISTER=yes
 .endif
 
 ################################################################
--- bsd.port.mk.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FUrr0-000I6q-1t>