From owner-freebsd-ports@FreeBSD.ORG Thu Nov 30 09:24:00 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50DCF16A403 for ; Thu, 30 Nov 2006 09:24:00 +0000 (UTC) (envelope-from vincent@xtra-net.org) Received: from ns1.xtra-net.be (ns1.xtra-net.be [195.162.200.90]) by mx1.FreeBSD.org (Postfix) with SMTP id 2920643CAA for ; Thu, 30 Nov 2006 09:23:49 +0000 (GMT) (envelope-from vincent@xtra-net.org) Received: (qmail 24466 invoked from network); 30 Nov 2006 09:23:55 -0000 Received: from unknown (HELO sbepfkaa.srv.xtra-net.be) (172.16.66.66) by 0 with SMTP; 30 Nov 2006 09:23:55 -0000 Received: (qmail 31925 invoked from network); 30 Nov 2006 09:22:43 -0000 Received: from localhost (HELO 172.16.66.74) (127.0.0.1) by 0 with SMTP; 30 Nov 2006 09:22:43 -0000 Received: from 172.16.9.1 (proxying for 193.178.209.213) (SquirrelMail authenticated user 720616030) by 172.16.66.74 with HTTP; Thu, 30 Nov 2006 10:22:43 +0100 (CET) Message-ID: <42185.172.16.9.1.1164878563.squirrel@172.16.66.74> In-Reply-To: <20061130075028.GA22164@xor.obsecurity.org> References: <39215.172.16.9.1.1164806110.squirrel@172.16.66.74> <20061130075028.GA22164@xor.obsecurity.org> Date: Thu, 30 Nov 2006 10:22:43 +0100 (CET) From: "Vincent Blondel" To: ports@FreeBSD.org User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: ports@freebsd.org, Vincent Blondel , current@freebsd.org Subject: Re: DESTDIR problems ... 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: Thu, 30 Nov 2006 09:24:00 -0000 On Thu, November 30, 2006 08:50, Kris Kennaway wrote: On Wed, Nov 29, 2006 at 02:15:10PM +0100, Vincent Blondel wrote: > > Hello, > > > I just finalized a Makefile making a complete apache jail machine. For > this I used a common > > 'make DESTDIR=jail_path install clean' > > > But I noticed this does not work with all ports. For info, these packages > give me problems perl5.8 m4 p5-Locale-gettext autoconf259 apache20. > > Nevertheless, I found a workaround by first making a package and install > it after in the jail machine. > > For example, I noticed 'install phase' (apache20) makes problems with > variable PREFIX that is not defined with PREFIX=DESTDIR+PREFIX. This is > just an example but there are others. > > Can somebody say me if these problems are known, if these bugs are being > solved ?? This was sent to the wrong list; the freebsd-ports mailing list is --> that way. Anyway, DESTDIR support is incomplete and further work seems to have stalled. The easiest thing to do is either a) mount the ports tree inside your jail (e.g using nullfs) and build it "as normal" I tried earlier to mount some nfs shares but I saw on the net this does not seem possible from within a jail. I did not know it was possible with nullfs fs. I will try it and this is sure a solution for my problem. b) Use precompiled packages within your jail, e.g. from the FTP site using pkg_add -r or 'make package' outside the jail. this is not always easy to add precompiled ports when I have to be asolutely sure all paramaters I'd like to have are well included in this package ... like PAM, SASL, GSSAPI, LDAP, KRB5. Furthermore, I do not think there are some precompiled packages for ports like JDK. Kris Many thanks Kris, Vincent.