* Building Redhat from source/scratch
@ 2002-11-18 17:53 Ted Goodridge
2002-11-18 19:05 ` Building gnome binaries from RH 7.3 SRPMS hansel
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Ted Goodridge @ 2002-11-18 17:53 UTC (permalink / raw)
To: axp-list
For reasons such as bad linking etc, and the fact that I want to help out with
redhat as much as I can, how do I build the distribution from scratch?
I have all the rawhide SRPMS, and want to do it inside a chroot enviornment.
I thought I could report any errors I found to bugzila. Is there
documentation on how to do this? I would love to be able to read a document
rather than bugging you guys.
Ted Goodridge
^ permalink raw reply [flat|nested] 9+ messages in thread
* Building gnome binaries from RH 7.3 SRPMS
2002-11-18 17:53 Building Redhat from source/scratch Ted Goodridge
@ 2002-11-18 19:05 ` hansel
2002-11-18 19:21 ` Building Redhat from source/scratch Kelledin
2002-11-20 10:32 ` Mike A. Harris
2 siblings, 0 replies; 9+ messages in thread
From: hansel @ 2002-11-18 19:05 UTC (permalink / raw)
To: axp-list
On Mon, 18 Nov 2002, Ted Goodridge wrote:
> For reasons such as bad linking etc, and the fact that I want to help
> out with redhat as much as I can, how do I build the distribution from
> scratch?
Too ambitious! I already have a day job.
More modestly, some Gnome file formats have changed and it is no longer a
simple matter to exchange data files between intel and Alpha workstations,
depending on where I am working. Changed software involves a hierarchy of
dependencies that are easily identified, but large.
If I spend a few days downloading and building RPMs from the RH 7.3 SRPMs,
(probably until I have the whole gnome desktop built), then update
everything, will I have a nifty set of updated binaries or an unworkable
mess?
Anyone know?
--
Mark Hansel
PO Box 41
Minnesota State University Moorhead
Moorhead, MN 56563
ph: 218-236-2039 fax: 218-236-2593
hansel@mnstate.edu
http://wwwcj.mnstate.edu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-18 17:53 Building Redhat from source/scratch Ted Goodridge
2002-11-18 19:05 ` Building gnome binaries from RH 7.3 SRPMS hansel
@ 2002-11-18 19:21 ` Kelledin
2002-11-18 19:54 ` Ted Goodridge
2002-11-20 10:32 ` Mike A. Harris
2 siblings, 1 reply; 9+ messages in thread
From: Kelledin @ 2002-11-18 19:21 UTC (permalink / raw)
To: axp-list
On Monday 18 November 2002 11:53 am, Ted Goodridge wrote:
> For reasons such as bad linking etc, and the fact that I want
> to help out with redhat as much as I can, how do I build the
> distribution from scratch?
>
> I have all the rawhide SRPMS, and want to do it inside a
> chroot enviornment. I thought I could report any errors I
> found to bugzila. Is there documentation on how to do this?
> I would love to be able to read a document rather than bugging
> you guys.
http://www.linuxfromscratch.org/
Once you get an LFS system built, you could compile rpm, then
start building your SRPMs. You'll have to build some of them
with --nodeps, at least until you get a working set of baseline
RPMs. I can't really help you much beyond that, since I don't
actually use redhat myself.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-18 19:21 ` Building Redhat from source/scratch Kelledin
@ 2002-11-18 19:54 ` Ted Goodridge
2002-11-18 20:16 ` Kelledin
0 siblings, 1 reply; 9+ messages in thread
From: Ted Goodridge @ 2002-11-18 19:54 UTC (permalink / raw)
To: axp-list, Kelledin
Unfortunately I cannot get an LFS system, as Glib does not build properly,
even with your patch. I applied the LFS glib patch first, and then your
patch. Builds with errors (sorry I don't have the output, but I zapped it to
play with gentoo.)
Ted
On Monday 18 November 2002 01:21 pm, Kelledin wrote:
> On Monday 18 November 2002 11:53 am, Ted Goodridge wrote:
> > For reasons such as bad linking etc, and the fact that I want
> > to help out with redhat as much as I can, how do I build the
> > distribution from scratch?
> >
> > I have all the rawhide SRPMS, and want to do it inside a
> > chroot enviornment. I thought I could report any errors I
> > found to bugzila. Is there documentation on how to do this?
> > I would love to be able to read a document rather than bugging
> > you guys.
>
> http://www.linuxfromscratch.org/
>
> Once you get an LFS system built, you could compile rpm, then
> start building your SRPMs. You'll have to build some of them
> with --nodeps, at least until you get a working set of baseline
> RPMs. I can't really help you much beyond that, since I don't
> actually use redhat myself.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-18 19:54 ` Ted Goodridge
@ 2002-11-18 20:16 ` Kelledin
0 siblings, 0 replies; 9+ messages in thread
From: Kelledin @ 2002-11-18 20:16 UTC (permalink / raw)
To: axp-list
On Monday 18 November 2002 01:54 pm, you wrote:
> Unfortunately I cannot get an LFS system, as Glib does not
> build properly, even with your patch. I applied the LFS glib
> patch first, and then your patch. Builds with errors (sorry I
> don't have the output, but I zapped it to play with gentoo.)
I remember that...strange, it was. Very strange.
Nevertheless, it is possible to build an LFS system on an Alpha
box; I actually finished up on such a system just about a week
ago. I built it off a Debian base system without much problem
(other than a few minor issues I patched into nonexistence).
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-18 17:53 Building Redhat from source/scratch Ted Goodridge
2002-11-18 19:05 ` Building gnome binaries from RH 7.3 SRPMS hansel
2002-11-18 19:21 ` Building Redhat from source/scratch Kelledin
@ 2002-11-20 10:32 ` Mike A. Harris
2002-11-21 2:08 ` Steven Pritchard
2002-11-21 21:23 ` Ted Goodridge
2 siblings, 2 replies; 9+ messages in thread
From: Mike A. Harris @ 2002-11-20 10:32 UTC (permalink / raw)
To: axp-list
On Mon, 18 Nov 2002, Ted Goodridge wrote:
>Date: Mon, 18 Nov 2002 11:53:59 -0600
>From: Ted Goodridge <tedgoodridgejr@acm.org>
>To: axp-list@redhat.com
>Content-Type: text/plain;
> charset="us-ascii"
>List-Id: Linux and Red Hat on Alpha processors <axp-list.redhat.com>
>Subject: Building Redhat from source/scratch
>
>For reasons such as bad linking etc, and the fact that I want to help out with
>redhat as much as I can, how do I build the distribution from scratch?
>
>I have all the rawhide SRPMS, and want to do it inside a chroot enviornment.
>I thought I could report any errors I found to bugzila. Is there
>documentation on how to do this? I would love to be able to read a document
>rather than bugging you guys.
There are several different ways that you could go about this,
each of which would provide useful information.
Red Hat rebuilds the entire distribution every single night on
all architectures, the resulting packages of which get tested for
various issues. We continue to add automated tests to catch more
and more errors.
If you're interested in helping do automated tests also, you can
use the rpm commandline options --initdb and --dbpath to specify
a new database location inside a chroot area, and --dbpath and
--root in order to install RPMs into the chroot area, without
affecting your main system or its RPM database.
You can just install all packages into the chroot, and then place
all src.rpm's into the chroot as well. Warning: do not install
or build multiple RPMs at the same time using the default RPM
config. Any 2 RPM packages can overwrite each others files in
the SOURCES dir if they both have a file of the same name. Best
to just do them one at a time, saving the results. You can save
the build logs from RPM as well, and then examine them either by
hand afterward, or via automated perl scripts or somesuch,
looking for errors, warnings and other potential problems.
There is a tonne of R&D in this area that one could do to help
find and fix problems before they become problems. If only there
were more hours in a day. ;o)
TTYL
--
Mike A. Harris ftp://people.redhat.com/mharris
OS Systems Engineer
XFree86 maintainer
Red Hat Inc.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-20 10:32 ` Mike A. Harris
@ 2002-11-21 2:08 ` Steven Pritchard
2002-11-21 21:23 ` Ted Goodridge
1 sibling, 0 replies; 9+ messages in thread
From: Steven Pritchard @ 2002-11-21 2:08 UTC (permalink / raw)
To: axp-list
On Wed, Nov 20, 2002 at 05:32:39AM -0500, Mike A. Harris wrote:
> Red Hat rebuilds the entire distribution every single night on
> all architectures, the resulting packages of which get tested for
> various issues. We continue to add automated tests to catch more
> and more errors.
So who would a guy have to beg/bribe/kill to get their hands on those
scripts?
I was working on building Red Hat on the PS2 a while back, and it
would have been nice to have skipped writing my own build scripts.
(Especially since my build scripts were particularly lame. :-)
Steve
--
steve@silug.org | Southern Illinois Linux Users Group
(618)398-7360 | See web site for meeting details.
Steven Pritchard | http://www.silug.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-20 10:32 ` Mike A. Harris
2002-11-21 2:08 ` Steven Pritchard
@ 2002-11-21 21:23 ` Ted Goodridge
2002-11-21 21:47 ` Chris Meadors
1 sibling, 1 reply; 9+ messages in thread
From: Ted Goodridge @ 2002-11-21 21:23 UTC (permalink / raw)
To: axp-list
Mike,
Thanks for the response . What are the first steps I need to do in setting
up the chroot? What order do you build the rpms? I'm anxious to get started
doing this because now I have an extra hard drive that I've been
experimenting with and would love to help you guys out.
Ted
On Wednesday 20 November 2002 04:32 am, Mike A. Harris wrote:
> On Mon, 18 Nov 2002, Ted Goodridge wrote:
> >Date: Mon, 18 Nov 2002 11:53:59 -0600
>
> From: Ted Goodridge <tedgoodridgejr@acm.org>
>
> >To: axp-list@redhat.com
> >Content-Type: text/plain;
> > charset="us-ascii"
> >List-Id: Linux and Red Hat on Alpha processors <axp-list.redhat.com>
> >Subject: Building Redhat from source/scratch
> >
> >For reasons such as bad linking etc, and the fact that I want to help out
> > with redhat as much as I can, how do I build the distribution from
> > scratch?
> >
> >I have all the rawhide SRPMS, and want to do it inside a chroot
> > enviornment. I thought I could report any errors I found to bugzila. Is
> > there documentation on how to do this? I would love to be able to read a
> > document rather than bugging you guys.
>
> There are several different ways that you could go about this,
> each of which would provide useful information.
>
> Red Hat rebuilds the entire distribution every single night on
> all architectures, the resulting packages of which get tested for
> various issues. We continue to add automated tests to catch more
> and more errors.
>
> If you're interested in helping do automated tests also, you can
> use the rpm commandline options --initdb and --dbpath to specify
> a new database location inside a chroot area, and --dbpath and
> --root in order to install RPMs into the chroot area, without
> affecting your main system or its RPM database.
>
> You can just install all packages into the chroot, and then place
> all src.rpm's into the chroot as well. Warning: do not install
> or build multiple RPMs at the same time using the default RPM
> config. Any 2 RPM packages can overwrite each others files in
> the SOURCES dir if they both have a file of the same name. Best
> to just do them one at a time, saving the results. You can save
> the build logs from RPM as well, and then examine them either by
> hand afterward, or via automated perl scripts or somesuch,
> looking for errors, warnings and other potential problems.
>
> There is a tonne of R&D in this area that one could do to help
> find and fix problems before they become problems. If only there
> were more hours in a day. ;o)
>
> TTYL
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building Redhat from source/scratch
2002-11-21 21:23 ` Ted Goodridge
@ 2002-11-21 21:47 ` Chris Meadors
0 siblings, 0 replies; 9+ messages in thread
From: Chris Meadors @ 2002-11-21 21:47 UTC (permalink / raw)
To: axp-list
Ted Goodridge wrote:
> Mike,
>
> Thanks for the response . What are the first steps I need to do in
> setting up the chroot? What order do you build the rpms? I'm
> anxious to get started doing this because now I have an extra hard
> drive that I've been experimenting with and would love to help you
> guys out.
Well you need a shell in the chroot environment as the main thing. If
you plan on building code in there eventually, you'll need everything
that is required for that.
This is from memory, so I'm sure I'm forgetting things, but that'll be
obvious when you can build one of the packages, in the chroot, so you
hop back out and build the package that you need if itself can't be
build in the chroot.
But you'll need a kernel (not to boot initially, but for the header files).
The C library.
A compiler and the tools that go with it, binutils and make.
ncurses also provides some needed header and libs.
The configure/build process usually makes use of the standard UNIX
tools, sed, grep, cut, cat, cmp, install. Different packages require
different things so getting the order right is a kinda science.
I have a pretty good idea in my head what order I need to do things in
now, so I just start working my way through, and do as I said above,
jumping out of the chroot when there is something I can't get done in
it, but trying to do everything I can there.
My other method is to install a minimal install of some distro
(Slackware is my usual choice, A, D and N disks). That gets me enough
to build anything I need. Once I start getting things into place, I
start doing "ls -lt" in directories to see what is older than when I
started and strip out stuff I don't need or install the packages of what
I do. Once I get all the basics installed I go back through one more
time so everything gets compiled against the complete set of headers/libs.
Oh, were you having trouble building glibc 2.3.1 on the Alpha? I have a
machine running it now, built with gcc 3.2.[01] with no problems. I
didn't apply any patches at all. gcc 3.2.0 had to be patched to compile
against glibc 2.3.1, but 3.2.1 fixed that.
--
Chris
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-11-21 22:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-18 17:53 Building Redhat from source/scratch Ted Goodridge
2002-11-18 19:05 ` Building gnome binaries from RH 7.3 SRPMS hansel
2002-11-18 19:21 ` Building Redhat from source/scratch Kelledin
2002-11-18 19:54 ` Ted Goodridge
2002-11-18 20:16 ` Kelledin
2002-11-20 10:32 ` Mike A. Harris
2002-11-21 2:08 ` Steven Pritchard
2002-11-21 21:23 ` Ted Goodridge
2002-11-21 21:47 ` Chris Meadors
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox