From owner-freebsd-python@FreeBSD.ORG Thu Sep 2 14:58:06 2010 Return-Path: Delivered-To: freebsd-python@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B4A210656C0 for ; Thu, 2 Sep 2010 14:58:06 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6508FC16 for ; Thu, 2 Sep 2010 14:58:05 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o82Evncp032202; Thu, 2 Sep 2010 16:58:04 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o82EvnSG032201; Thu, 2 Sep 2010 16:57:49 +0200 (CEST) (envelope-from olli) Date: Thu, 2 Sep 2010 16:57:49 +0200 (CEST) Message-Id: <201009021457.o82EvnSG032201@lurza.secnetix.de> From: Oliver Fromme To: freebsd-python@FreeBSD.ORG In-Reply-To: <201009021157.o82BvndP090812@lurza.secnetix.de> X-Newsgroups: list.freebsd-python User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 02 Sep 2010 16:58:04 +0200 (CEST) Cc: Subject: Re: python27: curses broken [PATCH!] X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 14:58:06 -0000 A quick inspection reveals that the detection of ncurses between python26 and python27 was changed subtly, but the port's patch file was adapted rather blindly, so it fails to work with the new detection code. The problem can be fixed by changing the following line in ports/lang/python27/files/patch-setup.py: + if curses_library.startswith('xxxncurses'): to: + if curses_library.startswith('ncurses'): With that change, curses detection works again, _curses.so is built, and Python programs that use curses work fine. The complete, working patch file can be downloaded here (it replaces the existing patch file): http://www.secnetix.de/olli/tmp/patch-setup.py Can someone please take care of this, or do I have to submit a PR? Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen