Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 298232

Summary: app-office/dia fails to find libpython26.a from the prefix
Product: Gentoo/Alt Reporter: Richard Connon <conan>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: denilsonsa
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 271855    
Bug Blocks:    

Description Richard Connon 2009-12-24 16:27:00 UTC
the configure script ends with this output...
checking for libpython2.6.a... not found
configure: error: could not find files required to build python plugin

the configure script doesn't take a path on --with-python

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2010-01-23 15:48:51 UTC
what does python -c "import sys; print sys.prefix" return?

and is usr/lib/python2.6/config/libpython2.6.a a valid symlink?
Comment 2 Fabian Groffen gentoo-dev 2010-01-23 15:50:07 UTC
(does it exist at all)
Comment 3 Fabian Groffen gentoo-dev 2010-01-23 15:50:48 UTC
hmmm, weird, proper gentoo linux doesn't have that file either
Comment 4 Fabian Groffen gentoo-dev 2010-01-23 15:57:09 UTC
-  if test -e "${py_config_dir}/libpython${PYTHON_VERSION}.a"; then
+  if test -e "$PYTHON_PREFIX/${py_lib}/libpython${PYTHON_VERSION}.so"; then

right.  braindead patch.
Comment 5 Richard Connon 2010-01-27 12:36:22 UTC
What's the status of this bug? Do you still need info?
Comment 6 Fabian Groffen gentoo-dev 2010-01-27 16:49:01 UTC
it's looking for .so, not .a, and you only have a .dylib.
Comment 7 Fabian Groffen gentoo-dev 2010-04-26 18:24:07 UTC
I applied a brute force sed hack to make the check look for the right extension instead of the hardcoded .so, which should fix this problem.