From takamune@avrl.mei.co.jp Wed Sep  8 03:18:41 1999
Return-Path: <takamune@avrl.mei.co.jp>
Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.102])
	by hub.freebsd.org (Postfix) with ESMTP id C9E5414CE7
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Sep 1999 03:18:36 -0700 (PDT)
	(envelope-from takamune@avrl.mei.co.jp)
Received: by bulls.mei.co.jp (8.9.3/3.7W) with ESMTP id TAA05970
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Sep 1999 19:17:08 +0900 (JST)
Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id TAA09345
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Sep 1999 19:17:07 +0900 (JST)
Received: by avrlgate1.avrl.mei.co.jp (8.6.10+2.4W/3.3W3-avrl3.0)
	id TAA19969; Wed, 8 Sep 1999 19:17:07 +0900
Received: by dream.avrl.mei.co.jp (8.9.3/3.6W-03/04/98-dream)
	id TAA91057; Wed, 8 Sep 1999 19:17:07 +0900 (JST)
Message-Id: <199909081017.TAA91057@dream.avrl.mei.co.jp>
Date: Wed, 8 Sep 1999 19:17:07 +0900 (JST)
From: takamune@avrl.mei.co.jp
Reply-To: takamune@avrl.mei.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: make DEPENDS_CLEAN=yes reinstall
X-Send-Pr-Version: 3.2

>Number:         13638
>Category:       ports
>Synopsis:       make DEPENDS_CLEAN=yes reinstall
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    asami
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep  8 03:20:01 PDT 1999
>Closed-Date:    Fri Sep 10 03:24:37 PDT 1999
>Last-Modified:  Fri Sep 10 03:24:54 PDT 1999
>Originator:     Kazutoki TAKAMUNE
>Release:        FreeBSD 3.3-RC i386
>Organization:
Matsushita Electric Industrial Co., Ltd.
>Environment:

FreeBSD 3.3-RC(Mon Sep  6 16:57:12 JST 1999)

>Description:

/usr/ports/../Makefile.inc has the next line:
	DEPENDS_CLEAN=	yes

Then "make reinstall" will break.

>How-To-Repeat:

% cd /usr/ports/japanese/ndtpd
% make install deinstall
(snip)
===>   Registering installation for ja-ndtpd-2.3.3
===>  Deinstalling for ja-ndtpd-2.3.3
% make reinstall
clean: not found
*** Error code 127

% make -n reinstall
/bin/rm -f /usr/ports/japanese/ndtpd/work/.install_done /usr/ports/japanese/ndtpd/work/.package_done
DEPENDS_TARGET=reinstall clean make install

>Fix:

Please quate ${DEPENDS_TARGET} in ports/Mk/bsd.port.mk.
--- ports/Mk/bsd.port.mk.orig	Wed Sep  8 19:00:00 1999
+++ ports/Mk/bsd.port.mk	Wed Sep  8 19:00:00 1999
@@ -1893,7 +1893,7 @@
 
 # Patch-libtool
 #
-# Special target to automagically make libtool using ports use the
+# Special target to automatically make libtool using ports use the
 # libtool port.  See above for default values of LIBTOOLFILES.
 
 .if !target(patch-libtool)
@@ -1922,7 +1922,7 @@
 .if !target(reinstall)
 reinstall:
 	@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
-	@DEPENDS_TARGET=${DEPENDS_TARGET} ${MAKE} install
+	@DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} install
 .endif
 
 # Deinstall

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->asami  
Responsible-Changed-By: cpiazza 
Responsible-Changed-When: Wed Sep 8 15:32:25 PDT 1999 
Responsible-Changed-Why:  
bsd.port.mk is asami's baby. 
State-Changed-From-To: open->closed 
State-Changed-By: asami 
State-Changed-When: Fri Sep 10 03:24:37 PDT 1999 
State-Changed-Why:  
Thanks, will commit! 
>Unformatted:
