Bug 164344

Summary: galeon package mozilla requires breaks rebuilding
Product: [Fedora] Fedora Reporter: Seth Vidal <skvidal>
Component: galeonAssignee: Dams <anvil>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: alex, extras-qa, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-09 18:38:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 163942    

Description Seth Vidal 2005-07-27 04:27:50 UTC
Description of problem:
Galeon spec mozilla Requires breaks rebuilding in chroot.

Requires:   mozilla = %(rpm -q mozilla-devel --qf='%%{epoch}:%%{version}'
2>/dev/null)

this queries the rpmdb inside the chroot and if there is no mozilla-devel
package present resolves out to:
mozilla = ''

The mozilla version should be hard-coded in the spec file b/c if the
mozilla-devel installed in the chroot isn't the one you're intending to build
for you will get a faulty build.

This is why the above command was removed from the epiphany spec file as well.

Comment 1 Dams 2005-07-27 19:55:12 UTC
I dont see the problem here, because
1. If there's no mozilla-devel installed, the build will fail anyway because the
package buildrequires mozilla-devel >= 37:1.7.2, so the package can _requires at
runtime_ whatever, it doesnt matter.

and because 2. any version mozilla >= 37:1.7.2 is good enough to rebuild galeon.
that's why a strict version is not hardcoded.

Comment 2 Warren Togami 2005-07-28 01:28:14 UTC
I think the problem has to do with the .src.rpm being put together outside of
the buildroot?

https://www.redhat.com/archives/fedora-buildsys-list/2005-May/msg00021.html
Does the build system implement this looping algorithm for populating
BuildRequires within the buildroot?

If the above algorithm is done, then this kind of syntax works in the spec:
# Require Binary Compatible glib
# returns bogus value if glib2-devel is not installed in order for parsing to
succeed
# bogus value wont make it into a real package
%define glib_ver %([ -a %{_libdir}/pkgconfig/glib-2.0.pc ] && pkg-config
--modversion glib-2.0 | cut -d. -f 1,2 || echo -n "999")
Requires:       glib2 >= %{glib_ver}

The || prevents a non-zero return value which causes the intial loop of spec
parsing to fail.  Subsequent loops correct the value with stuff actually that
*should* be in the buildroot.

Comment 3 Alex Lancaster 2005-07-29 20:27:43 UTC
Any chance that this can be fixed, or a workaround/fix made to the spec file so
that galeon can be rebuilt soon?  This bug blocks the mozilla upgrade which is a
security fix.

Comment 4 Seth Vidal 2005-08-01 04:12:36 UTC
the srpm is rebuilt once inside the chroot.

and the aforementioned syntax is god-awful-ugly. so why we would want to have
that sort of syntax in a specfile is beyond me, even if the buildsystem can deal
with it.


Comment 5 Warren Togami 2005-08-01 04:41:25 UTC
Ugly, but it works, and makes it easier to maintain in the long term because you
never need to touch it again.


Comment 6 Dams 2005-08-01 20:03:56 UTC
'ugly'... taste and colors. I consider it really readable. I can comment the
line in the spec file if you think that make it more `sane'. 

And as Warren said, this makes the spec file easier to maintain and this is
exactly why i'm doing this. If that's not okay anymore, I'll let someone else
maintain the package. Just dont hate me because I'm lazy.

So, Seth, is the package okay or do we still have a problem ?

Comment 7 Seth Vidal 2005-08-01 20:32:43 UTC
I'm not blocking anything from going through.

it wouldn't build last time it was tried. I filed the bug b/c when I asked about
it on #fedora-devel caillon said that epiphany used to have that same Requires
in it and it was removed b/c it was considered wrong.



Comment 8 Alex Lancaster 2005-08-07 06:58:22 UTC
Could somebody please just fix the spec file to make it build and worry about
the niceities later?  It's been over two weeks since the mozilla update and this
blocks a security update.

Comment 9 Dams 2005-08-09 18:38:43 UTC
No. And i'm dropping galeon support in FE.

Comment 10 Alex Lancaster 2005-08-09 19:26:13 UTC
Looks like build failed for the same reason as before on ppc because of the spec
file problem, compare:

http://buildsys.fedoraproject.org/logs//4/1-galeon-1.3.21-9.fc4/ppc/root.log

with:

http://buildsys.fedoraproject.org/logs//4/525-galeon-1.3.21-12.fc4/ppc/root.log

Sorry to hear that you won't maintain galeon anymore, can anybody else pick this
up?  Why can't we just hardcode the mozilla version for the moment?  The spec
file will need to be updated for every mozilla release anyway.

Comment 11 Warren Togami 2005-08-09 21:59:54 UTC
Any existing cvsextras member or RH engineer may claim ownership of galeon if
they wish.


Comment 12 Alex Lancaster 2005-08-09 22:53:47 UTC
Seth modified spec file and rebuilt package.  Now in repository.

Comment 13 Seth Vidal 2005-08-10 03:15:58 UTC
I am not claiming the package.

I just wanted the problem to go away.