From owner-freebsd-questions@FreeBSD.ORG Fri Nov 15 14:20:29 2013 Return-Path: Delivered-To: freebsd-questions@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 D814F1C4 for ; Fri, 15 Nov 2013 14:20:29 +0000 (UTC) Received: from tampoco.espindola.nl (tampoco.espindola.nl [149.210.133.191]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9D2062BDB for ; Fri, 15 Nov 2013 14:20:28 +0000 (UTC) Received: from [127.0.0.1] (corfu.internal.deze.org [192.168.1.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: frank) by tampoco.espindola.nl (Postfix) with ESMTPSA id 1607D372044 for ; Fri, 15 Nov 2013 15:11:05 +0100 (CET) Message-ID: <52862B79.5060603@deze.org> Date: Fri, 15 Nov 2013 15:11:05 +0100 From: Frank Volf User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20131028 Thunderbird/17.0.10 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Building ports in jails after staging support Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Nov 2013 14:20:29 -0000 Hi, I'm having a FreeBSD 9.1-RELEASE system with some jails. The jails have problems building/upgrading ports after staging support was added to the /usr/ports tree. I'm using portupgrade for the upgrades (but that is not political, if another tool does the job then that is fine as well). I searched the archives of this list and if I understood that there are two problem areas: 1) All jails share a union-mounted read-only copy of the /usr/ports tree, and staging tries by default to write in /usr/ports 2) My jails are build according to the description in the FreeBSD handbook and the symbolic link in the jails that points usr/local to ../s/usr-local is causing problems as well. I found several messages from people describing work-arounds (e.g. setting PACKAGES or NO_STAGE in /etc/make.conf), adjusting PREFIX in pkgtools.conf. Some messages seem to be contradicting each other (like NO_STAGE should not be defined), and some solution only solve one of the two problems. So, my question is simply: is there an official (future proof) way how to fix this? In other words, what should I do to get portupgrade or any other port mgmt tool working again in the jails with my setup? Regards, Frank