Prelink success story :)

Toshio toshio at tiki-lounge.com
Thu Feb 26 19:13:09 UTC 2004


On Thu, 2004-02-26 at 13:45, Dag Wieers wrote:
> On Thu, 26 Feb 2004, Toshio wrote:
> 
> > On Thu, 2004-02-26 at 12:40, Dag Wieers wrote: 
> > > > > > the 'Source-tag may not have macros' decision
> > >
> > > Well, if it's not a macro, you may have the situation where someone 
> > > changes the version, forgets to change the Source-tag and releases a newer 
> > > version with older software. Would the QA person notice that ?
> > 
> > Uhmm... 
> > 1] Most of the time this will fail because the builder only has the new
> > source in the SOURCE area.
> > 
> > 2] If we have a messy SOURCE area, it will still fail because the
> > tarball will create the directory foo-oldver and the rpmbuild process
> > will try (and fail) to access foo-newver.
> > 
> > 3] In the few cases where this doesn't fail (because someone decided
> > to use %setup -n foo-oldver [I've never seen this construct, only
> > %{name}-%{version} which will fail b/c #2] or the tarball doesn't
> > include versions in its toplevel directory [I have seen this]) you do
> > have to rely on your QA people.  But it is pretty obvious to spot.
> > (Why am I downloading the 0.12 tarball to build the 0.15 RPM?)
> 
> If it is non mandatory, why are we still discussing this ?
> 
Possibly because someone won't admit when they're wrong? :-)
Could be me, but you'll have to show me how.

> Yes, in my situation it wouldn't be triggered by 
> 
> 	1] I may not be your average builder
> 	2] I have many packages that _have_ to change the %setup line, 
> 	   230 of the 622 spec-files which is over 30% (remember perl-packages ?)
Doesn't matter.  I took a look at several of your perl spec's.
They do:
%setup -n %{rname}-%{version}
which will get caught by #2 above. (Your complaint is that you can
change version and forget to change source.  But if you use the version
macro in %setup, rpmbuild will still fail because the version and
untar'd sourcedir name don't match.)

> 	3] I don't rely on QA people as I'd rather automate and assume a 
> 	   QA person has better things to do.
That's fine.  But your question was whether the QA person would catch
the problem...

> But since it's not mandatory, let's not go into this deeper.
> 
There was a John Wayne movie where he went down the river on a barge
with a fiesty old lady and a gatling gun.  At the end of the movie John
Wayne says "Damn she always has to get the last word."

-Toshio
-- 
Toshio <toshio at tiki-lounge.com>





More information about the fedora-devel-list mailing list