Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* "unofficial" redhat releases/testing builds
@ 2003-02-03 18:16 Ted Goodridge, Jr
  2003-02-03 18:19 ` John Jasen
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Ted Goodridge, Jr @ 2003-02-03 18:16 UTC (permalink / raw)
  To: axp-list

I was wondering if it would be possible to get a snapshot of alpha build
system.  I was hoping maybe to test it, but how does one do a fresh install
say from rawhide alpha.rpm?

Also, I don't think I ever got an answer to building the entire redhat
system from scratch via srpm.  Is there an easy way of doing this?  Mike @
Redhat said this would be of great use to them, but is there a script or
something similar to where if I have all the SRPMs in a chroot (I would need
help setting that up too...) and I can launch it and have it build all night
(or days...)?

GCC 3.2 is supposed to have great advancements in optimization for the alpha
platform.  I would also love to have the new Glibc.

I have lots of time on my hands as I have recently lost my job.

Any help is greatly appreciated,
Ted

P.S.  Has XFree 4.3.0 been officially released yet?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: "unofficial" redhat releases/testing builds
  2003-02-03 18:16 "unofficial" redhat releases/testing builds Ted Goodridge, Jr
@ 2003-02-03 18:19 ` John Jasen
  2003-02-04  5:02   ` Mike A. Harris
  2003-02-03 20:38 ` Stefan van der Eijk
  2003-02-03 20:49 ` alpha] " R P Herrold
  2 siblings, 1 reply; 14+ messages in thread
From: John Jasen @ 2003-02-03 18:19 UTC (permalink / raw)
  To: axp-list

On Mon, 3 Feb 2003, Ted Goodridge, Jr wrote:

> Also, I don't think I ever got an answer to building the entire redhat
> system from scratch via srpm.  Is there an easy way of doing this?  Mike @
> Redhat said this would be of great use to them, but is there a script or
> something similar to where if I have all the SRPMs in a chroot (I would need
> help setting that up too...) and I can launch it and have it build all night
> (or days...)?

It is not easy. A lot of the packages depend on each other.

I'd be curious as to how redhat does it, but knowing my luck, thats trade
secret, copyrighted, patented, and/or covered under DCMA.


--
-- John E. Jasen (jjasen1@umbc.edu)
-- User Error #2361: Please insert coffee and try again.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: "unofficial" redhat releases/testing builds
  2003-02-03 18:16 "unofficial" redhat releases/testing builds Ted Goodridge, Jr
  2003-02-03 18:19 ` John Jasen
@ 2003-02-03 20:38 ` Stefan van der Eijk
  2003-02-03 20:49 ` alpha] " R P Herrold
  2 siblings, 0 replies; 14+ messages in thread
From: Stefan van der Eijk @ 2003-02-03 20:38 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]

Ted,

Check out: http://eijk.homelinux.org/~stefan/slbd.html. It's the script 
I use to automatically rebuild Mandrake's distro on the alpha. The 
script uses urpmi quite a lot. To use the script on RH you'll probably 
have to port urpmi over to RH, and since RH is using a newer version 
rpm, this can be quite some work.

I don't run it in a chroot environment, but I use a dedicated & empty 
system for it. In theory the package should rebuild if basesystem + 
rpm-build + BuildRequires are installed on the system. The script 
installs the BuildRequires and attempts to rebuild. Often the 
BuildRequires are incomplete or incorrect, resulting in failed builds.

I alsa keep the build outputs online. Check out: 
http://eijk.homelinux.org/build/cooker/

Stefan van der Eijk



Ted Goodridge, Jr wrote:

>I was wondering if it would be possible to get a snapshot of alpha build
>system.  I was hoping maybe to test it, but how does one do a fresh install
>say from rawhide alpha.rpm?
>
>Also, I don't think I ever got an answer to building the entire redhat
>system from scratch via srpm.  Is there an easy way of doing this?  Mike @
>Redhat said this would be of great use to them, but is there a script or
>something similar to where if I have all the SRPMs in a chroot (I would need
>help setting that up too...) and I can launch it and have it build all night
>(or days...)?
>
>GCC 3.2 is supposed to have great advancements in optimization for the alpha
>platform.  I would also love to have the new Glibc.
>
>I have lots of time on my hands as I have recently lost my job.
>
>Any help is greatly appreciated,
>Ted
>
>P.S.  Has XFree 4.3.0 been officially released yet?
>
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list
>
>  
>


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3403 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: alpha] "unofficial" redhat releases/testing builds
  2003-02-03 18:16 "unofficial" redhat releases/testing builds Ted Goodridge, Jr
  2003-02-03 18:19 ` John Jasen
  2003-02-03 20:38 ` Stefan van der Eijk
@ 2003-02-03 20:49 ` R P Herrold
  2003-02-03 23:24   ` Mike Barnes
  2 siblings, 1 reply; 14+ messages in thread
From: R P Herrold @ 2003-02-03 20:49 UTC (permalink / raw)
  To: axp-list

On Mon, 3 Feb 2003, Ted Goodridge, Jr wrote:

> Also, I don't think I ever got an answer to building the entire redhat
> system from scratch via srpm.  Is there an easy way of doing this?  Mike @
> Redhat said this would be of great use to them, but is there a script or
> something similar to where if I have all the SRPMs in a chroot (I would need
> help setting that up too...) and I can launch it and have it build all night
> (or days...)?

There is not an easy answer to this one on auto-rebuilders.  
I ahve a trivial script which walks through SRPMS, building 
what is can, and leaving error file remnants of what it cannot 
at:
   ftp://ftp.owlriver.com/pub/local/ORC/ORCrebuild/ORCrebuild

and tried to kick off a discussion on the topic at on 
rpm-list:   
    https://listman.redhat.com/mailman/private/rpm-list/2003-January/017586.html
   and
on aurora-sparc-devel@linuxpower.org:
    http://lists.linuxpower.org/pipermail/aurora-sparc-devel/2003-January/001781.html

---------------------

The first listed script will rebuild about 2/3 of my SRPM
archive of a couple thousand, unattended [takes several days,
btw ...].  Most of the remaining failures are from missing
build dependencies [bith explicit within the .specfile, and
simply functioally needed].  I would like to script having
that script pull and install missing BuildRequires items 
within the .specfile automatically, but have not gotten to it.  

I am working toward that issue on a couple of fronts.  The 
'yum' tool does hands off dependency solving, in a fashion 
which lends itself well to using as the install agent.  

Probably less that 10% of the files out there really _need_ 
manual intervention to get built -- 

My poor little Multia is sitting, patiently, powered off and
next to my SparcStation 2, staring at me with sad eyes, to get
this project advanced, but I had my local SRPM mirror unit 
have a hard drive die last Thursday, and I am not fully back 
online yet.

-- Russ Herrold




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: "unofficial" redhat releases/testing builds
  2003-02-03 20:49 ` alpha] " R P Herrold
@ 2003-02-03 23:24   ` Mike Barnes
  0 siblings, 0 replies; 14+ messages in thread
From: Mike Barnes @ 2003-02-03 23:24 UTC (permalink / raw)
  To: axp-list

R P Herrold wrote:
> There is not an easy answer to this one on auto-rebuilders.  
> I ahve a trivial script which walks through SRPMS, building 
> what is can, and leaving error file remnants of what it cannot 
> at:

I don't have time to debug scripts and get something like this working, 
but if someone else does (and can produce a simple setup doc) then I 
have a 466MHz DS10 sitting on my desk that can sit and compile for weeks 
on end, if necessary.

I'm more than happy to donate some CPU time and disk space to the cause. :)




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: "unofficial" redhat releases/testing builds
  2003-02-03 18:19 ` John Jasen
@ 2003-02-04  5:02   ` Mike A. Harris
  2003-02-04 18:50     ` John Jasen
  0 siblings, 1 reply; 14+ messages in thread
From: Mike A. Harris @ 2003-02-04  5:02 UTC (permalink / raw)
  To: axp-list

On Mon, 3 Feb 2003, John Jasen wrote:

>> Also, I don't think I ever got an answer to building the entire redhat
>> system from scratch via srpm.  Is there an easy way of doing this?  Mike @
>> Redhat said this would be of great use to them, but is there a script or
>> something similar to where if I have all the SRPMs in a chroot (I would need
>> help setting that up too...) and I can launch it and have it build all night
>> (or days...)?
>
>It is not easy. A lot of the packages depend on each other.
>
>I'd be curious as to how redhat does it, but knowing my luck, thats trade
>secret,

All of the software is in the anaconda-runtime package included 
with Red Hat Linux.  Florian laroche has a package on his ftp or 
http space to aide in setting up a build environment.  This is 
the same type of chroot environment that many Red Hatters use on 
their own systems.  I've written my own custom scripts to handle 
it, Florian's are more complete however.

http://people.redhat.com/laroche/rpmutils.tar.gz


> copyrighted,

All software written by anyone, is copyrighted.  The author of a
piece of software automatically is the copyright owner of that
software.  As the owner of the copyright, you decide whom can and
can not use your work, and under what conditions.  This is called
a "license".  The license, is the rights you are granting to
another person, persons, or other group of people potentially
including everyone.

The term "copyright" and "license" are often used 
interchangeably, however they have _very_ different meanings.  
And those meanings also vary around the world.  In Germany for 
example, copyright has 2 meanings, one is more like a 
"birthright" here which you can not ever give up, and the other 
is similar to "copyright" here.


> patented,

http://www.redhat.com/legal/patent_policy.html


> and/or covered under DCMA.

Please explain this one.  I haven't yet begun to understand what 
you are implying here.

Also, please in the future research these things before making 
false assumptions and/or poor and unfounded accusations and/or 
spreading FUD.


-- 
Mike A. Harris     ftp://people.redhat.com/mharris
OS Systems Engineer - XFree86 maintainer - Red Hat




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: "unofficial" redhat releases/testing builds
  2003-02-04  5:02   ` Mike A. Harris
@ 2003-02-04 18:50     ` John Jasen
  2003-02-12 17:06       ` a way to start " John Jasen
  0 siblings, 1 reply; 14+ messages in thread
From: John Jasen @ 2003-02-04 18:50 UTC (permalink / raw)
  To: axp-list

On Tue, 4 Feb 2003, Mike A. Harris wrote:

> Also, please in the future research these things before making
> false assumptions and/or poor and unfounded accusations and/or
> spreading FUD.

And where did I exactly make unfounded accusations or spead FUD? I said,
"knowing my luck, its " X, Y and Z.

I also said, which the above comment referenced, that I would like to know
how its done at redhat, as I've given some thought lately to totally
rebuilding from source RPM, and a lot of my prior attempts ended in
a good many circular dependencies, and sometimes --force --nodeps helps,
other times, it hurts like hell.

To take a directory full of raw src.rpms and get it to a directory full of
$arch.rpms is a non-trivial task, but made easier if you're running RH7.3
and compiling RH73 src.rpms. To do it across major version numbers is much
more complicated IMNSHO -- so doing something like using a hypothetical
rh7.3 system to make a rh8.0 distro would (just guessing) involve a
chroot set up, compiling and installing intermediate 'bootstrap' rpms into
that chroot (making it a rh73/rh80 mish-mash), then recompiling the
bootstrat rpms in that environment, updating them, and processing the
rest of the src.rpms.

Non-trivial, but RH somehow gets releases out the door.

So, non-trivial, and someone does it, generally better than their
competitors. I would expect parts of that to be 'protected'.

--
-- John E. Jasen (jjasen1@umbc.edu)
-- User Error #2361: Please insert coffee and try again.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-04 18:50     ` John Jasen
@ 2003-02-12 17:06       ` John Jasen
  2003-02-12 17:34         ` Ted Goodridge, Jr
                           ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: John Jasen @ 2003-02-12 17:06 UTC (permalink / raw)
  To: axp-list

step one: acquire srpms
step two: for i in `ls -1`; do rpm --rebuild $i >$i.log 2>&1; done
step three: grep "Wrote: /usr/src/redhat/RPMS/" *.log >finished.list
step four: ls *.log >started.list
step five: find a way to parse the output of step 3. I used perl with a
	simple split and print.
step six:  cat started.list finished.list | sort | uniq -u
>unfinished.list
step seven:  grep "error: failed build dependencies" *.log | perl
logparse.pl >dependencies.log
step eight: cat unfinished.list dependencies.log | sort | uniq -u
>failed.log

So far (I admit, advanced workstation src rpms on a 7.3 i386 system) out
of 690 source rpms, I've had 480 successful compiles, 163 that failed on
dependencies to build it, and ... 47 failures

Now I just need glue to go and resolve dependencies and retry ...

-- 
-- John E. Jasen (jjasen1@umbc.edu)
-- User Error #2361: Please insert coffee and try again.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-12 17:06       ` a way to start " John Jasen
@ 2003-02-12 17:34         ` Ted Goodridge, Jr
  2003-02-12 18:17           ` John Jasen
  2003-02-12 17:52         ` dr john halewood
  2003-02-12 21:55         ` John Jasen
  2 siblings, 1 reply; 14+ messages in thread
From: Ted Goodridge, Jr @ 2003-02-12 17:34 UTC (permalink / raw)
  To: axp-list

On Wed, 12 Feb 2003 12:06:13 -0500, John Jasen <jjasen1@umbc.edu> wrote:

>
> step one: acquire srpms
> step two: for i in `ls -1`; do rpm --rebuild $i >$i.log 2>&1; done
> step three: grep "Wrote: /usr/src/redhat/RPMS/" *.log >finished.list
> step four: ls *.log >started.list
> step five: find a way to parse the output of step 3. I used perl with a
> 	simple split and print.
> step six:  cat started.list finished.list | sort | uniq -u
>> unfinished.list
> step seven:  grep "error: failed build dependencies" *.log | perl
> logparse.pl >dependencies.log
> step eight: cat unfinished.list dependencies.log | sort | uniq -u
>> failed.log
>
> So far (I admit, advanced workstation src rpms on a 7.3 i386 system) out
> of 690 source rpms, I've had 480 successful compiles, 163 that failed on
> dependencies to build it, and ... 47 failures
>
> Now I just need glue to go and resolve dependencies and retry ...
>

Fascinating!  (spock ears not included)  How do you make the jump from GCC 
versions and GlibC versions?

Ted




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-12 17:06       ` a way to start " John Jasen
  2003-02-12 17:34         ` Ted Goodridge, Jr
@ 2003-02-12 17:52         ` dr john halewood
  2003-02-12 18:11           ` John Jasen
  2003-02-12 20:41           ` Mike A. Harris
  2003-02-12 21:55         ` John Jasen
  2 siblings, 2 replies; 14+ messages in thread
From: dr john halewood @ 2003-02-12 17:52 UTC (permalink / raw)
  To: axp-list

On Wednesday 12 February 2003 17:06, John Jasen wrote:
>So far (I admit, advanced workstation src rpms on a 7.3 i386 system) out
>of 690 source rpms, I've had 480 successful compiles, 163 that failed on
>dependencies to build it, and ... 47 failures

Even that won't necessarily give you a suitably stable system, because you've 
probably built the rpms against one set of libraries (e.g. ncurses), then 
built an rpm of a later version of the same. To sort this type of problem out 
I borrowed a technique from the Immunix project (www.immunix.org - it's a 
version of redhat for x86 with security enhancements to gcc and glibc), which 
basically goes.

1) build rpms
2) install rpms
3) build rpms again
4) if new rpm != old rpm, goto (1)

After a few iterations, the system stabilises. But not before you get lost in 
a twisty maze of dependencies, all alike and equally baffling.

cheers
john
 




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-12 17:52         ` dr john halewood
@ 2003-02-12 18:11           ` John Jasen
  2003-02-12 20:41           ` Mike A. Harris
  1 sibling, 0 replies; 14+ messages in thread
From: John Jasen @ 2003-02-12 18:11 UTC (permalink / raw)
  To: axp-list

On Wed, 12 Feb 2003, dr john halewood wrote:

> >So far (I admit, advanced workstation src rpms on a 7.3 i386 system) out
> >of 690 source rpms, I've had 480 successful compiles, 163 that failed on
> >dependencies to build it, and ... 47 failures
>
> Even that won't necessarily give you a suitably stable system, because you've
> probably built the rpms against one set of libraries (e.g. ncurses), then
> built an rpm of a later version of the same. To sort this type of problem out
> I borrowed a technique from the Immunix project (www.immunix.org - it's a
> version of redhat for x86 with security enhancements to gcc and glibc), which
> basically goes.

Ah, yes. I am thinking that if I get enough of the toochain assembled,
I'll ahev to plonk it into a chroot environment, and then go through the
entire build process again at least once.

IOW.

rh-73-base: build version-8.0.rpm (actually a munged 7.3/8.0 hybrid)
rh-73-base: install version-8.0-munged.rpm
rh-8.0-munged: build version-8.0.rpm
rh-8.0-munged: install version-8.0.rpm
rh-8.0-less-munged: (or dare we hope clean?)

--
-- John E. Jasen (jjasen1@umbc.edu)
-- User Error #2361: Please insert coffee and try again.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-12 17:34         ` Ted Goodridge, Jr
@ 2003-02-12 18:17           ` John Jasen
  0 siblings, 0 replies; 14+ messages in thread
From: John Jasen @ 2003-02-12 18:17 UTC (permalink / raw)
  To: axp-list

On Wed, 12 Feb 2003, Ted Goodridge, Jr wrote:

> > Now I just need glue to go and resolve dependencies and retry ...
>
> Fascinating!  (spock ears not included)  How do you make the jump from GCC
> versions and GlibC versions?

its more a make bootstrap; install bootstrap; make final idea, as Dr.
Halewood pointed out.

glibc will probably require special handling (actuallyinstalling the src
rpm, running through the spec file ...) as my logs from rpm --rebuild do
not indicate that it built for anything other than i386 (as I said, I'm
testing on a rh73-base/i386 for the moment ...)

gcc 2.96 compiled cleanly in this test, as did 3.0.4

--
-- John E. Jasen (jjasen1@umbc.edu)
-- User Error #2361: Please insert coffee and try again.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-12 17:52         ` dr john halewood
  2003-02-12 18:11           ` John Jasen
@ 2003-02-12 20:41           ` Mike A. Harris
  1 sibling, 0 replies; 14+ messages in thread
From: Mike A. Harris @ 2003-02-12 20:41 UTC (permalink / raw)
  To: axp-list

On Wed, 12 Feb 2003, dr john halewood wrote:

>Even that won't necessarily give you a suitably stable system, because you've 
>probably built the rpms against one set of libraries (e.g. ncurses), then 
>built an rpm of a later version of the same. To sort this type of problem out 
>I borrowed a technique from the Immunix project (www.immunix.org - it's a 
>version of redhat for x86 with security enhancements to gcc and glibc), which 
>basically goes.
>
>1) build rpms
>2) install rpms
>3) build rpms again
>4) if new rpm != old rpm, goto (1)
>
>After a few iterations, the system stabilises. But not before you get lost in 
>a twisty maze of dependencies, all alike and equally baffling.

That will work with some, but not all software.  Some software 
embeds the date into itself during compilation, or embeds things 
such as the OS kernel used to compile it, the build machine, the 
exact C compiler, etc.

XFree86 for example will not compile 100% identically every time 
it is built.  Functionally it is the same, but the exact binary 
image will not be the same, and so the resulting RPM packages 
wont be the same either.  The kernel does this as well, and 
likely glibc, and other packages also.


-- 
Mike A. Harris     ftp://people.redhat.com/mharris
OS Systems Engineer - XFree86 maintainer - Red Hat




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: a way to start Re: "unofficial" redhat releases/testing builds
  2003-02-12 17:06       ` a way to start " John Jasen
  2003-02-12 17:34         ` Ted Goodridge, Jr
  2003-02-12 17:52         ` dr john halewood
@ 2003-02-12 21:55         ` John Jasen
  2 siblings, 0 replies; 14+ messages in thread
From: John Jasen @ 2003-02-12 21:55 UTC (permalink / raw)
  To: axp-list

On Wed, 12 Feb 2003, John Jasen wrote:

> Now I just need glue to go and resolve dependencies and retry ...

cheap hack:

grep "is needed by" *.log | perl glue to get needed dependencies | sort |
uniq -u >needs

for i in `cat /path/to/needs`; do rpm -Uvh /path/to/rpms/$i*; done

You could probably combine them into one line

--
-- John E. Jasen (jjasen1@umbc.edu)
-- User Error #2361: Please insert coffee and try again.




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-02-12 21:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-03 18:16 "unofficial" redhat releases/testing builds Ted Goodridge, Jr
2003-02-03 18:19 ` John Jasen
2003-02-04  5:02   ` Mike A. Harris
2003-02-04 18:50     ` John Jasen
2003-02-12 17:06       ` a way to start " John Jasen
2003-02-12 17:34         ` Ted Goodridge, Jr
2003-02-12 18:17           ` John Jasen
2003-02-12 17:52         ` dr john halewood
2003-02-12 18:11           ` John Jasen
2003-02-12 20:41           ` Mike A. Harris
2003-02-12 21:55         ` John Jasen
2003-02-03 20:38 ` Stefan van der Eijk
2003-02-03 20:49 ` alpha] " R P Herrold
2003-02-03 23:24   ` Mike Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox