public inbox for gentoo-osx@lists.gentoo.org
 help / color / mirror / Atom feed
From: Kito <kito@gentoo.org>
To: gentoo-osx@lists.gentoo.org
Subject: Re: [gentoo-osx] [PREFIX] portage 2.1.11 bootstraping script
Date: Sat, 18 Mar 2006 11:04:10 -0600	[thread overview]
Message-ID: <57BCC2B7-4232-4AC6-AF8A-E9D3D3905538@gentoo.org> (raw)
In-Reply-To: <e36b84ee0603171814o9e22dedu91c2650b8b9c847e@mail.gmail.com>


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



  reply	other threads:[~2006-03-18 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18  2:14 [gentoo-osx] [PREFIX] portage 2.1.11 bootstraping script m h
2006-03-18 17:04 ` Kito [this message]
2006-03-20 18:39   ` m h

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57BCC2B7-4232-4AC6-AF8A-E9D3D3905538@gentoo.org \
    --to=kito@gentoo.org \
    --cc=gentoo-osx@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox