Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: gentoo-osx@l.g.o
Subject: [gentoo-osx] [PREFIX] Verbose info regarding 2.1.11 Linux install.
Date: Tue, 21 Mar 2006 00:48:11
Message-Id: e36b84ee0603201647o6f41153ar4a9984ad1ad0e497@mail.gmail.com
As per Kito's advice on IRC:

can you post a) emerge --verbose --info b) the contents of
pym/portage_const_autotool.py c) the output of `PORTAGE_DEBUG=1 emerge
-v --nodeps patch &> emerge.log`

Here's my process to get that I had to do before I was able to do c)
(anything with !! I did by hand):

#!/bin/sh

export PREFIX=/tmp/Mar20
#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

make clean
./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
cd ${PREFIX}
mkdir -p usr/portage
cp -r ${TREE}/* usr/portage

export PATH=${PREFIX}/usr/bin:${PREFIX}/usr/sbin:${PATH}

#already exists!
#mkdir etc
cp ${PORTCODE}/cnf/make.conf etc/
#SET PREFIX in make.conf
#PREPEND PREFIX TO A FEW PLACES

##Should be made by make install above, but it's not
mkdir -p ${PREFIX}/etc/portage

cp -r ${MYBASE}/grobian-amd-prof/portage/* ${PREFIX}/etc/portage/
cp -r ${MYBASE}/normal-profiles/profiles/default-linux
${PREFIX}/usr/portage/profiles/
ln -s ${PREFIX}/usr/portage/profiles/default-linux/x86/2005.1
${PREFIX}/etc/make.profile


#!!adjust DEFAULTPATH in etc/make.globals
#add :/usr/bin:/bin:/sbin:/usr/sbin to end


mkdir -p ${PREFIX}/var/lib/portage/
touch ${PREFIX}/var/lib/portage/world

#!!add ACCEPT_KEYWORDS="~x86" to etc/make.conf
#!!uncomment FETCHCOMMNAD in etc/make.conf

#add ${PREFIX}/var/cache/edb/counter
echo 0 > ${PREFIX}/var/cache/edb/counter

##OSError: [Errno 2] No such file or directory: '/tmp/Mar20/etc/ld.so.conf'
##
touch ${PREFIX}/etc/ld.so.conf

##OSError: [Errno 2] No such file or directory: '/tmp/Mar20/etc/profile.env'
touch ${PREFIX}/etc/profile.env

##...
##File "/tmp/Mar20/usr/lib/portage/pym/portage_util.py", line 585, in close
##    apply_stat_permissions(self.name, os.stat(self._real_name))
##OSError: [Errno 2] No such file or directory: '/tmp/Mar20/etc/csh.env'
touch ${PREFIX}/etc/csh.env

Attachments

File name MIME type
emergeInfo.txt text/plain
emerge.log text/x-log
portage_const_autotool.py application/x-python

Replies