From owner-freebsd-ports@FreeBSD.ORG Mon Oct 14 15:41:32 2013 Return-Path: Delivered-To: freebsd-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 ESMTP id 3CF03A35 for ; Mon, 14 Oct 2013 15:41:32 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 17FAC212E for ; Mon, 14 Oct 2013 15:41:32 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id lj1so7740216pab.1 for ; Mon, 14 Oct 2013 08:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jHgrULcHX60gwOK35z6SoSysvfIle65SKoFY8r5hLZs=; b=LJyyOoRN6TqKHd9QzBobX2mdKNA0IlC3XwOQzNpdx1ElsuZEMoFo69WuP54Cwdm4k/ wIJ2S/9Ds0xU4jNiRnjuirbDxMXL/xhqyv7XXors75NGi+KsmO0tpYGVgqcDIT3PgWWw dDLrYRJkjMc/cL9+roMSMGHANP8y2ShjYRnxXQ/hxNmOh0NEzcUIkzoN5LCW4Kl/Saic /Ja2VokF3/lKEkY4pf2tg5cWyClynUIaw+InUeLom0z9H0iOtSq+zi9xsTXsI0T/Jpta G2t/CbtuggAEG0+zuhWKZSsozd1fXmzNgVW2I1r4KgCqvUrQOLCsBLAWBiWeByOVqxFK Fsyw== MIME-Version: 1.0 X-Received: by 10.68.98.101 with SMTP id eh5mr36605321pbb.65.1381765291772; Mon, 14 Oct 2013 08:41:31 -0700 (PDT) Received: by 10.70.98.197 with HTTP; Mon, 14 Oct 2013 08:41:31 -0700 (PDT) In-Reply-To: <525AADE4.6010007@heuristicsystems.com.au> References: <20131013105853.GA63463@doom-labs.net> <525A8AB5.9000102@FreeBSD.org> <20131013122217.GA87222@doom-labs.net> <20131013131901.GA55678@doom-labs.net> <525AADE4.6010007@heuristicsystems.com.au> Date: Mon, 14 Oct 2013 10:41:31 -0500 Message-ID: Subject: Re: stagedir vs. jail From: Scot Hetzel To: Dewayne Content-Type: text/plain; charset=ISO-8859-1 Cc: Ekkehard Gehm , FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Oct 2013 15:41:32 -0000 On Sun, Oct 13, 2013 at 9:27 AM, Dewayne wrote: > My setup is slightly different, where I do use as Matthew recommends, > nullfs is used without symlinks; and pkg_* and portmaster are used for > the build process. We've been using jails to build ports for different > architectures for years, the builds are currently on a FreeBSD 9.2Stable > (Built from source on Oct 8) system. > > Building all ports after a complete wipe, using the portmaster commands > fails due to missing file > + portmaster --no-term-title --no-confirm -H -K -D -g -G -B -v -m > __MAKE_CONF=/etc/make_P3.conf -m -DBUILD__PRODUCTION mail/sendmail > tar: etc/rc.d/saslauthd: Cannot stat: No such file or directory > tar: Error exit delayed from previous errors. > pkg_create: make_dist: tar command failed with code 256 > > In fact the file does exist: > # ls -lh /usr/staging/usr/local/etc/rc.d/saslauthd > -r-xr-xr-x 1 root wheel 940B Oct 14 00:55 > /usr/staging/usr/local/etc/rc.d/saslauthd > and not in /usr/local/etc/rc.d/ > > As you can see sendmail builds saslauthd as a prerequisite. The build > process also fails in the same way, missing file in etc/rc.d/... for > samba36, samba4, isc-dhcp42-server and cyrus-sasl2-saslauthd, but works > correctly for some 40 other packages. > > The make.conf includes: > WRKDIRPREFIX=/var/ports > DISTDIR=/distfiles > TMPDIR=/tmp > PACKAGES=/packages > STAGEDIR=/usr/staging > FAVORITE_COMPILER=gcc > DEFAULT_VERSIONS=perl5=5.16 python=2.7 python2=2.7 apache=22 > DISABLE_LICENSES=yes # Not that I want to, only that it prevented the > build (a PR existed for this) > WITH_CCACHE_BUILD=yes > MAKE_JOBS_UNSAFE=yes > > I suspect the problem lies within the if/then block ".if > !target(install-rc-script)" in bsd.port.mk, but lack the know-how to > proceed further. > I have sent PR 182972 regarding this issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=182972 The cause of the issue is due to setting STAGEDIR in /etc/make.conf and Mk/bsd.port.mk not undefining STAGEDIR when NO_STAGE is set. Which causes the install-rc-script to look in the STAGEDIR for the file. Scot