Kito/others who may be interested-- This probably belongs in alt-gentoo, but since it seems like half the posts there are flames, I thought I'd post here.
I've attempted to use Haubi's toolbox with the tarballs (portage and prefixed overlay) provided by Kito to install a prefix version of portage on FC3 (fedora core 3). I can't run the emerge command yet (not running as root), but I thought I'd post what I've done since others might find it useful. I can also put this on the wiki if necessary. It'd be nice to have general directions on how to setup a prefixed environment that are specific to any os (mac,linux, etc). I'd also like feedback/suggestions. A question I have is if it is ok to just use the /etc directory from a stage1? Do I need anything else? ===========Steps for prefix================ * download toolsbox from http://dev.gentoo.org/~ferringb/portage/prefix/haubi/ * download portage and prefixed overlay from http://dev.gentoo.org/~kito/distfiles/ * cd /data1/portage/dec14/toolsbox-4-20050927 * export PREFIX=/data1/portage/dec14/prefix * gmake config PREFIX=$PREFIX DISTURL=http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles portage_BUILD * mkdir buildroot/distfiles * cp ../../kito/portage-2.0.53.03.tar.gz buildroot/distfiles/ * touch buildroot/portage/portage.fetched.done * change portage/portage.build * change line version to "VERSION=2.0.53.03" * toolsbox will still fail to install portage... FIXME! * gmake portage * wait for a while (3 hours...) * Everything but portage should build... install portage manually *./configure --prefix=/data1/portage/dec14/prefix/usr --with-offset-prefix=/data1/portage/dec14/prefix --with-user=mharrison --with-rootuser=mharrison --with-group=dev --with-wheelgroup=dev * make * make install * cp /etc directory from stage1 (downloaded from gentoo.org) into ${PREFIX} *cp ../../stage/stageUnzipped/etc -r . * ln -s /data1/portage/haubi/secondary-portage-snapshot-20050927/profiles/default-secondary/linux/x86 make.profile * copy prefix overlay into /usr/portage * cp -r /data1/portage/kito/prefix-overlay ${PREFIX}/usr/portage * edit etc/make.conf. uncomment ACCEPT_KEYWORDS="~arch" ======== end ============ At this point emerge -av system gives the following: niger:mharrison[1052] /data1/portage/dec14/prefix/usr/lib/portage/bin/emerge -av system *** You are not in the portage group. You may experience cache problems *** due to permissions preventing the creation of the on-disk cache. *** Please add this user to the portage group if you wish to use portage. Invalid package name in package.provided: virtual/libc Invalid package name in package.provided: virtual/linux-sources Invalid package name in package.provided: virtual/os-headers !!! Problem with sandbox binary. Disabling... --- 'profiles/arch.list' is empty or not available. Empty portage tree? emerge: root access required. I'll remove the check for root access (since I'm doing a prefixed install that shouldn't matter). Also, Haubi, if you are reading this I tried to modify toolsbox to install the 2.0 prefix portage but I get the following: niger:mharrison[1082] gmake portage building portage --prefix=/data1/portage/dec14/prefix/usr --with-offset-prefix=/data1/portage/dec14/prefix --with-user=mharrison --with-rootuser=mharrison --with-group=dev --with-wheelgroup=dev checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /data1/portage/dec14/prefix/toolsbox-4-patchespre.20051214/i686-pc-linux-gnu/bin/ginstall -c checking whether build environment is sane... yes checking for gawk... gawk checking whether gmake sets $(MAKE)... yes configure: error: source directory already configured; run "make distclean" there first gmake: *** [/data1/portage/dec14/toolsbox-4-20050927/buildroot/portage/portage.niger.spikesource.com.builded] Error 1 I've added the line configureflags="${configureflags} --prefix=${PREFIX}/usr --with-offset-prefix=${PREFIX}" (since the 2.0 prefix version requires that) to the src_build section of portage.build, but I don't know what else I need to do to get it to install via toolsbox. Apparently it installed by hand though. Any hints? Hopefully this is helpful to other people who want to try prefix on non-mac environments. thanks matt -- [email protected] mailing list
