From owner-freebsd-ports@FreeBSD.ORG Wed Apr 14 13:03:04 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC05516A4CE for ; Wed, 14 Apr 2004 13:03:04 -0700 (PDT) Received: from smtp0.server.rpi.edu (smtp0.server.rpi.edu [128.113.53.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9280A43D58 for ; Wed, 14 Apr 2004 13:03:04 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp0.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i3EK33Ed001197; Wed, 14 Apr 2004 16:03:04 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20040414210630.4353e27c@Magellan.Leidinger.net> References: <200404131516.i3DFGMJA078941@green.homeunix.org> <20040413181311.GA5858@schweikhardt.net> <20040414210630.4353e27c@Magellan.Leidinger.net> Date: Wed, 14 Apr 2004 16:03:02 -0400 To: Alexander Leidinger , freebsd-ports@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) Subject: Re: ports and DESTDIR (was: Second "RFC" on pkg-data idea for ports) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 20:03:05 -0000 At 9:06 PM +0200 4/14/04, Alexander Leidinger wrote: >On Tue, 13 Apr 2004 20:13:11 +0200 >Jens Schweikhardt wrote: > >> For starters: one real BIG problem (at least for me) the ports system >> still has is a lack of DESTDIR support. We can >> >> make installkernel DESTDIR=/foo >> make installworld DESTDIR=/foo >> >> but try this with ports and let all hope go. There is even a PR in the >> queue that solves some issues, but it has been left to rot for years, >> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/28155 > >I fail to see how you want to solve the DESTDIR= issue for >every installation procedure we have in the ports tree. You >have to convince every autoconf, automake, custom made, what >ever "makefile" to respect DESTDIR in his "make install" target. Another complication is that many ports include cross-references to themselves or other programs "on the system". If you install to /otherhost/usr/local/bin, then those ports will embed that installation path in the files they install. When you then run it on the other system, it references /other/usr/local instead of the /usr/local that you want it to use. I know I have been bitten by this on some occasions, although I can't think of a specific example right now... >For 10.000 ports this is a lot of work. Any idea how to solve >this problem? I have wondered if something could be done with chroot, but I have not tried to figure out the details... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu