Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546212 - dev-libs/libnatspec-0.2.6-r1: Fails to build with USE=-python_targets_python2_7
Summary: dev-libs/libnatspec-0.2.6-r1: Fails to build with USE=-python_targets_python2_7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 19:26 UTC by Jonathan Callen (RETIRED)
Modified: 2015-07-26 21:41 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 Jonathan Callen (RETIRED) gentoo-dev 2015-04-10 19:26:09 UTC
Because dev-libs/libnatspec-0.2.6-r1 inherits python-single-r1 and does not implement its own pkg_setup(), the eclass assumes that python support is always required.  As it is optional in this case, the python-single-r1_pkg_setup function should itself be called conditionally, like so:

pkg_setup() {
    use python && python-single-r1_pkg_setup
}
Comment 1 Nikoli 2015-06-12 22:32:13 UTC
Same problem here, please fix.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-07-26 21:41:03 UTC
+  26 Jul 2015; Michał Górny <mgorny@gentoo.org> libnatspec-0.2.6-r1.ebuild:
+  Add proper pkg_setup() to fix USE=-python, bug #546212.
+  https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/185 by a17r.