Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 2010 16:57:49 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-python@FreeBSD.ORG
Subject:   Re: python27: curses broken [PATCH!]
Message-ID:  <201009021457.o82EvnSG032201@lurza.secnetix.de>
In-Reply-To: <201009021157.o82BvndP090812@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009021457.o82EvnSG032201>