From owner-freebsd-ports Mon Nov 12 21: 0: 5 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3B27937B405 for ; Mon, 12 Nov 2001 21:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAD503X48774; Mon, 12 Nov 2001 21:00:03 -0800 (PST) (envelope-from gnats) Date: Mon, 12 Nov 2001 21:00:03 -0800 (PST) Message-Id: <200111130500.fAD503X48774@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Garance A Drosihn Subject: Re: ports/31862: [PATCH] 'make search' problem if /usr/obj/usr/ports/* exist Reply-To: Garance A Drosihn Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/31862; it has been noted by GNATS. From: Garance A Drosihn To: freebsd-gnats-submit@FreeBSD.org Cc: gad@FreeBSD.org, portmgr@FreeBSD.org Subject: Re: ports/31862: [PATCH] 'make search' problem if /usr/obj/usr/ports/* exist Date: Mon, 12 Nov 2001 23:56:05 -0500 Here's a better patch to fix the problem with 'make search', as described in the PR. It still amazes me that no one had run into this before. This is to /usr/ports/Mk/bsd.port.subdir.mk --- Mk/bsd.port.subdir.mk.orig Thu Jun 28 23:39:54 2001 +++ Mk/bsd.port.subdir.mk Mon Nov 12 22:25:59 2001 @@ -248,7 +248,7 @@ search: ${PORTSDIR}/INDEX - @here=`pwd`; \ + @here="${.CURDIR}"; \ cd ${PORTSDIR}; \ top=`pwd`; \ there=`echo "$$here/" | sed s%$$top%${PORTSDIR}%`; \ In limited testing, this also seems to fix the problem which was described in PR 18455: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/18455 (and the patch in that PR isn't quite right for what it is trying to fix, either). If no one objects to this change, I'll take ownership of both PR's, apply the massive 1-line update, and see what happens. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message