On Sun, 3 May 2009 15:02:41 +0200 YoYo siska <y...@gl.ksp.sk> wrote: > > For packages that use autotools or a similar ./configure script which > accepts --prefix (and the ebuild uses their make install and does not > copy files itself...), you can always try: > > EXTRA_ECONF="--prefix=/opt/..." emerge package... > > though I never tried that, and I don't know where exactly on the > ./configure line it ends and how configure scripts handle conflicting > options, because portage adds its own options for the paths... > Also my guess is that portage sets the more specific options like > --exec-prefix, --bindir, ... so you might have to set them directly... >
The EXTRA_ECONF variable was one of the first things I tried. It doesn't work. No matter how it is set, the install prefix is still /usr. As described in the ebuild man page, EXTRA_ECONF comes immediately after the directory options and before the rest of the configure options. I can't see any good purpose for it that the ordinary USE flags cannot address. The best method to solve this problem is probably a custom ebuild and overlay. But I've already written a script, as described in an earlier post, to process and relocate binary packages that are built by emerge. This script will work for most, but not all packages. But I know which ones can easily be moved and which ones can't. Frank Peters