Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490330 - dev-libs/libdnet-1.12 should not unconditionally depend on dev-lang/python
Summary: dev-libs/libdnet-1.12 should not unconditionally depend on dev-lang/python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 01:24 UTC by Maxim Kammerer
Modified: 2013-11-08 15:11 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 Maxim Kammerer 2013-11-04 01:24:45 UTC
dev-libs/libdnet-1.12 was built with the following:
USE="-ipv6 -python -static-libs -test" PYTHON_TARGETS="python2_7 -python2_6"

# cat /var/db/pkg/dev-libs/libdnet-1.12/RDEPEND
>=dev-lang/python-2.7.5-r2:2.7 dev-python/python-exec:0/0=[python_targets_python2_7(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-)]

s/distutils/python-single/ in the ebuild seems to fix the issue, although I have no idea whether that's the right approach (see bug #482146).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-06 16:13:24 UTC
I made the included $PYTHON_DEPS depend on whether USE=python is set.
Comment 2 Maxim Kammerer 2013-11-07 22:07:13 UTC
Not fixed:

> cat /var/db/pkg/dev-libs/libdnet-1.12/RDEPEND
>=dev-lang/python-2.7.5-r2:2.7 dev-lang/python-exec:0/0=[python_targets_python2_7(-),-python_single_target_python2_6(-),-python_single_target_python2_7(-)]

From /usr/portage/eclass/distutils-r1.eclass:

# Please note that distutils-r1 sets RDEPEND and DEPEND unconditionally
# for you.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-11-07 22:16:33 UTC
You're looking for DISTUTILS_OPTIONAL [1].

[1]:http://wiki.gentoo.org/wiki/Python/distutils-r1#DISTUTILS_OPTIONAL
Comment 4 Maxim Kammerer 2013-11-07 23:11:27 UTC
Putting DISTUTILS_OPTIONAL=1 before the inherit line indeed fixes the issue.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-08 15:11:55 UTC
(In reply to Maxim Kammerer from comment #4)
> Putting DISTUTILS_OPTIONAL=1 before the inherit line indeed fixes the issue.

Added.