Gentoo Archives: gentoo-dev

From: Arnold deVos <adv@××××××××××××.au>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Re: Re: [Fwd: [gentoo-admin] Building a second system]
Date: Mon, 06 Jan 2003 05:14:32
Message-Id: avb35e$8m8$1@main.gmane.org
In Reply to: Re: [gentoo-dev] Re: [Fwd: [gentoo-admin] Building a second system] by Bart Verwilst
1 Nope, as explained earlier in the thread that wouldn't get the benefits of
2 having gcc optimized for the athlon. It would not work at all to build
3 packages for an incompatible arch such as P4.
4
5 - Arnold
6
7
8 "Bart Verwilst" <verwilst@g.o> wrote in message
9 news:200301060304.47202.verwilst@g.o...
10 > Euhm.. Isn't it much easier to just for example:
11 >
12 > mkdir /mnt/my_new_system
13 > cd /mnt_my_new_system
14 > tar -xvjpf /path/to/stagex-i486-1.4_rc2.tbz2
15 > mount -o bind /proc /mnt/my_new_system/proc
16 > mount -o bind /usr/portage /mnt/my_new_system/usr/portage
17 > cp /etc/resolv.conf /mnt/my_new_system/etc
18 > chroot /mnt/my_new_system /bin/bash
19 > env-update
20 > source /etc/profile
21 > nano -w /etc/make.conf
22 >
23 > and so on...
24 >
25 > On Monday 06 January 2003 01:02, Arnold deVos wrote:
26 > || I have exactly the same need. A powerful Athlon building packages for
27 a
28 > || an older 486 or pentium box (eg firewall or other appliance). I have
29 > || experimented with the following ideas:
30 > ||
31 > || 1 -
32 > ||
33 > || - create a /my486Image hierarchy
34 > || - setup the /my486Image/etc/make.conf for cross compiling.
35 > || - export ROOT=/my486image (instead of /)
36 > || - use emerge from within the host (Athlon) system.
37 > ||
38 > || Unfortunately emerge seems to touch stuff outside of ROOT such as the
39 > || package db.
40 > ||
41 > || 2 -
42 > ||
43 > || - create a normal chroot environment for the 486
44 > || - mount the Athlon enviroment within this as /hostAlthonImage.
45 > || - Set the PATH to /hostAthlonImage/bin:/hostAthlonImage/usr/bin
46 etc
47 > || etc - use emerge (ie /hostAthlonImage/usr/bin/emerge)
48 > ||
49 > || The problem is the ld.so library path. Its tricky to get ld.so to
50 load
51 > || runtime .so's from /hostAthlonImage and not from the chroot's /usr/lib
52 > ||
53 > || Of these solutions I think (1) is more promising but looks like I need
54 to
55 > || check the emerge source to find the gotcha's.
56 > ||
57 > || It would be really useful if the fakeroot emerge facility mentioned by
58
59 > || drobbins on the gentoo frontpage was available. (I can't find it.
60 Anyone
61 > || know how to use this feature?)
62 > ||
63 > ||
64 > || - Arnold
65 > ||
66 > || "John Nilsson" <john@×××××××.nu> wrote in message
67 > || news:1041689680.27164.65.camel@××××××××××××××.nu...
68 > ||
69 > || > If I do it this way I would have to compile an entire bootstrap
70 > || > environment for the 486. Also I wouldn't get the benefits of having
71 gcc
72 > || > optimized for the athlon.
73 > || > What I would like is to write a simple script to use when upgrading
74 the
75 > || > server. Change the makefile and compile 486 optimized staticly
76 linked
77 > || > binaries to packages that are later merged into the server.
78 > || >
79 > || > On Sat, 2003-01-04 at 14:52, Timo A. Hummel wrote:
80 > || > > I don't know if it's the correct list, but I did it as follows to
81 > || > > compile a pentium optimized system:
82 > || > >
83 > || > > I plugged in the 4GB hdd of my Pentium system, created the file
84 > || > > systems, setup a chroot environment and did the whole gentoo
85 install
86 > || > > from there. worked like a charm, which was pretty good since I
87 don't
88 > || > > have a keyboard on my Pentium system. It's pretty straightforward,
89 > || > > and shouldn't give any problems. Remember to set the make.conf
90 > || > > correctly.
91 > || > >
92 > || > > cheers,
93 > || > > Timo
94 > || > >
95 > || > > On Sat, 2003-01-04 at 14:01, John Nilsson wrote:
96 > || > > > which is the correct mailing list for this kind of question?
97 > || > > >
98 > || > > >
99 ___________________________________________________________________
100 > || > > >___
101 > || > > >
102 > || > > > From: John Nilsson <john@×××××××.nu>
103 > || > > > To: gentoo-admin@g.o
104 > || > > > Subject: [gentoo-admin] Building a second system
105 > || > > > Date: 04 Jan 2003 12:52:51 +0100
106 > || > > >
107 > || > > > I would like to use my current athlon-xp optimized system to
108 > || > > > compile a base system for a 486. How do I go about it?
109 > || > > > I suppose I would have to keep an 486 optimized copy of glibc
110 > ||
111 > || somewhere, how?
112 > ||
113 > || > > > It would be nice to have a more or less permanent setup so I can
114 > ||
115 > || upgrade
116 > ||
117 > || > > > packages easily later on.
118 > || > > >
119 > || > > > --
120 > || > > > gentoo-admin@g.o mailing list
121 > || > > >
122 > || > > >
123 > || > > >
124 > || > > >
125 > || > > >
126 ___________________________________________________________________
127 > || > > >___
128 > || > > >
129 > || > > > --
130 > || > > > gentoo-dev@g.o mailing list
131 > || > >
132 > || > > --
133 > || > > Timo A. Hummel <timo.hummel@×××.net>
134 > || > >
135 > || > >
136 > || > > --
137 > || > > gentoo-dev@g.o mailing list
138 > || >
139 > || > --
140 > || > gentoo-dev@g.o mailing list
141 > ||
142 > || --
143 > || gentoo-dev@g.o mailing list
144 >
145 > --
146 > Bart Verwilst
147 > Gentoo Linux Developer, Desktop Team
148 > Gent, Belgium
149 >
150 > --
151 > gentoo-dev@g.o mailing list
152 >
153 >
154
155
156
157
158
159 --
160 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: Re: [Fwd: [gentoo-admin] Building a second system] George Shapovalov <george@g.o>