Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17210 - net-www/galeon: bad dependency on fixed mozilla version
Summary: net-www/galeon: bad dependency on fixed mozilla version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 17285 17286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-10 05:54 UTC by Stanislav Brabec
Modified: 2003-03-25 08:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2003-03-10 05:54:24 UTC
Galeon can be built with more mozilla versions. It is not best idea to depend on
single version:

1.2.8
- Compatible with 1.01, 1.1, 1.2.1, 1.3a, 1.3b

1.2.7
- Compatible with 1.0.1, 1.1, 1.2

1.2.6
- Compatible with 1.0.x, 1.1.x and 1.2a

Maybe we can add two dependencies for all ebuilds:
>=net-www/mozilla-${REQ_MOZ_VER}*
<=net-www/mozilla-${MAX_MOZ_VER}*


Reproducible: Always
Steps to Reproduce:
Comment 1 Spider (RETIRED) gentoo-dev 2003-03-10 19:21:57 UTC
Can you also please suggest how to automatically (in a way that works with -binary- packages) detect and depend on the right version of mozilla?

The reason here is that galeon has to be run against the same version it was compiled against, and also needs a compile-time flag for the version/branch in use.   to make this work with building would require some hacking logic (what differs the mozilla versions, find and fix with the compile-time-flag) but would also completely bork with any form of binary package since we cannot dynamically depend on "any" mozilla version then.

so, the current way is actually designed as such to avoid breakage.

(ramble provided to give a sense of clarity in the issue)

Wontfix unless you can figure this out for me.
Comment 2 Stanislav Brabec 2003-03-11 05:06:30 UTC
This is valid for many other packages, that upgrade of some library breaks package, but it is not reason to hardwire any version to ebuild. For example, updating of some GNOME components breaks all binaries dependent on it.

This breakage should be solved in general way by portage, not by packages (another bad example is gnome-extra/gal, where porters provide links to old, possibly incompatible libraries).

I think it is not so bad to allow more versions of mozilla. If one upgrades mozilla and forgets to recompile galeon, galeon will show warning recommending recompilation.
Comment 3 Spider (RETIRED) gentoo-dev 2003-03-11 05:27:17 UTC
*** Bug 17285 has been marked as a duplicate of this bug. ***
Comment 4 Spider (RETIRED) gentoo-dev 2003-03-11 05:27:25 UTC
*** Bug 17286 has been marked as a duplicate of this bug. ***
Comment 5 Spider (RETIRED) gentoo-dev 2003-03-11 05:29:15 UTC
still, using binary hacks to find what we depend on is ugly. -very- so.


azarah, you've been handling most of the mozilla integration so far, your take on this is?
Comment 6 foser (RETIRED) gentoo-dev 2003-03-11 08:19:27 UTC
my take is that we should never make it depend on a mozilla _dev_ release. And the choice between 1.0.1 and 1.2.1 still imo should be fairly obvious be the 1.2.1 release because of improved stability and performance. 

I dont really see the problem, the ppl who do notice this can get around it easily by fixing the ebuild themselves. The others (biggest bunch out there) should get the best possible version (and imo that would be eg. galeon-1.2.8 against moz-1.2.1 ).

And the gal example isn't imo really relevant, cause it shouldnt really break compatability (since 0.18 or so 0.23 seems the first one that does) while we know that mozilla does. And i don't like the current gal situation at all, but it's the best solution at this time (we cannot force rebuilds of reverse deps).
Comment 7 Stanislav Brabec 2003-03-11 08:31:38 UTC
Not allowing mozilla dev causes cyclic mozilla recompilation 1.2.1 <-> 1.3b in devel branch (ACCEPT_KEYWORDS="~x86"). After each odd
ACCEPT_KEYWORDS="~x86" emerge --update --deep world
galeon become broken and after each even it become again working.

I have few ideas about targetting reverse deps for recompilation, but these ideas will be here off-topic.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-11 13:12:30 UTC
Well, I fixed it to be able to detect the installed version of mozilla:

-------------------------------------------------------
        local moz_ver="`pkg-config --modversion mozilla-xpcom | cut -d. -f1,2 2>/dev/null`"

        [ -z "${moz_ver}" ] && moz_ver="${REQ_MOZ_VER}"
----------------------------------------------------------

Thus if you have mozilla 1.3b installed (like me), you can just emerge galeon,
no problem.

Anybody however that do reside to the unstable tree, should fairly know what
they are doing.  MEANING they SHOULD know that downgrading mozilla will
need a galeon recompile.  Anyhow, Galeon do biatch about this.

My take:  if you use unstable, or mix it, you should: emerge -u --deep world -p

AND THEN DECIDE WHAT TO UPDATE MANUALLY.

Else please use stable and stop bitching.
Comment 9 foser (RETIRED) gentoo-dev 2003-03-25 08:14:20 UTC
'fix it' == 'close it' :)