Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-osx
Navigation:
Lists: gentoo-osx: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-osx@g.o
From: Kito <kito@g.o>
Subject: Re: [PREFIX] portage 2.1.11 bootstraping script
Date: Sat, 18 Mar 2006 11:04:10 -0600
On Mar 17, 2006, at 8:14 PM, m h wrote:

> Folks
>
> Here's my script for trying portage.  I'm running on RHEL4 and getting
> the problems I've sent earlier.  If you've got a few minutes try it
> out on your computer.  Let me know if it works for you ;)
>
> #!/bin/sh
>
> export PREFIX=/tmp/Mar17
> #this directory has portage and the ebuild tree from the wiki
> #unzipped here
> #it also has a copy of the normal portage profiles in "normal- 
> profiles"
>
> export MYBASE=/home/spike/portage
> export TREE=${MYBASE}/portage-alt-prefix
> export PORTCODE=${MYBASE}/portage-prefix-2.1.11
> GROUP=spike
>
> cd $PORTCODE
> #./configure --prefix=${PREFIX} --with-user=`whoami`
> --with-group=${GROUP} --sysconfdir=${PREFIX}/etc
> --with-rootuser=`whoami` --with-rootuid=`id -u`
> --with-offset-prefix=${PREFIX}

Why this first configure with the bad ${PREFIX} option?

> ./configure --prefix=${PREFIX}/usr --with-user=`whoami`
> --with-group=${GROUP} --sysconfdir=${PREFIX}/etc
> --with-rootuser=`whoami` --with-rootuid=`id -u`
> --with-offset-prefix=${PREFIX} --with-wheelgroup=${GROUP}
> --with-wheelgid=`id -g`
> make
> make install
>
> cd ${PREFIX}
> mkdir -p usr/portage
> cp -r ${TREE}/* usr/portage
>
> export PATH=${PREFIX}/usr/bin:${PREFIX}/usr/sbin:${PATH}

Keep in mind, setting the PATH in the shell is only for your benefit  
and has no effect on the PATHs available to portage. Be sure to set  
this using the DEFAULT_PATH var in make.conf or your profile.

>
> mkdir etc
> cp ${PORTCODE}/cnf/make.conf etc/
>

Ok, if you are having to manually create ${PREFIX}/etc, the make  
install target of portage is failing. Can you run make install again  
and log it and/or watch very carefully what is getting installed and  
where?

> #SET PREFIX in make.conf
> #PREPEND PREFIX TO A FEW PLACES
>
> mkdir -p ${PREFIX}/etc/portage
>

This directory should also have been created during make install.

--Kito




-- 
gentoo-osx@g.o mailing list


Replies:
Re: [PREFIX] portage 2.1.11 bootstraping script
-- m h
References:
[PREFIX] portage 2.1.11 bootstraping script
-- m h
Navigation:
Lists: gentoo-osx: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[PREFIX] portage 2.1.11 bootstraping script
Next by thread:
Re: [PREFIX] portage 2.1.11 bootstraping script
Previous by date:
[PREFIX] portage 2.1.11 bootstraping script
Next by date:
[PREFIX] Renaming of ${DEST}


Updated Jun 17, 2009

Summary: Archive of the gentoo-osx mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.