From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1FKerJ-0001XP-3a
	for garchives@archives.gentoo.org; Sat, 18 Mar 2006 17:04:57 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2IH4Xic017746;
	Sat, 18 Mar 2006 17:04:33 GMT
Received: from poober.local (cpe-24-27-15-174.austin.res.rr.com [24.27.15.174])
	by robin.gentoo.org (8.13.5.20060308/8.13.5) with ESMTP id k2IH4WDD006876
	for <gentoo-osx@lists.gentoo.org>; Sat, 18 Mar 2006 17:04:32 GMT
Received: from [127.0.0.1] (localhost [127.0.0.1])
	by poober.local (Postfix) with ESMTP id 28896351633
	for <gentoo-osx@lists.gentoo.org>; Sat, 18 Mar 2006 11:04:12 -0600 (CST)
Precedence: bulk
List-Post: <mailto:gentoo-osx@lists.gentoo.org>
List-Help: <mailto:gentoo-osx+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-osx+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-osx+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-osx.gentoo.org>
X-BeenThere: gentoo-osx@gentoo.org
Reply-to: gentoo-osx@lists.gentoo.org
Mime-Version: 1.0 (Apple Message framework v749)
In-Reply-To: <e36b84ee0603171814o9e22dedu91c2650b8b9c847e@mail.gmail.com>
References: <e36b84ee0603171814o9e22dedu91c2650b8b9c847e@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <57BCC2B7-4232-4AC6-AF8A-E9D3D3905538@gentoo.org>
Content-Transfer-Encoding: 7bit
From: Kito <kito@gentoo.org>
Subject: Re: [gentoo-osx] [PREFIX] portage 2.1.11 bootstraping script
Date: Sat, 18 Mar 2006 11:04:10 -0600
To: gentoo-osx@lists.gentoo.org
X-Mailer: Apple Mail (2.749)
X-Archives-Salt: d53ab9f7-746f-4e37-bb74-935ef9025994
X-Archives-Hash: 7927ef1d8e1a31329cadfb0d1e30f9b5


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@gentoo.org mailing list