Are you sure it isn't your email client that is broken? My email
client threaded all of these messages properly.
I blew away my /usr/portage a few times too and asked for solutions,
but I didn't get any I really liked. For now, I use this shell script
to chroot. I have a few scripts that call this script, and if you
press Ctrl-C while the script is running, you'll safely be kicked
out, and if you run this script without parameters you'll get a
command line that will clean up when you exit.
#!/bin/sh
#
# ./bin/chroot_devfs
#
function absname {
if [ -d "$1" ] ; then # Only a directory name.
dir="$1"
unset file
elif [ -f "$1" ] ; then # Strip off and save the filename.
dir=$(dirname "$1")
file="/"$(basename "$1")
else
# The file did not exist.
# Return null string as error.
echo
return 1
fi
# Change to the directory and display the absolute pathname.
cd "$dir" > /dev/null
return=${PWD}${file}
}
absname $0
FULLPATH=$return
BASEDIR=`dirname $FULLPATH`/..
source ${BASEDIR}/etc/devel_env.conf
if [ -n "$1" ]
then
CHROOT_CMD="$@"
# shift
# OPTS="$@"
CMD="/bin/bash --login -c"
else
CHROOT_CMD="-i"
CMD="/bin/bash --login"
fi
echo ${CMD}
trap "umount ${DEVFS_PATH}/proc/ ; umount ${DEVFS_PATH}/usr/portage;
exit" 2 3 15
mount --bind /proc ${DEVFS_PATH}/proc/
mount --bind /usr/portage ${DEVFS_PATH}/usr/portage
chroot ${DEVFS_PATH} ${CMD} "${CHROOT_CMD}"
umount ${DEVFS_PATH}/proc/
umount ${DEVFS_PATH}/usr/portage
# Reset the traps
trap '-' 2 3 15
On Jan 23, 2006, at 4:20 PM, solar wrote:
> Please stop creating a brand new thread for every post when it's
> really
> a RE: to an existing thread. If it's your email client doing it then
> please install a functional one.
>
>
> On Mon, 2006-01-23 at 15:45 -0500, Dennis Taylor wrote:
>> Well, I blew that one. I decided to start over just in case I had
>> missed something. Unfortunately, I failed to umount portage before I
>> did rm -rf on the staging area. Now, I do not have /usr/portage.
>> Some
>> days are like that. :-(
>>
>> Does anyone know if it is possible to recover just portage without
>> starting all over?
>>
>> -----Original Message-----
>> From: Heath Holcomb [mailto:liquidcable@...]
>> Sent: Monday, January 23, 2006 1:32 PM
>> To: gentoo-embedded@g.o
>> Subject: Re: [gentoo-embedded] FAQ / How To?
>>
>> I wrote the how-to. I haven't built a system in several weeks, so
>> portage has changed a bit (and ebuilds). I plan on updating the
>> how-to
>> in a week or two, if I discover new problems (looks like there are
>> some).
>>
>> --
>> heath holcomb
>> liquidcable at bulah.com
>> www.bulah.com
>>
>> On Monday 23 January 2006 12:28, Dennis Taylor wrote:
>>> Having followed the other link to
>>> http://www.bulah.com/embedded-guide.html, which seems to be more
>>> up to
>>
>>> date, am still having problems. At step 3 I get the following
>> response.
>>>
>>> clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc Calculating
>>> dependencies !!! There are no packages available to satisfy:
>>> "uclibc"
>>> !!! Either add a suitable binary package or compile from an ebuild.
>>>
>>> I thought all the previous steps went OK. Even some of the
>>> workarounds seem to no longer be needed. Any ideas?
>>>
>>>
>>>
>>> ________________________________
>>>
>>> From: Joshua ChaitinPollak [mailto:jpollak@...]
>>> Sent: Friday, January 20, 2006 11:16 AM
>>> To: gentoo-embedded@g.o
>>> Subject: Re: [gentoo-embedded] FAQ / How To?
>>>
>>>
>>> This is what I use:
>>>
>>> http://www.bulah.com/embeddedgentoo.html
>>>
>>> My installation is 6 mb, since I'm installing into 32 mb, I haven't
>>> tried too hard to pair it down. I'm installing on Soekris net4526
>>> boards. Keep in mind there are somethings you can do after you build
>>> you filesystem with Gentoo to make the install even smaller:
>>>
>>> Remove /usr/include
>>> Remove all .keep files
>>> Audit the rest of the file system for unnecessary files, expecially
>>> /etc and /var
>>>
>>> I have a series of scripts I've written to automate the process
>>> described in the above howto, and I would like to publish them
>>> shortly, but please don't hold your breath. :)
>>>
>>> -Josh
>>>
>>> On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote:
>>>
>>>
>>> I have tried various ways of building a root fs with uClibc, but
>> to
>>> no avail. I have monitored this list long enough to know that
>>> someone
>>
>>> out there has done it. I need to do it for and X86 target that must
>>> fit in about 1.5 MB of flash that gets copied to RAM and started.
>>>
>>>
>>> The "out of the box" configuration I linked to from the uClibc
>> site
>>> fails in various ways. I like the Gentoo way of doing things,
>>> but the
>>
>>> HOWTO link I saved a while back does not work.
>>>
>>> Any pointers to documents that would help me succeed would be
>> greatly
>>> appreciated.
>>>
>>> Dennis Taylor
>>
>> --
>> gentoo-embedded@g.o mailing list
>>
>>
>>
>>
> --
> solar <solar@g.o>
> Gentoo Linux
>
> --
> gentoo-embedded@g.o mailing list
>
>
--
Joshua ChaitinPollak
Software Engineer
Kiva Systems
--
gentoo-embedded@g.o mailing list
|