Date: Wed, 14 Apr 2004 16:03:02 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Alexander Leidinger <Alexander@Leidinger.net>, freebsd-ports@freebsd.org Subject: Re: ports and DESTDIR (was: Second "RFC" on pkg-data idea for ports) Message-ID: <p06020404bca348995845@[128.113.24.47]> In-Reply-To: <20040414210630.4353e27c@Magellan.Leidinger.net> References: <p0602040cbca10a7dbe52@[128.113.24.47]> <200404131516.i3DFGMJA078941@green.homeunix.org> <20040413181311.GA5858@schweikhardt.net> <20040414210630.4353e27c@Magellan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
At 9:06 PM +0200 4/14/04, Alexander Leidinger wrote: >On Tue, 13 Apr 2004 20:13:11 +0200 >Jens Schweikhardt <schweikh@schweikhardt.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06020404bca348995845>