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 1370-1382 Link Here
1370
        # Curses support, requiring the System V version of curses, often
1370
        # Curses support, requiring the System V version of curses, often
1371
        # provided by the ncurses library.
1371
        # provided by the ncurses library.
1372
        panel_library = 'panel'
1372
        panel_library = 'panel'
1373
        tinfo_library = 'tinfo'
1373
        curses_incs = None
1374
        curses_incs = None
1374
        if curses_library.startswith('ncurses'):
1375
        if curses_library.startswith('ncurses'):
1375
            if curses_library == 'ncursesw':
1376
            if curses_library == 'ncursesw':
1376
                # Bug 1464056: If _curses.so links with ncursesw,
1377
                # Bug 1464056: If _curses.so links with ncursesw,
1377
                # _curses_panel.so must link with panelw.
1378
                # _curses_panel.so must link with panelw.
1378
                panel_library = 'panelw'
1379
                panel_library = 'panelw'
1380
                tinfo_library = 'tinfow'
1379
            curses_libs = [curses_library]
1381
            curses_libs = [curses_library]
1382
            if (self.compiler.find_library_file(lib_dirs, tinfo_library)):
1383
                curses_libs.append(tinfo_library)
1380
            curses_incs = find_file('curses.h', inc_dirs,
1384
            curses_incs = find_file('curses.h', inc_dirs,
1381
                                    [os.path.join(d, 'ncursesw') for d in inc_dirs])
1385
                                    [os.path.join(d, 'ncursesw') for d in inc_dirs])
1382
            exts.append( Extension('_curses', ['_cursesmodule.c'],
1386
            exts.append( Extension('_curses', ['_cursesmodule.c'],

Return to bug 692128