Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158584 - libglade-java incorrectly depends on libgnome-java when "gnome" is not in USE
Summary: libglade-java incorrectly depends on libgnome-java when "gnome" is not in USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-19 13:31 UTC by scratch
Modified: 2007-02-17 11:30 UTC (History)
1 user (show)

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


Attachments
ebuild patch (libglade-java.patch,799 bytes, patch)
2007-01-05 03:57 UTC, Vlastimil Babka (Caster) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description scratch 2006-12-19 13:31:03 UTC
As of today this bug holds for libglade-java-2.12.2-r1.ebuild, libglade-java-2.12.6.ebuild and libglade-java-2.12.6-r1.ebuild.

Steps to reproduce:
USE="-gnome" emerge -pvDt libglade-java

Actual results:
Lots of gnome-specific libraries in the dependency tree.

Expected results:
No gnome-specific library in the dependency tree.

Proposed fix:
1. Move libgnome-java to the gnome? (...) conditional block.
2. Use the pkg_setup() as in libglade-java-2.12.2-r1.ebuild, but add:
     use gnome || myflags="{$myflags} --without-gnome"
Comment 1 scratch 2006-12-19 13:32:24 UTC
Sorry, that was src_compile(), not pkg_setup()
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-04 13:03:15 UTC
It's also missing libgtk-java (hard) dependency...
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-05 03:57:09 UTC
Created attachment 105472 [details, diff]
ebuild patch

this worked for me (both USE=gnome and -gnome) not sure if these extra libs are really needed tho.

I've noticed another problem - these java dependencies don't get recorded into package.env :/
Comment 4 Andrew Cowie 2007-01-05 04:07:51 UTC
Oh yeah, such a mess. I spent 6 hours the other day trying to debug a one line m4 autoconf macro problem to make the old java-gnome build on Solaris.

And people wonder why we're deep sixing it :)

FWIW, for the new 4.0 bindings it is looking increasingly like it will be 
a single java-gnome source release, with a number of .jar and .so build products allowing distros to package them as individual files if they wish.

AfC
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2007-02-17 11:30:20 UTC
(In reply to comment #3)
> Created an attachment (id=105472) [edit]
> ebuild patch
> 

Patch committed.

> this worked for me (both USE=gnome and -gnome) not sure if these extra libs are
> really needed tho.
> 
> I've noticed another problem - these java dependencies don't get recorded into
> package.env :/
> 

Recording was fixed in bug 158249.