Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278004 - dev-python/pyyaml-3.08 has automagic dependancy on dev-libs/libyaml
Summary: dev-python/pyyaml-3.08 has automagic dependancy on dev-libs/libyaml
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 277972
  Show dependency tree
 
Reported: 2009-07-16 02:29 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2009-09-05 16:46 UTC (History)
1 user (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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-16 02:29:34 UTC
With the libyaml use flag disabled you get this in config.log:

libyaml is not found or a compiler error: forcing --without-libyaml
(if libyaml is installed correctly, you may need to
 specify the option --include-dirs or uncomment and
 modify the parameter include_dirs in setup.cfg)

However if libyaml is installed and the USE flag is still turned off, the message disappears. What you should do is something like this:

src_compile() {
    distutils_src_compile $(use_with libyaml)
}

...I think. (untested)
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-05 16:32:40 UTC
(In reply to comment #0)
> src_compile() {
>     distutils_src_compile $(use_with libyaml)
> }

It doesn't work, because distutils_src_compile() uses "$@" as options of "build" command, but setup.py of dev-python/pyyaml supports only global option --with-libyaml / --without-libyaml.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-05 16:46:52 UTC
I added support for DISTUTILS_GLOBAL_OPTIONS in distutils.eclass.

This bug has been fixed in dev-python/pyyaml-3.09.