On Wed, 25 Jul 2012 12:40:50 +0100
        Anton Shterenlikht articulated:

        > While rebuilding fetchmail again, I noticed this line
        > in configure logs:
        >=20
        > configure: WARNING: Disabling fetchmailconf: python 2.0 or greater
        > not found
        >=20
        > I've got python all right:
        >=20
        > # pkg info -xo python
        > python27-2.7.3_3: lang/python27
        > #=20
        >=20
        > So what does this mean?
        >=20
        > In case it matters, this is on=20
        >=20
        > # uname -a
        > FreeBSD mech-cluster241.men.bris.ac.uk 10.0-CURRENT FreeBSD
        > 10.0-CURRENT #6 r237134: Mon Jun 18 09:02:17 BST 2012
        > r...@mech-cluster241.men.bris.ac.uk:/usr/obj/usr/src/sys/TZAV  ia64 
#=20

        I had a similar problem with "ruby", obviously with another program
        recently. I simply did an R&R of the port and now everything works fine.
        I have found over the years that certain programs just seem to disappear
        for no apparent reason and usually at the most in-opportunistic times.

        By the way, does "which python" reveal anything?

What's R&R? rock-n-roll?..

Anyway:

# cat /usr/local/bin/fetchmailconf 
#!/bin/sh
#
# Wrapper for the real fetchmailconf.  Checks whether Python and Tkinter are
# installed, and runs the real fetchmailconf or alerts the user, as appropriate.
#
# $FreeBSD: head/mail/fetchmail/files/fetchmailconf 300896 2012-07-14 13:54:48Z 
beat $

LOCALBASE=/usr/local

if [ -x $LOCALBASE/bin/python ] ; then
        PYTHON_VERSION=python$(${LOCALBASE}/bin/python -c 'import sys; print 
sys.version[:3]' 2>/dev/null)
        if [ -e ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so ]; 
then
                exec ${LOCALBASE}/libexec/fetchmailconf.py "$@"
        fi
fi
cat <<EOF
The fetchmailconf program requires Python with Tkinter, which does
not appear to be installed on this system.  Python can be found in
the FreeBSD Ports Collection in lang/python, and Tkinter for Python
can be found in x11-toolkits/py-tkinter.
EOF
exit 1
# 

Now, I've got py27-tkinter-2.7.3_3 (x11-toolkits/py-tkinter),
but I guess the fetchmail configure script doesn't detect
this properly.

And anyway, since fetchmailconf is optional, I think
it makes perfect sense to make an option to install
fetchmailconf, which, if chosen, triggers a check
for x11-toolkits/py-tkinter.

I'm copying in the maintainer.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to