Date: Wed, 25 Jul 2012 15:55:28 +0100 (BST) From: Anton Shterenlikht <mexas@bristol.ac.uk> To: freebsd-ports@freebsd.org Cc: chalpin@cs.wisc.edu Subject: Re: fetchmail can't find python? Message-ID: <201207251455.q6PEtSGi087963@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20120725082200.17aef98f@scorpio>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > root@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207251455.q6PEtSGi087963>