From owner-freebsd-ports@freebsd.org Thu Mar 10 13:38:46 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E92F9ACA6A9 for ; Thu, 10 Mar 2016 13:38:46 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8D9BE7C for ; Thu, 10 Mar 2016 13:38:46 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for freebsd-ports@freebsd.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1ae0nc-001AVW-Bx>; Thu, 10 Mar 2016 14:38:44 +0100 Received: from [141.89.176.200] (helo=hermann) by inpost2.zedat.fu-berlin.de (Exim 4.85) for freebsd-ports@freebsd.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (envelope-from ) id <1ae0nc-000Cvj-4h>; Thu, 10 Mar 2016 14:38:44 +0100 Date: Thu, 10 Mar 2016 14:37:39 +0100 From: "O. Hartmann" To: freebsd-ports@freebsd.org Subject: poudriere and MAKEOBJDIRPREFIX Message-ID: <20160310143739.3c21bbac@hermann> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 141.89.176.200 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2016 13:38:47 -0000 There are some issues with using MAKEOBJDIRPREFIX in poudriere I wasn't able to solve and I'd like to ask whether there is an official, still for me undiscovered way, to do so. The base system is running CURRENT. The intention is to have both CURRENT and 10-STABLE jails to build appropriate packages via poudriere. With CURRENT there is no problem, using the canonical /usr/src and/usr/obj infrastructure works as well as building the package repositorium. The command line env MAKEOBJDIRPREFIX=/some/place make -j12 buildworld while residing within the sources of 10-STABLE from within a csh environment gives me the object tree of FreeBSD 10-STABLE as expected. Then I'd like to use this obj tree to build the jail needed for ports compliant with 10-STABLE, so I issue env MAKEOBJDIRPREFIX=/some/place poudriere jail -c -j 10-stable-amd64 \ -a amd64 -v stable/10 -m src=/somesrc/srcplace/ In poudriere.conf I added export MAKEOBJDIRPREFIX=$MAKEOBJDIRPREFIX as recommended in some posts I found googling for a solution. Please have in mind that I use csh - the export and poudriere's environment is obviously sh. This fails, the PATH is always cut down to /somesrc/srcplace/, missing the prepending portion taken from MAKEOBJDIRPREFIX - it is set to zero length it seems. Ommitting env MAKEOBJDIRPREFIX=/some/place to the poudriere command as shown above results in "usr/obj" being prepended. This seems odd! The only sollution to this was to give the specific jail its private 10-stable-amd64-poudriere.conf. But this seems to be not the correct way to do so, since MAKEOBJDIRPREFIX is supposed to be set in the environment. What am I missing here? Thanks and regards, Oliver