Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 692128 | Differences between
and this patch

Collapse All | Expand All

(-)./setup.py.old (+4 lines)
Lines 1390-1395 Link Here
1390
        curses_defines = []
1390
        curses_defines = []
1391
        curses_includes = []
1391
        curses_includes = []
1392
        panel_library = 'panel'
1392
        panel_library = 'panel'
1393
        tinfo_library = 'tinfo'
1393
        if curses_library == 'ncursesw':
1394
        if curses_library == 'ncursesw':
1394
            curses_defines.append(('HAVE_NCURSESW', '1'))
1395
            curses_defines.append(('HAVE_NCURSESW', '1'))
1395
            if not cross_compiling:
1396
            if not cross_compiling:
Lines 1397-1402 Link Here
1397
            # Bug 1464056: If _curses.so links with ncursesw,
1398
            # Bug 1464056: If _curses.so links with ncursesw,
1398
            # _curses_panel.so must link with panelw.
1399
            # _curses_panel.so must link with panelw.
1399
            panel_library = 'panelw'
1400
            panel_library = 'panelw'
1401
            tinfo_library = 'tinfow'
1400
            if host_platform == 'darwin':
1402
            if host_platform == 'darwin':
1401
                # On OS X, there is no separate /usr/lib/libncursesw nor
1403
                # On OS X, there is no separate /usr/lib/libncursesw nor
1402
                # libpanelw.  If we are here, we found a locally-supplied
1404
                # libpanelw.  If we are here, we found a locally-supplied
Lines 1412-1417 Link Here
1412
1414
1413
        if curses_library.startswith('ncurses'):
1415
        if curses_library.startswith('ncurses'):
1414
            curses_libs = [curses_library]
1416
            curses_libs = [curses_library]
1417
            if (self.compiler.find_library_file(lib_dirs, tinfo_library)):
1418
                curses_libs.append(tinfo_library)
1415
            exts.append( Extension('_curses', ['_cursesmodule.c'],
1419
            exts.append( Extension('_curses', ['_cursesmodule.c'],
1416
                                   include_dirs=curses_includes,
1420
                                   include_dirs=curses_includes,
1417
                                   define_macros=curses_defines,
1421
                                   define_macros=curses_defines,

Return to bug 692128