On Mon, 2006-08-07 at 09:52 -0500, Andrew Gaffney wrote: > Edward Catmur wrote: > > Is it possible to get Portage (or ebuild) to build a package for > > installation into /opt? If not, how much work would that be? > > > > What would be great would be to have emerge --optinstall package, that > > installs the package into /opt/$PV and doesn't create a vdb entry... > > feasible? > > Possible, sure: > > emerge -B package > mkdir /opt/package > tar -C /opt/package -xjf /usr/portage/packages/All/package-ver.tar.bz2
Yeah, but the internals'd be screwy; hardcoded paths would point to the /-based locations. Maybe (in effect) passing --prefix=/opt/$P to configure? > Smart, not really. Using portage to install packages that are outside of > portage's control is kinda silly. If you want to do that, build it by hand or > use a pre-compiled package such as a RPM or DEB from the author's site. But using portage lets you use emerge's dependency resolution, build system (ccache, distcc, etc), plus Gentoo patches and other fixes. With a rpm or deb you don't have the faintest clue what you're getting... Ed -- [email protected] mailing list
