Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2012 05:21:49 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167085: [patch] [bsd.port.mk] fix make reinstall
Message-ID:  <201204190521.q3J5LnNZ043950@red.freebsd.org>
Resent-Message-ID: <201204190530.q3J5U8fo037560@freefall.freebsd.org>

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

>Number:         167085
>Category:       ports
>Synopsis:       [patch] [bsd.port.mk] fix make reinstall
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 19 05:30:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9.0-RELEASE
>Organization:
n/a
>Environment:
FreeBSD fuji-9.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
make reinstall has been broken since at least rev # 1.258 ( http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk#rev1.258 ). The attached change does the minimum work necessary to make ``make reinstall`` work.
>How-To-Repeat:
cd /usr/ports/benchmarks/xdd
make install
make reinstall
>Fix:


Patch attached with submission follows:

diff --git a/bsd.port.mk b/bsd.port.mk
index 3be8461..eee7e3c 100644
--- a/bsd.port.mk
+++ b/bsd.port.mk
@@ -4469,7 +4469,7 @@ checkpatch:
 .if !target(reinstall)
 reinstall:
 	@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
-	@cd ${.CURDIR} && DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} install
+	@cd ${.CURDIR} && DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} -DFORCE_PKG_REGISTER install
 .endif
 
 # Deinstall


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204190521.q3J5LnNZ043950>