1 |
Are you sure it isn't your email client that is broken? My email |
2 |
client threaded all of these messages properly. |
3 |
|
4 |
I blew away my /usr/portage a few times too and asked for solutions, |
5 |
but I didn't get any I really liked. For now, I use this shell script |
6 |
to chroot. I have a few scripts that call this script, and if you |
7 |
press Ctrl-C while the script is running, you'll safely be kicked |
8 |
out, and if you run this script without parameters you'll get a |
9 |
command line that will clean up when you exit. |
10 |
|
11 |
|
12 |
#!/bin/sh |
13 |
# |
14 |
# ./bin/chroot_devfs |
15 |
# |
16 |
|
17 |
function absname { |
18 |
if [ -d "$1" ] ; then # Only a directory name. |
19 |
dir="$1" |
20 |
unset file |
21 |
elif [ -f "$1" ] ; then # Strip off and save the filename. |
22 |
dir=$(dirname "$1") |
23 |
file="/"$(basename "$1") |
24 |
else |
25 |
# The file did not exist. |
26 |
# Return null string as error. |
27 |
echo |
28 |
return 1 |
29 |
fi |
30 |
|
31 |
# Change to the directory and display the absolute pathname. |
32 |
cd "$dir" > /dev/null |
33 |
return=${PWD}${file} |
34 |
} |
35 |
|
36 |
absname $0 |
37 |
FULLPATH=$return |
38 |
BASEDIR=`dirname $FULLPATH`/.. |
39 |
|
40 |
source ${BASEDIR}/etc/devel_env.conf |
41 |
|
42 |
if [ -n "$1" ] |
43 |
then |
44 |
CHROOT_CMD="$@" |
45 |
# shift |
46 |
# OPTS="$@" |
47 |
CMD="/bin/bash --login -c" |
48 |
else |
49 |
CHROOT_CMD="-i" |
50 |
CMD="/bin/bash --login" |
51 |
fi |
52 |
|
53 |
echo ${CMD} |
54 |
|
55 |
trap "umount ${DEVFS_PATH}/proc/ ; umount ${DEVFS_PATH}/usr/portage; |
56 |
exit" 2 3 15 |
57 |
|
58 |
mount --bind /proc ${DEVFS_PATH}/proc/ |
59 |
mount --bind /usr/portage ${DEVFS_PATH}/usr/portage |
60 |
|
61 |
chroot ${DEVFS_PATH} ${CMD} "${CHROOT_CMD}" |
62 |
|
63 |
umount ${DEVFS_PATH}/proc/ |
64 |
umount ${DEVFS_PATH}/usr/portage |
65 |
|
66 |
# Reset the traps |
67 |
trap '-' 2 3 15 |
68 |
|
69 |
|
70 |
On Jan 23, 2006, at 4:20 PM, solar wrote: |
71 |
|
72 |
> Please stop creating a brand new thread for every post when it's |
73 |
> really |
74 |
> a RE: to an existing thread. If it's your email client doing it then |
75 |
> please install a functional one. |
76 |
> |
77 |
> |
78 |
> On Mon, 2006-01-23 at 15:45 -0500, Dennis Taylor wrote: |
79 |
>> Well, I blew that one. I decided to start over just in case I had |
80 |
>> missed something. Unfortunately, I failed to umount portage before I |
81 |
>> did rm -rf on the staging area. Now, I do not have /usr/portage. |
82 |
>> Some |
83 |
>> days are like that. :-( |
84 |
>> |
85 |
>> Does anyone know if it is possible to recover just portage without |
86 |
>> starting all over? |
87 |
>> |
88 |
>> -----Original Message----- |
89 |
>> From: Heath Holcomb [mailto:liquidcable@×××××.com] |
90 |
>> Sent: Monday, January 23, 2006 1:32 PM |
91 |
>> To: gentoo-embedded@l.g.o |
92 |
>> Subject: Re: [gentoo-embedded] FAQ / How To? |
93 |
>> |
94 |
>> I wrote the how-to. I haven't built a system in several weeks, so |
95 |
>> portage has changed a bit (and ebuilds). I plan on updating the |
96 |
>> how-to |
97 |
>> in a week or two, if I discover new problems (looks like there are |
98 |
>> some). |
99 |
>> |
100 |
>> -- |
101 |
>> heath holcomb |
102 |
>> liquidcable at bulah.com |
103 |
>> www.bulah.com |
104 |
>> |
105 |
>> On Monday 23 January 2006 12:28, Dennis Taylor wrote: |
106 |
>>> Having followed the other link to |
107 |
>>> http://www.bulah.com/embedded-guide.html, which seems to be more |
108 |
>>> up to |
109 |
>> |
110 |
>>> date, am still having problems. At step 3 I get the following |
111 |
>> response. |
112 |
>>> |
113 |
>>> clwsapp07 root # ROOT=/embedded_rootfs emerge -K uclibc Calculating |
114 |
>>> dependencies !!! There are no packages available to satisfy: |
115 |
>>> "uclibc" |
116 |
>>> !!! Either add a suitable binary package or compile from an ebuild. |
117 |
>>> |
118 |
>>> I thought all the previous steps went OK. Even some of the |
119 |
>>> workarounds seem to no longer be needed. Any ideas? |
120 |
>>> |
121 |
>>> |
122 |
>>> |
123 |
>>> ________________________________ |
124 |
>>> |
125 |
>>> From: Joshua ChaitinPollak [mailto:jpollak@×××××××××××.com] |
126 |
>>> Sent: Friday, January 20, 2006 11:16 AM |
127 |
>>> To: gentoo-embedded@l.g.o |
128 |
>>> Subject: Re: [gentoo-embedded] FAQ / How To? |
129 |
>>> |
130 |
>>> |
131 |
>>> This is what I use: |
132 |
>>> |
133 |
>>> http://www.bulah.com/embeddedgentoo.html |
134 |
>>> |
135 |
>>> My installation is 6 mb, since I'm installing into 32 mb, I haven't |
136 |
>>> tried too hard to pair it down. I'm installing on Soekris net4526 |
137 |
>>> boards. Keep in mind there are somethings you can do after you build |
138 |
>>> you filesystem with Gentoo to make the install even smaller: |
139 |
>>> |
140 |
>>> Remove /usr/include |
141 |
>>> Remove all .keep files |
142 |
>>> Audit the rest of the file system for unnecessary files, expecially |
143 |
>>> /etc and /var |
144 |
>>> |
145 |
>>> I have a series of scripts I've written to automate the process |
146 |
>>> described in the above howto, and I would like to publish them |
147 |
>>> shortly, but please don't hold your breath. :) |
148 |
>>> |
149 |
>>> -Josh |
150 |
>>> |
151 |
>>> On Jan 20, 2006, at 10:55 AM, Dennis Taylor wrote: |
152 |
>>> |
153 |
>>> |
154 |
>>> I have tried various ways of building a root fs with uClibc, but |
155 |
>> to |
156 |
>>> no avail. I have monitored this list long enough to know that |
157 |
>>> someone |
158 |
>> |
159 |
>>> out there has done it. I need to do it for and X86 target that must |
160 |
>>> fit in about 1.5 MB of flash that gets copied to RAM and started. |
161 |
>>> |
162 |
>>> |
163 |
>>> The "out of the box" configuration I linked to from the uClibc |
164 |
>> site |
165 |
>>> fails in various ways. I like the Gentoo way of doing things, |
166 |
>>> but the |
167 |
>> |
168 |
>>> HOWTO link I saved a while back does not work. |
169 |
>>> |
170 |
>>> Any pointers to documents that would help me succeed would be |
171 |
>> greatly |
172 |
>>> appreciated. |
173 |
>>> |
174 |
>>> Dennis Taylor |
175 |
>> |
176 |
>> -- |
177 |
>> gentoo-embedded@g.o mailing list |
178 |
>> |
179 |
>> |
180 |
>> |
181 |
>> |
182 |
> -- |
183 |
> solar <solar@g.o> |
184 |
> Gentoo Linux |
185 |
> |
186 |
> -- |
187 |
> gentoo-embedded@g.o mailing list |
188 |
> |
189 |
> |
190 |
|
191 |
-- |
192 |
Joshua ChaitinPollak |
193 |
Software Engineer |
194 |
Kiva Systems |
195 |
|
196 |
|
197 |
-- |
198 |
gentoo-embedded@g.o mailing list |