Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204525 - sys-libs/glibc - USE flag "gd" does not add dependency media-libs/gd
Summary: sys-libs/glibc - USE flag "gd" does not add dependency media-libs/gd
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 300367 326213 425324 435574 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-06 09:26 UTC by Marti Raudsepp
Modified: 2019-12-02 08:11 UTC (History)
5 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 Marti Raudsepp 2008-01-06 09:26:59 UTC
Apparently the sys-libs/glibc-2.7-r1 ebuild specifies IUSE="gd"

The "gd" USE flag is described as the media-libs/gd graphics manipulation library in use.desc; however, enabling this flag on glibc does not pull in media-libs/gd as a dependency, so at the very least this flag's description is not applicable to glibc.

Furthermore, skimming the glibc ebuild and its included eclasses, there don't appear to be any other references to the "gd" USE flag at all (though I could be missing something).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-06 09:30:25 UTC
(In reply to comment #0)
> Furthermore, skimming the glibc ebuild and its included eclasses, there don't
> appear to be any other references to the "gd" USE flag at all (though I could
> be missing something).

Yeah, you missed the whole ${PORTDIR}/sys-libs/glibc/files/eblits/ thing...
Comment 2 SpanKY gentoo-dev 2008-03-16 01:16:50 UTC
glibc does use gd when USE=gd ... it creates graphical test apps that link against gd
Comment 3 Marti Raudsepp 2008-03-16 01:41:35 UTC
Then it needs a dependency doesn't it?
Comment 4 SpanKY gentoo-dev 2008-03-16 02:08:03 UTC
i'm not adding a dep on gd in glibc
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-01-10 08:51:02 UTC
*** Bug 300367 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-06-29 19:56:01 UTC
*** Bug 326213 has been marked as a duplicate of this bug. ***
Comment 7 Jeff Mitchell 2010-06-29 19:59:27 UTC
(In reply to comment #4)
> i'm not adding a dep on gd in glibc
> 

Then how about removing the associated USE flag and preventing the programs requiring the dep from being built?
Comment 8 Jeff Mitchell 2010-06-29 20:24:22 UTC
Or, putting the bits that depend on gd into a separate ebuild?
Comment 9 Christian Theune 2010-07-09 10:01:05 UTC
I'd like to challenge the WONTFIX decision. 

The use flag causes some programs (like memusagestat) to be build with symbols referencing libgd.

In an environment that uses binpackages this can cause revdep-rebuild to keep falling over glibc: re-emerging doesn't fix the situation, although the use flag is set. 

I think *something* needs to be done.
Comment 10 Jeff Mitchell 2010-07-10 12:02:44 UTC
This also means, IIRC, that even in a non-binpkg environment, if you remove other software depending on gd (not a stretch, in a server environment) and thus emerge --depclean gets rid of gd altogether, you now have broken binaries from glibc because of a dependency failure, but one which again won't be resolved with revdep-rebuild.
Comment 11 SpanKY gentoo-dev 2012-07-09 12:28:37 UTC
*** Bug 425324 has been marked as a duplicate of this bug. ***
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2012-09-20 04:39:19 UTC
*** Bug 435574 has been marked as a duplicate of this bug. ***
Comment 13 Egor Y. Egorov 2012-09-20 04:49:08 UTC
Can anybody explain why this problem can not be solved?
Thanks.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2012-09-20 06:43:58 UTC
(In reply to comment #13)
> Can anybody explain why this problem can not be solved?
> Thanks.

Because the built tools are not important at all, and adding the dependency would only introduce circular dependency for a toolchain@ owned package

If you really find these tools useful, just record media-libs/gd in your world

# emerge --noreplace media-libs/gd
or
# emerge media-libs/gd
Comment 15 Egor Y. Egorov 2012-09-20 07:57:57 UTC
(In reply to comment #14)
> Because the built tools are not important at all, and adding the dependency
> would only introduce circular dependency for a toolchain@ owned package

Сircular dependency - not an argument, because if there is a need to install glibc with these tools, and no media-libs/gd in system, glibc does not install them, although USE=gd is set. This is wrong. In any case it is necessary to recompile glibc after installing media-libs/gd, which is equivalent to resolve circular dependency (USE=-gd emerge -1 glibc && emerge -1 media-libs/gd && USE=gd emerge -1 glibc)
Necessary to do the same thing, but in the current situation caused strange collision.
After all, if these tools are unimportant, put "sys-libs/glibc gd" into use.mask in profile.
I do not think this bug should be marked as WONTFIX.

> If you really find these tools useful, just record media-libs/gd in your
> world

In my binhost I put "sys-libs/glibc -gd"  into p.use. 
However, I spent a lot of time to find out the causes of broken dependencies. I do not like the situation. And not to me alone, according to so many reports that duplicate this.