-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The package carries explcit dependencies on python26 and
python26-shlibs.  However, it allows for detection of other pythons.
With Fink's "python" installed and pointing to python2.7, this results in:

checking whether Python support is requested... autodetect
checking for a Python interpreter with version >= 2.4... python
checking for python... /sw32/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory...
${prefix}/lib/python2.7/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.7/site-packages
checking for headers required to compile python extensions... found
checking whether we can build a shared library depending on libpython... no
configure: WARNING: Python not found, disabling python support
configure: creating ./config.status
...
g++ -g -O2 -o .libs/gnome-commander cap.o dirlist.o
eggcellrendererkeys.o filter.o gnome-cmd-about-plugin.o
gnome-cmd-advrename-dialog.o gnome-cmd-advrename-lexer.o gnome-cmd-app.o
gnome-cmd-bookmark-dialog.o gnome-cmd-chmod-component.o
gnome-cmd-chmod-dialog.o gnome-cmd-chown-component.o
gnome-cmd-chown-dialog.o gnome-cmd-clist.o gnome-cmd-cmdline.o
gnome-cmd-combo.o gnome-cmd-con-device.o gnome-cmd-con-dialog.o
gnome-cmd-con-ftp.o gnome-cmd-con-home.o gnome-cmd-con-list.o
gnome-cmd-con-smb.o gnome-cmd-con.o gnome-cmd-convert.o gnome-cmd-data.o
gnome-cmd-delete-dialog.o gnome-cmd-dir-indicator.o gnome-cmd-dir.o
gnome-cmd-file-collection.o gnome-cmd-file-list.o
gnome-cmd-file-popmenu.o gnome-cmd-file-props-dialog.o
gnome-cmd-file-selector.o gnome-cmd-file.o gnome-cmd-hintbox.o
gnome-cmd-key-shortcuts-dialog.o gnome-cmd-list-popmenu.o
gnome-cmd-main-menu.o gnome-cmd-main-win.o gnome-cmd-make-copy-dialog.o
gnome-cmd-menu-button.o gnome-cmd-mkdir-dialog.o gnome-cmd-notebook.o
gnome-cmd-options-dialog.o gnome-cmd-path.o
gnome-cmd-patternsel-dialog.o gnome-cmd-pixmap.o gnome-cmd-plain-path.o
gnome-cmd-prepare-copy-dialog.o gnome-cmd-prepare-move-dialog.o
gnome-cmd-prepare-xfer-dialog.o gnome-cmd-profile-component.o
gnome-cmd-remote-dialog.o gnome-cmd-quicksearch-popup.o
gnome-cmd-rename-dialog.o gnome-cmd-search-dialog.o gnome-cmd-smb-auth.o
gnome-cmd-smb-net.o gnome-cmd-smb-path.o gnome-cmd-style.o
gnome-cmd-treeview.o gnome-cmd-user-actions.o gnome-cmd-xfer.o
gnome-cmd-xfer-progress-win.o gnome-cmd-xml-config.o history.o
imageloader.o ls_colors.o main.o owner.o plugin_manager.o utils.o
- -Wl,-framework -Wl,CoreFoundation -Wl,-bind_at_load  -L/sw32/lib
- -L/sw32/lib/gnome-vfs2.16 -L/usr/X11/lib -L/sw32/lib/python2.6/config
/sw32/lib/libexiv2.dylib -ltag /sw32/lib/libgsf-1.dylib
/sw32/lib/libxml2.dylib -lpython2.7 -ldl ../libgcmd/.libs/libgcmd.dylib
/sw32/lib/libgnomeui-2.dylib -lSM -lICE /sw32/lib/libbonoboui-2.dylib
/sw32/lib/libgnomecanvas-2.dylib /sw32/lib/libgnome-2.dylib
/sw32/lib/libpopt.dylib /sw32/lib/libbonobo-2.dylib
/sw32/lib/libbonobo-activation.dylib /sw32/lib/libORBit-2.dylib
/sw32/lib/libart_lgpl_2.dylib /sw32/lib/libgtk-x11-2.0.dylib
/sw32/lib/libgdk-x11-2.0.dylib /sw32/lib/libatk-1.0.dylib
/sw32/lib/libgio-2.0.dylib
/sw32/lib/pango-ft219/lib/libpangoft2-1.0.dylib
/sw32/lib/libgdk_pixbuf-2.0.dylib
/sw32/lib/pango-ft219/lib/libpangocairo-1.0.dylib
/sw32/lib/libcairo.dylib /sw32/lib/pango-ft219/lib/libpango-1.0.dylib
/sw32/lib/freetype219/lib/libfreetype.dylib -lfontconfig
/sw32/lib/gnome-vfs2.16/libgnomevfs-2.dylib /sw32/lib/libgconf-2.dylib
/sw32/lib/libgthread-2.0.dylib /sw32/lib/libgmodule-2.0.dylib
/sw32/lib/libgobject-2.0.dylib /sw32/lib/libglib-2.0.dylib
/sw32/lib/libintl.dylib dialogs/libgcmd-dialogs.a tags/libgcmd-tags.a
intviewer/libgviewer.a
ld: library not found for -lpython2.7
collect2: ld returned 1 exit status

The config.log has:

configure:24037: checking for working mmap
configure:24184: gcc -o conftest -g -O2 -I/sw32/include
- -L/sw32/lib/python2.6/config -L/sw32/lib conftest.c  >&5
configure:24188: $? = 0
configure:24194: ./conftest
configure:24198: $? = 0
configure:24215: result: yes
configure:24228: checking whether Python support is requested
configure:24237: result: autodetect
configure:24273: checking for a Python interpreter with version >= 2.4
configure:24288: python -c import sys, string # split strings by '.' and
convert to numeric. Append some zeros # because we need at least 4
digits for the hex conversion. minver = map(int, string.split('2.4',
'.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex =
(minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
configure:24291: $? = 0
configure:24298: result: python
configure:24306: checking for python
configure:24324: found /sw32/bin/python
configure:24336: result: /sw32/bin/python
configure:24354: checking for python version
configure:24361: result: 2.7
configure:24373: checking for python platform
configure:24380: result: darwin
configure:24387: checking for python script directory
configure:24395: result: ${prefix}/lib/python2.7/site-packages
configure:24404: checking for python extension module directory
configure:24412: result: ${exec_prefix}/lib/python2.7/site-packages
configure:24432: checking for headers required to compile python extensions
configure:24456: gcc -E -I/sw32/include -I/sw32/include/python2.7 conftest.c
configure:24463: $? = 0
configure:24468: result: found
configure:24501: checking whether we can build a shared library
depending on libpython
configure:24523: result: no
configure:24534: WARNING: Python not found, disabling python support
configure:24773: creating ./config.status

Without "python" installed, we get (on 10.6):

checking whether Python support is requested... autodetect
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... darwin
checking for python script directory...
${prefix}/lib/python2.6/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.6/site-packages
checking for headers required to compile python extensions... found
checking whether we can build a shared library depending on libpython... no
configure: WARNING: Python not found, disabling python support
configure: creating ./config.status

but the package builds, and even links to fink's python:

$ otool -L /sw64/bin/gnome-commander | grep python
        /sw64/lib/python2.6/config/libpython2.6.dylib (compatibility version
2.6.0, current version 2.6.0)

However, it is using headers from Apple's Python:

g++ -DHAVE_CONFIG_H -I. -I..  -Wall -I.. -I/sw64/include/libgnomeui-2.0
- -I/sw64/include/libgnome-2.0 -I/sw64/include/libbonoboui-2.0
- -I/sw64/include/libgnomecanvas-2.0 -I/sw64/include/gtk-2.0
- -I/sw64/include/gnome-vfs-2.0
- -I/sw64/lib/gnome-vfs2.16/gnome-vfs-2.0/include -I/sw64/include/glib-2.0
- -I/sw64/lib/glib-2.0/include -I/sw64/include/libbonobo-2.0
- -I/sw64/include/orbit-2.0 -I/sw64/include/bonobo-activation-2.0
- -I/sw64/include/libart-2.0 -I/sw64/lib/gtk-2.0/include
- -I/sw64/include/atk-1.0 -I/sw64/include/cairo -I/sw64/include/pango-1.0
- -I/sw64/include/freetype2 -I/sw64/include -I/sw64/include/gconf/2
- -I/usr/X11R6/include -I/usr/X11/include -DORBIT2=1
- -I/sw64/include/gnome-vfs-2.0
- -I/sw64/lib/gnome-vfs2.16/gnome-vfs-2.0/include -I/sw64/include/gconf/2
- -I/sw64/include/glib-2.0 -I/sw64/lib/glib-2.0/include
-
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
- -DDATADIR=\""/sw64/share"\"
- -DPLUGIN_DIR=\""/sw64/lib/gnome-commander/plugins"\" -I/sw64/include  -g
- -O2 -c -o cap.o cap.cc

It's even worse on 10.5, where you're building with Python 2.5 headers
from the system.

How about actually using the --enable-python flag in the
ConfigureParams, since there's an explicit dependency?

There doesn't seem to be a flag to set a particular Python interpreter,
but just using SetLDFLAGS: -L%p/lib/python2.6/config doesn't suffice to
keep it from detecting the wrong Python.
- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2SHNAACgkQB8UpO3rKjQ/9sgCeINIGAlNeUX9BsqXGJviOsymb
pCIAn2TQl0xU+Q9chKZ9yIFV8TpV+p3E
=W/dr
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to