public inbox for gentoo-osx@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-osx] Attempt to use prefix on linux as secondary...
@ 2005-12-14 23:21 m h
  2005-12-14 23:27 ` Nathan
                   ` (4 more replies)
  0 siblings, 5 replies; 32+ messages in thread
From: m h @ 2005-12-14 23:21 UTC (permalink / raw
  To: gentoo-osx, Michael Haubenwallner

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

-- 
gentoo-osx@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2005-12-17 18:26 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 23:21 [gentoo-osx] Attempt to use prefix on linux as secondary m h
2005-12-14 23:27 ` Nathan
2005-12-15  1:03   ` m h
2005-12-15  1:48     ` m h
2005-12-15  2:34       ` Kito
2005-12-15  6:17         ` m h
2005-12-15  6:35           ` Kito
2005-12-15  2:34 ` Kito
2005-12-15  7:31 ` Grobian
     [not found] ` <1134637115.30023.36.camel@sapc154>
2005-12-15 19:15   ` [gentoo-osx] " m h
2005-12-15 23:27     ` m h
2005-12-16  0:35       ` m h
2005-12-16  0:59         ` m h
2005-12-16  1:51           ` m h
2005-12-16 12:18             ` Brian Harring
2005-12-16 19:10               ` m h
2005-12-16 12:26           ` Brian Harring
2005-12-16 12:34             ` Brian Harring
2005-12-16  5:19         ` Nathan
2005-12-16 12:10           ` Grobian
2005-12-16 12:13         ` Grobian
2005-12-16 12:19           ` Grobian
2005-12-16 19:13             ` m h
2005-12-16 19:12           ` m h
2005-12-16 12:20         ` Brian Harring
2005-12-16 19:39           ` m h
2005-12-16 19:48             ` m h
2005-12-17 13:49 ` [gentoo-osx] " Grobian
2005-12-17 14:27   ` Grobian
2005-12-17 16:37     ` m h
2005-12-17 16:48   ` m h
2005-12-17 18:25     ` Grobian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox