From owner-freebsd-ports@FreeBSD.ORG Thu Apr 15 09:54:40 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 A710A16A4CE for ; Thu, 15 Apr 2004 09:54:40 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DC3543D2F for ; Thu, 15 Apr 2004 09:54:35 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id B59A33BC54; Thu, 15 Apr 2004 18:54:32 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i3FGooCm003416; Thu, 15 Apr 2004 18:50:50 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost)i3FGooRP003415; Thu, 15 Apr 2004 18:50:50 +0200 (CEST) (envelope-from schweikh) Date: Thu, 15 Apr 2004 18:50:50 +0200 From: Jens Schweikhardt To: Alexander Leidinger Message-ID: <20040415165050.GA992@schweikhardt.net> References: <200404131516.i3DFGMJA078941@green.homeunix.org> <20040413181311.GA5858@schweikhardt.net> <20040414210630.4353e27c@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040414210630.4353e27c@Magellan.Leidinger.net> User-Agent: Mutt/1.5.6i cc: freebsd-ports@freebsd.org 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: Thu, 15 Apr 2004 16:54:40 -0000 On Wed, Apr 14, 2004 at 09:06:30PM +0200, 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. For 10.000 ports this is a lot of # work. Any idea how to solve this problem? I realize that this is next to impossible (but I like to say one's personality grows with the herculean task you succeed at :-) I can think of at least two possible ways to avoid messing with all third-party Makefiles. * do a regular install with DESTIR=/, see what has been installed (maybe use PLIST), use that information to bring the files to DESTDIR. Yup, that's gonna be tricky for stuff in /var/db/pkg, but it does not look flat out impossible. * chroot magic Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)