From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 1 09:40:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C2F616A469 for ; Fri, 1 Feb 2008 09:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F076213C4EA for ; Fri, 1 Feb 2008 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m119e1ll072538 for ; Fri, 1 Feb 2008 09:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m119e1Ox072537; Fri, 1 Feb 2008 09:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 1 Feb 2008 09:40:01 GMT Resent-Message-Id: <200802010940.m119e1Ox072537@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, dirk.meyer@dinoex.sub.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C466B16A474 for ; Fri, 1 Feb 2008 09:30:28 +0000 (UTC) (envelope-from dm@home3.dinoex.sub.de) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4F4D813C45A for ; Fri, 1 Feb 2008 09:30:27 +0000 (UTC) (envelope-from dm@home3.dinoex.sub.de) Received: from home3.dinoex.sub.de (home3.dinoex.sub.de [194.45.71.20]) by uucp.dinoex.sub.de (8.14.1/8.14.0) with ESMTP id m118xCsm011100 for ; Fri, 1 Feb 2008 09:59:28 +0100 (CET) (envelope-from dm@home3.dinoex.sub.de) Received: (from dm@localhost) by home3.dinoex.sub.de (8.14.2/8.14.2/Submit) id m118xDxs044619; Fri, 1 Feb 2008 09:59:13 +0100 (CET) (envelope-from dm) Message-Id: <200802010859.m118xDxs044619@home3.dinoex.sub.de> Date: Fri, 1 Feb 2008 09:59:13 +0100 (CET) From: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/120200: ports with custom MTREE fails in bsd.port.mk X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dirk.meyer@dinoex.sub.org List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 09:40:02 -0000 >Number: 120200 >Category: ports >Synopsis: ports with custom MTREE fails in bsd.port.mk >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 01 09:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 6.3-STABLE >Organization: privat >Environment: FreeBSD 6.3-STABLE A Clean/Empty /usr/local/ >Description: in bsd.port.mk there is a "cd" command that fails. for the ports in question this code should not be reached. >How-To-Repeat: Build a port with MTREE file. e.G. cd /usr/posrt/net/mpd && make clean install ===> Installing for mpd-3.18_5 ===> Generating temporary packing list ===> Checking if net/mpd already installed cd: can't cd to /usr/local/share/nls *** Error code 2 Stop in /usr/ports/net/mpd. === package mpd-3.18_5 was not installed >Fix: Apply a check like this example: --- bsd.port.mk.orig 2007-11-18 08:35:32.000000000 +0100 +++ bsd.port.mk 2008-02-01 09:58:12.000000000 +0100 @@ -2239,6 +2239,7 @@ .else MTREE_FILE= ${PORTSDIR}/Templates/BSD.local.dist .endif +MTREE_FILE_DEFAULT=yes .endif MTREE_CMD?= /usr/sbin/mtree MTREE_ARGS?= -U ${MTREE_FOLLOWS_SYMLINKS} -f ${MTREE_FILE} -d -e -p @@ -3852,7 +3853,7 @@ exit 1; \ else \ ${MTREE_CMD} ${MTREE_ARGS} ${PREFIX}/ >/dev/null; \ - if [ ${PREFIX} = ${LOCALBASE} ]; then \ + if [ ${PREFIX} = ${LOCALBASE} -a "${MTREE_DEFAULT}" = "yes" ]; then \ cd ${PREFIX}/share/nls; \ ${LN} -shf C POSIX; \ ${LN} -shf C en_US.US-ASCII; \ >Release-Note: >Audit-Trail: >Unformatted: