From owner-freebsd-ports@FreeBSD.ORG Fri Nov 21 07:00:24 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B855C1065670 for ; Fri, 21 Nov 2008 07:00:24 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 85D5B8FC0A for ; Fri, 21 Nov 2008 07:00:24 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 8E035AFC1C6; Thu, 20 Nov 2008 21:42:30 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Fri, 21 Nov 2008 07:42:09 +0100 User-Agent: KMail/1.9.7 References: <20081120163330.amssmoq1c8ksskg0@www.riboflavin.net> In-Reply-To: <20081120163330.amssmoq1c8ksskg0@www.riboflavin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811210742.12124.fbsd.questions@rachie.is-a-geek.net> Cc: "Marcus I. Ryan" , freebsd-ports@freebsd.org Subject: Re: Jails and common ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2008 07:00:24 -0000 On Thursday 20 November 2008 23:33:30 Marcus I. Ryan wrote: > However, I started hitting issues with libtool and friends. The > children would not find them, and would go ahead and start installing > their own local copies of those ports. Turns out quite a few tools > are defined in /usr/ports/Mk/* and are defined relative to LOCALBASE. > If I leave LOCALBASE and PREFIX alone in the child jails so they'll > use /usr/local for their specific ports, I can't recognize and use > other ports like libtool installed in /opt; it doesn't seem right to > set LOCALBASE in the child jails since I want them to use /usr/local > for anything I haven't provided. Yeah, I feel your pain. You can't really do this with ports that require libraries from other ports. The ports system was created with the assumption that LOCALBASE (and PREFIX) for one installation (one PKG_DBDIR) is the same. There are some exceptions, or rather, for some things it can work but libraries in general don't and libtool is even pickier. I only have bash-static, sudo and vim shared in /opt, as they are stand-alone and no ports I use depend on them. The only thing I can think of that would work for you, is to use unionfs for /usr/local. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.