From owner-freebsd-ports@FreeBSD.ORG Fri Dec 6 16:37:31 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47AB7C95 for ; Fri, 6 Dec 2013 16:37:31 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 8B7831D1C for ; Fri, 6 Dec 2013 16:37:29 +0000 (UTC) Received: (qmail 34159 invoked by uid 89); 6 Dec 2013 16:30:45 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@194.97.158.66) by mail.grem.de with ESMTPA; 6 Dec 2013 16:30:45 -0000 Date: Fri, 6 Dec 2013 17:30:46 +0100 From: Michael Gmelin To: Vick Khera Subject: Re: how to install into staging area correctly? Message-ID: <20131206173046.48dd4b39@bsd64.grem.de> In-Reply-To: References: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Ports List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2013 16:37:31 -0000 On Fri, 6 Dec 2013 11:06:59 -0500 Vick Khera wrote: > I have a port locally that does this to install a file so other ports > that depend on this can have something to depend on from the file > system. > > do-install: > ${CP} /dev/null ${LOCALBASE}/etc/rwde-base-installed > > > Lately it seems that the ports does a staging step, and the above > file is not found when building the package for that process. I > changed it to > > > do-install: > ${CP} /dev/null > ${STAGEDIR}${LOCALBASE}/etc/rwde-base-installed > > > Is this safe to use ${STAGEDIR} unconditionally like this? Should I be > using a different variable to install my file in the do-install step? I think you should use ${STAGEDIR}${PREFIX}, not ${LOCALBASE}. -- Michael Gmelin