Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: OSX
Attempt to use prefix on linux as secondary...
 

Index | Next | Previous | View Flat


sesquile at gmail

Dec 14, 2005, 4:21 PM


Views: 2747
Permalink
Attempt to use prefix on linux as secondary...

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 [at] gentoo mailing list

Subject User Time
Attempt to use prefix on linux as secondary... sesquile at gmail Dec 14, 2005, 4:21 PM
    Re: Attempt to use prefix on linux as secondary... nathan.stocks at gmail Dec 14, 2005, 4:27 PM
        Re: Re: Attempt to use prefix on linux as secondary... nathan.stocks at gmail Dec 15, 2005, 10:19 PM
        Re: Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 16, 2005, 5:10 AM
        Re: Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 16, 2005, 5:13 AM
            Re: Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 16, 2005, 5:19 AM
                Re: Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 16, 2005, 12:13 PM
            Re: Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 16, 2005, 12:12 PM
        Re: Re: Attempt to use prefix on linux as secondary... ferringb at gentoo Dec 16, 2005, 5:18 AM
            Re: Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 16, 2005, 12:10 PM
        Re: Re: Attempt to use prefix on linux as secondary... ferringb at gentoo Dec 16, 2005, 5:20 AM
            Re: Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 16, 2005, 12:39 PM
        Re: Re: Attempt to use prefix on linux as secondary... ferringb at gentoo Dec 16, 2005, 5:26 AM
            Re: Re: Attempt to use prefix on linux as secondary... ferringb at gentoo Dec 16, 2005, 5:34 AM
        Re: Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 16, 2005, 12:48 PM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 14, 2005, 6:03 PM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 14, 2005, 6:48 PM
    Re: Attempt to use prefix on linux as secondary... kito at gentoo Dec 14, 2005, 7:34 PM
    Re: Attempt to use prefix on linux as secondary... kito at gentoo Dec 14, 2005, 7:34 PM
        Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 14, 2005, 11:17 PM
    Re: Attempt to use prefix on linux as secondary... kito at gentoo Dec 14, 2005, 11:35 PM
    Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 15, 2005, 12:31 AM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 15, 2005, 12:15 PM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 15, 2005, 4:27 PM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 15, 2005, 5:35 PM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 15, 2005, 5:59 PM
    Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 15, 2005, 6:51 PM
    Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 17, 2005, 6:49 AM
        Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 17, 2005, 7:27 AM
            Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 17, 2005, 9:37 AM
        Re: Attempt to use prefix on linux as secondary... sesquile at gmail Dec 17, 2005, 9:48 AM
    Re: Attempt to use prefix on linux as secondary... grobian at gentoo Dec 17, 2005, 11:25 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.