From owner-freebsd-ports@FreeBSD.ORG Sun Jul 17 12:31:56 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E4611065689 for ; Sun, 17 Jul 2011 12:31:56 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0033A8FC16 for ; Sun, 17 Jul 2011 12:31:55 +0000 (UTC) Received: by vxg33 with SMTP id 33so2363366vxg.13 for ; Sun, 17 Jul 2011 05:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=VOpQUCaI3ghZn8JStQ49bublh++/zmwSLx3DDezRhgI=; b=Io6NrZaKJWCW6xSE9ZeXS7/LUqVets6GvYpy+uJ+QAmysKTy/zxBDt58518rXSPF+m XCmhsoQ7GCi2dtTYWMnZs2OnAMRae1fjM+RlBWYMp1PgGvQadaMlv4ZGkzuO5MjvRKsD FD5ztYyUln+LG38IuPglsTpdgWJTCJvsyVCwg= MIME-Version: 1.0 Received: by 10.52.70.162 with SMTP id n2mr5148843vdu.426.1310905914567; Sun, 17 Jul 2011 05:31:54 -0700 (PDT) Received: by 10.52.186.106 with HTTP; Sun, 17 Jul 2011 05:31:54 -0700 (PDT) Date: Sun, 17 Jul 2011 14:31:54 +0200 Message-ID: From: Torfinn Ingolfsen To: FreeBSD Ports ML Content-Type: text/plain; charset=ISO-8859-1 Subject: mail/py-spambayes - a patch to make it work with Python 2.7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2011 12:31:56 -0000 Hi, Time flies fast. WE now have Python 2.7 and 3.2 in our system, not Python 2.6. The following patch makes mail/py-spambayes use Python 2.7. root@kg-v2# diff -u Makefile.org Makefile --- Makefile.org 2009-08-22 02:27:53.000000000 +0200 +++ Makefile 2011-07-17 14:22:51.000000000 +0200 @@ -18,7 +18,7 @@ # bypass infrastructure bug OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options -OPTIONS= PYTHON26 "Build with Python 2.6 (with unofficial patch)" off +OPTIONS= PYTHON27 "Build with Python 2.7 (with unofficial patch)" off USE_PYDISTUTILS= yes USE_RC_SUBR= pyspamd @@ -81,8 +81,8 @@ .include -.if defined(WITH_PYTHON26) -USE_PYTHON= 2.6 +.if defined(WITH_PYTHON27) +USE_PYTHON= 2.7 RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb EXTRA_PATCHES+= ${FILESDIR}/extra-patch-python26 .else AFAICT, spambayes works fine with this patch. Not sure if the patch is good enough, so I haven't sent a PR yet. -- Regards, Torfinn Ingolfsen