Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267224 - sci-chemistry/avogadro-0.9.3 should depend on dev-python/numpy
Summary: sci-chemistry/avogadro-0.9.3 should depend on dev-python/numpy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-23 15:06 UTC by Michelangelo Scopelliti
Modified: 2009-04-30 21:27 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 Michelangelo Scopelliti 2009-04-23 15:06:09 UTC
configuration of avogadro package searches for numpy headers. Avogadro ebuild is able to complete even without numpy, but I suggest to add a dependency and/or a keyword for numpy support.

Reproducible: Always
Comment 1 Sebastian Luther (few) 2009-04-26 19:04:43 UTC
=sci-chemistry/avogadro-0.9.2 and =sci-chemistry/avogadro-0.9.3 have missing dependencies if the python useflag is enabled. Unfortunately the build system silently disables python support if the dependencies are not found.

Patch for avogadro-0.9.3.ebuild (avogadro-0.9.2.ebuild needs it too).

--- avogadro-0.9.3.ebuild.orig	2009-04-26 20:46:21.000000000 +0200
+++ avogadro-0.9.3.ebuild	2009-04-26 20:53:30.000000000 +0200
@@ -21,7 +21,9 @@
 	glsl? ( >=media-libs/glew-1.5.0	)
 	python? (
 		>=dev-lang/python-2.5
-		>=dev-libs/boost-1.35
+		>=dev-libs/boost-1.35[python]
+		dev-python/numpy
+		dev-python/sip
 	)"
 DEPEND="${RDEPEND}
 	dev-cpp/eigen:2
Comment 2 Patrick Lauer gentoo-dev 2009-04-27 21:55:23 UTC
+  27 Apr 2009; Patrick Lauer <patrick@gentoo.org> avogadro-0.9.3:
+  Fixing python deps to include numpy. Fixes #267224. Will need
+  boost[python] deps for newer versions of boost.

The first boost ebuild with python useflag is .35.0-r5, which is currently masked.
Comment 3 Sebastian Luther (few) 2009-04-28 08:07:14 UTC
Missed that with the useflag for boost. It looks like the python support is alawys enabled for the old versions.

Here is what I get from the configure script with

dev-libs/boost-1.35.0-r2
dev-lang/python-2.5.4-r2
dev-python/numpy-1.2.1
no dev-python/sip

-- Searching for python dependencies...
-- [1/5] Boost Python
-- Boost version: 1.35.0
-- Found the following Boost libraries:
--   python
-- Boost Python found...
-- [2/5] Python Libraries
-- Found PythonLibs: /usr/lib64/libpython2.5.so
-- [3/5] Python Interpreter
-- Found PythonInterp: /usr/bin/python
-- [4/5] Numpy Module
-- Numpy headers found
-- [5/5] SIP Module
-- sip.h header NOT found - Python support disabled

after installing dev-python/sip-4.7.9 I get

-- Searching for python dependencies...
-- [1/5] Boost Python
-- Boost version: 1.35.0
-- Found the following Boost libraries:
--   python
-- Boost Python found...
-- [2/5] Python Libraries
-- Found PythonLibs: /usr/lib64/libpython2.5.so
-- [3/5] Python Interpreter
-- Found PythonInterp: /usr/bin/python
-- [4/5] Numpy Module
-- Numpy headers found
-- [5/5] SIP Module
-- Found sip.h header...
-- All python dependencies found - Python support enabled

That means python support is not fixed unless dev-python/sip in the dependency list.

For boost
>=dev-libs/boost-1.35
|| ( >=dev-libs/boost-1.35.0-r5[python] <dev-libs/boost-1.35.0-r5 )
does the job.
Comment 4 Patrick Lauer gentoo-dev 2009-04-30 21:27:02 UTC
+  30 Apr 2009; Patrick Lauer <patrick@gentoo.org> avogadro-0.9.3.ebuild:
+  Adding dev-python/sip to deps for #267224. Should really fix python deps
+  now. Again.