On 2/20/2014 4:35 AM, Martin Costabel wrote:
On 20/02/14 03:34, Alexander Hansen wrote:
On 2/19/14 5:16 PM, zooloo wrote:
[]
configure:22390: checking whether to build python plugin
configure:22401: result: yes
config.status:1545: creating src/plugins/python/Makefile
config.status:1545: creating src/plugins/python/examples/Makefile
ac_cv_env_PYTHON_value=/sw/bin/python2.7
ac_cv_path_PYTHON_CONFIG=/sw/bin/python2.7-config
am_cv_python_pyexecdir='${exec_prefix}/lib/python2.7/site-packages'
am_cv_python_pythondir='${prefix}/lib/python2.7/site-packages'
pkg_cv_PYGTK_CFLAGS='-I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
-I/sw/lib/glib-2.0/include'
PYGTK_CFLAGS='-I/sw/include/pygtk-2.0 -I/sw/include/glib-2.0
-I/sw/lib/glib-2.0/include'
PYGTK_LIBS='-L/sw/lib -lgobject-2.0 -lglib-2.0 -lintl'
PYTHON='/sw/bin/python2.7'
PYTHON_CFLAGS='-I/sw/include/python2.7 -I/sw/include/python2.7'
PYTHON_CONFIG='/sw/bin/python2.7-config'
PYTHON_EXEC_PREFIX='${exec_prefix}'
PYTHON_LIBS='-ldl -Wl,-framework,CoreFoundation -lpython2.7'
PYTHON_PLATFORM='darwin'
PYTHON_PREFIX='/sw'
PYTHON_SHARED_LIB='/sw/lib/python2.7/config/libpython2.7.dylib'
PYTHON_VERSION='2.7'
pkgpyexecdir='${pyexecdir}/claws-mail'
pkgpythondir='${pythondir}/claws-mail'
pyexecdir='${exec_prefix}/lib/python2.7/site-packages'
pythondir='${prefix}/lib/python2.7/site-packages'


I get the same results on 10.8.  What do you get from

fink dumpinfo -ePYTHONPATH claws-mail

On 10.9, it builds OK for me, with the same output. In fact, the
'-lpython2.7' resolves to /usr/lib/libpython2.7.dylib, that is Apple's
Python-2.7 framework, which probably doesn't exist on 10.6. It may also
not be what is intended, even on 10.9, seeing that everything else
python-related points to Fink's python2.7. There needs to be a
'-L/sw/lib/python2.7/config' added somewhere or '-lpython2.7' replaced
by '/sw/lib/python2.7/config/libpython2.7.dylib'. I don't see
immediately where, so I am CCing the maintainer.

Another strange thing is the DescPackaging: "Python plugin disabled due
to duplicate PyGTK and PyGobject symbols.", whereas the configure flags
contain '--disable-perl-plugin'.

Thanks, Martin. This is not the first time I've been caught by the fact that fink-python doesn't have /sw/lib/libpythonX.Y.dylib. I've now fixed the linking in the 10.7 tree to use Fink-python. (The DescPackaging comment was a leftover from before I had fixed the duplicate symbols failure.)

Zoo Loo, please try the attached .info file (the .patch is the same) on your 10.6 machine.

Hanspeter

Package: claws-mail
Version: 3.9.3
Revision: 1
Description: GTK+ based lightweight and fast e-mail client
License: GPL
### Feel free to modify and take it over
Maintainer: Hanspeter Niederstrasser <nie...@users.sourceforge.net>
Depends: <<
        atk1-shlibs,
        cairo-shlibs,
        compface-shlibs,
        cyrus-sasl2-shlibs,
        dbus-glib1.2-shlibs,
        dbus1.3-shlibs,
        enchant1-shlibs,
        expat1-shlibs,
        fontconfig2-shlibs,
        freetype219-shlibs,
        glib2-shlibs,
        gnutls28-shlibs,
        gpgme11-shlibs,
        gtk+2,
        gtk+2-shlibs,
        libarchive31-shlibs,
        libcanberra-gtk0-shlibs,
        libcanberra0-shlibs,
        libcurl4-shlibs,
        libetpan-shlibs,
        libgettext8-shlibs,
        libgpg-error-shlibs,
        libiconv,
        libnotify-shlibs,
        libsoup-gnome2.4.1-shlibs,
        libsoup2.4.1-ssl-shlibs,
        libxml2-shlibs,
        openldap24-shlibs,
        pango1-xft2-ft219-shlibs,
        poppler8-glib-shlibs,
        pygobject2-py27,
        pygtk2-gtk-py27,
        python27,
        startup-notification-shlibs,
        webkit-1.0.2-shlibs,
        x11-shlibs
<<
BuildDepends: <<
        atk1,
        cairo,
        compface-dev,
        dbus-glib1.2-dev,
        dbus1.3-dev,
        enchant1-dev,
        fink-package-precedence,
        glib2-dev,
        gnutls28,
        gpgme11,
        gtk+2-dev,
        libarchive31,
        libcanberra-gtk0,
        libcanberra0,
        libcurl4,
        libetpan,
        libgcrypt,
        libgettext8-dev,
        libgpg-error,
        libiconv-dev,
        libnotify,
        libsoup-gnome2.4.1,
        libsoup2.4.1-ssl,
        libxml2,
        openldap24-dev,
        pango1-xft2-ft219-dev,
        pkgconfig,
        poppler8-glib,
        pygobject2-py27-dev,
        pygtk2-gtk-py27-dev,
        startup-notification-dev,
        system-openssl-dev,
        webkit-1.0.2,
        x11-dev
<<
Source: mirror:sourceforge:sylpheed-claws/Claws%%20Mail/%v/%n-%v.tar.bz2
Source-MD5: 0158b5e6b6d6866f9a75fd288a4edf04
Source-Checksum: SHA1(82026ac7dfc0123544def8ef338a4d0746671284)
Source2: mirror:debian:pool/main/c/%n/%n_%v-1.debian.tar.gz
Source2-MD5: c3a5986e25ab03cc054950ba0de8e868
Source2-Checksum: SHA1(bdd3ca028cf74401b174143773b108351f9f4d88)
SourceDirectory: %n-%v
PatchFile: %n.patch
PatchFile-MD5: 9535ec67e286ec0c16770a4e8a9567ac
PatchScript: <<
        %{default_script}
        patch -p1 < ../debian/patches/10desktop_file_categories.patch
        patch -p1 < ../debian/patches/11mark_trashed_as_read.patch
        patch -p1 < ../debian/patches/12fix_manpage_header.patch
        ### Looks for python2.7.so
        perl -pi -e 
's|libpython\$\{PYTHON_VERSION\}.so|%p/lib/python\${PYTHON_VERSION}/config/libpython\${PYTHON_VERSION}.dylib|g'
 configure

        # not yet in fink
        perl -pi -e 's/(LIBINDICATE_REQUIRED\s*=).*/${1}99999.FORCE.NONDETECT/' 
configure
<<
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib/python2.7/config -L%p/lib -L/usr/X11R6/lib
ConfigureParams: <<
        --disable-static \
        --enable-dependency-tracking \
        --disable-jpilot \
        --disable-gdata-plugin \
        --disable-geolocation-plugin \
        --disable-perl-plugin
<<
CompileScript: <<
        PYTHON=%p/bin/python2.7 ./configure %c
        make -w
        fink-package-precedence .
<<
InstallScript: <<
        make install DESTDIR=%d
        # remove dev files that are not needed.
        rm -r %i/include
        rm -r %i/lib/pkgconfig
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README RELEASE_NOTES TODO
PostInstScript: <<
        if [ configure = "$1" ]; then
                %p/bin/gtk-update-icon-cache -f -t %p/share/icons/hicolor
        fi
<<
PostRmScript: <<
        if [ upgrade != "$1" ]; then
                %p/bin/gtk-update-icon-cache -f -t %p/share/icons/hicolor
        fi
<<
Homepage: http://www.claws-mail.org/
DescDetail: <<
Claws Mail is a GTK+ based, lightweight, and fast e-mail client and 
newsreader. Supports POP3, APOP, IMAP, SMTP, SMTP AUTH, NNTP, LDAP, 
multiple accounts, spell-checking, addressbook, SSL, GPG, filtering, 
i18n, & more. It is further extended by plugins.
<<
DescPort: <<
Patch to avoid duplicate PyGTK and PyGobject symbols.
<<
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to