Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409901 - dev-java/icedtea-7.2.1 ignores USE flags
Summary: dev-java/icedtea-7.2.1 ignores USE flags
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords: Bug
: 419543 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-27 16:54 UTC by Richard Yao (RETIRED)
Modified: 2012-06-04 06:56 UTC (History)
3 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 Richard Yao (RETIRED) gentoo-dev 2012-03-27 16:54:05 UTC
The ebuild appears to place everything in RDEPEND in DEPEND, but bypasses the USE flags by directly referencing COMMON_DEP, CUPS_COMMON_DEP, X_COMMON_DEP and ALSA_COMMON_DEP.

I am not sure what the point of the USE flags are, or why RDEPEND is even in use. I ran into this issues on ppc64-linux, but I wasn't able to try fixing this because of circular dependencies.

This ebuild is not present in the prefix tree and the USE flag issue is present on Gentoo Linux, so I am filing this against the main tree. It should be a problem on all architectures.
Comment 1 Richard Grenville 2012-03-28 01:29:46 UTC
Seems dev-java/icedtea-7.2.1 always requires all the X libraries and cups at build time. http://icedtea.classpath.org/wiki/BuildRequirements

If you have the X USE flag disabled, X support will only be removed in src_install(), after icedtea is already built:
---
        # Ensures HeadlessGraphicsEnvironment is used.
        if ! use X; then
                rm -r jre/lib/$(get_system_arch)/xawt || die
        fi
---

So the X USE flag only affects runtime dependencies, not build time dependencies.

The cups / alsa USE flag... I don't see any references of them in the ebuild, except in RDEPEND. cups is needed for X, but I don't know what alsa is used for. Maybe it's somehow used in an eclass the ebuild inherits?
---
# cups is needed for X. #390945 #390975
---
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2012-03-28 22:19:06 UTC
The modified meaning of flags is explained in metadata.xml - they affect only runtime and the behavior is useful for binpkg users. We don't have the manpower to make the flags work also at buildtime and upstream doesn't see this as a priority. Patches are welcome, or suggestions how to communicate this better than metadata.xml local use descriptions.
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-06-04 06:56:49 UTC
*** Bug 419543 has been marked as a duplicate of this bug. ***