From owner-freebsd-questions@FreeBSD.ORG Sat Nov 23 12:31:10 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 822E22D6 for ; Sat, 23 Nov 2013 12:31:10 +0000 (UTC) Received: from uk1rly2283.eechost.net (uk1rly2283-a.eechost.net [217.69.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 250DF2610 for ; Sat, 23 Nov 2013 12:31:09 +0000 (UTC) Received: from [31.186.37.179] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1VkBzr-0000m5-V5; Sat, 23 Nov 2013 12:07:35 +0000 Received: from [192.168.63.1] (helo=steve.marelmo.com) by smtp.marelmo.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VkC3K-000Jgg-ND; Sat, 23 Nov 2013 12:11:10 +0000 Date: Sat, 23 Nov 2013 12:11:08 +0000 From: Steve O'Hara-Smith To: Frank Volf Subject: Re: Building ports in jails after staging support Message-Id: <20131123121108.02533a32a72bf17ad6ffd45a@sohara.org> In-Reply-To: <529083BA.7060601@deze.org> References: <52862B79.5060603@deze.org> <529083BA.7060601@deze.org> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Cc: freebsd-questions@freebsd.org 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: Sat, 23 Nov 2013 12:31:10 -0000 On Sat, 23 Nov 2013 11:30:18 +0100 Frank Volf wrote: > Anybody r this question? > I'm really struggling with it. Not directly, I stopped building ports inside jails (except for port building jails) some time back. These days I use poudriere on a build machine to build all the ports I want built with my chosen options and present them in a package repository which I export by http with thttpd (any web server will do). Then all my jails and machines (physical or virtual) have a file /usr/local/etc/pkg.conf with one line setting packagesite to point to my repository. Once set up it's very easy to manage, updating the repository is as simple as: poudriere ports -u poudriere bulk -f -j build Updating a jail or machine: pkg upgrade Possibly twice if pkg itself is updated. I have in the past needed to add a -f to force it to update everything but not for a while now so whatever caused that problem is probably fixed. The level of pain is vastly reduced compared to the old days of portupgrade. The only tricky bit is the need to use multiple repositories if you want to have multiple builds of the same port available which complicates the build arrangements a bit and the pkg configuration. I haven't needed to do that so I can't say just how fiddly it would be, but it looks to be fairly straightforward. > Regards, > > Frank > > Op 15-11-2013 15:11, Frank Volf schreef: > > > > 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 > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Steve O'Hara-Smith