From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 9 22:30:25 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D776034B for ; Tue, 9 Oct 2012 22:30:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 963D68FC1C for ; Tue, 9 Oct 2012 22:30:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q99MUPJZ043668 for ; Tue, 9 Oct 2012 22:30:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q99MUPCt043667; Tue, 9 Oct 2012 22:30:25 GMT (envelope-from gnats) Resent-Date: Tue, 9 Oct 2012 22:30:25 GMT Resent-Message-Id: <201210092230.q99MUPCt043667@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rob Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 151FCF23 for ; Tue, 9 Oct 2012 06:27:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5FAF79013E for ; Mon, 8 Oct 2012 21:56:15 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q98LuEEf012016 for ; Mon, 8 Oct 2012 21:56:14 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q98LuEAh011995; Mon, 8 Oct 2012 21:56:14 GMT (envelope-from nobody) Message-Id: <201210082156.q98LuEAh011995@red.freebsd.org> Date: Mon, 8 Oct 2012 21:56:14 GMT From: Rob To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/172547: bsd.destdir.mk fails when DESTDIR is set X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2012 22:30:25 -0000 >Number: 172547 >Category: ports >Synopsis: bsd.destdir.mk fails when DESTDIR is set >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: Tue Oct 09 22:30:24 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Rob >Release: CURRENT r241195 >Organization: >Environment: FreeBSD xs36v 10.0-CURRENT FreeBSD 10.0-CURRENT #3 r241195: Fri Oct 5 23:09:26 UTC 2012 root@nfsboot:/usr/obj/usr/src/sys/CUSTOM.shuttle amd64 >Description: When bsd.destdir.mk iterates over $_DESTDIR_MOUNT_LIST it runs: # realpath $_destdir/__temp__ Due to changes in realpath (prior to June 2012) this causes a non-zero exit. This then causes the make to fail. >How-To-Repeat: On a freshly built installation, attempt to perform a # make config DESTDIR=/usr/local/jails/imap1 ===> Creating some important subdirectories realpath: /usr/local/jails/imap1/___temp___: No such file or directory *** [do-chroot] Error code 1 >Fix: Change /usr/ports/Mk/bsd.destdir.mk _full_dest_path=`${REALPATH} $${_destdir}/$${_dest_path}`; \ to: _full_dest_path=`${REALPATH} -q $${_destdir}/$${_dest_path} || :`; \ This may not be the proper fix, but it works around the issue. >Release-Note: >Audit-Trail: >Unformatted: