pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53330: py27-curses broken on NetBSD-7.1_STABLE



The following reply was made to PR pkg/53330; it has been noted by GNATS.

From: Greg Oster <oster%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/53330: py27-curses broken on NetBSD-7.1_STABLE
Date: Fri, 1 Jun 2018 12:18:09 -0600

 On Tue, 29 May 2018 16:45:00 +0000 (UTC)
 oster%netbsd.org@localhost wrote:
 
 > Python 2.7.15 (default, May 24 2018, 15:07:47) 
 > [GCC 4.8.5] on netbsd7
 > Type "help", "copyright", "credits" or "license" for more information.
 > >>> import curses  
 > Traceback (most recent call last):
 >   File "<stdin>", line 1, in <module>
 >   File "/usr/pkg/lib/python2.7/curses/__init__.py", line 59, in
 > <module> from has_key import has_key
 >   File "/usr/pkg/lib/python2.7/curses/has_key.py", line 11, in
 > <module> _curses.KEY_A1: 'ka1',
 > AttributeError: 'module' object has no attribute 'KEY_A1'
 > >>>   
 > 
 > >How-To-Repeat:  
 > - build python2.7
 > - build py-curses for python2.7
 > - run python2.7
 > - 'import curses'
 > - *boom*
 > 
 > >Fix:  
 >   please.  
 >   Additional details can be provided on request.
 >   Thanks.
 >   
 > 
 > >Unformatted:  
 >  	
 >  	
 
 Further digging reveals this on the broken systems:
 
 ldd /usr/pkg/lib/python2.7/lib-dynload/_curses.so
 /usr/pkg/lib/python2.7/lib-dynload/_curses.so:
         -lncurses.6 => /usr/pkg/lib/libncurses.so.6
         -lgcc_s.1 => /usr/lib/libgcc_s.so.1
         -lc.12 => /usr/lib/libc.so.12
         -lpython2.7.1.0 => /usr/pkg/lib/libpython2.7.so.1.0
         -lutil.7 => /usr/lib/libutil.so.7
         -lm.0 => /usr/lib/libm.so.0
         -lpthread.1 => /usr/lib/libpthread.so.1
 
 and this on the working 8.0 system:
 
 ldd /usr/pkg/lib/python2.7/lib-dynload/_curses.so
 /usr/pkg/lib/python2.7/lib-dynload/_curses.so:
         -lcurses.7 => /usr/lib/libcurses.so.7
         -lterminfo.1 => /usr/lib/libterminfo.so.1
         -lc.12 => /usr/lib/libc.so.12
         -lpython2.7.1.0 => /usr/pkg/lib/libpython2.7.so.1.0
         -lutil.7 => /usr/lib/libutil.so.7
         -lm.0 => /usr/lib/libm.so.0
         -lpthread.1 => /usr/lib/libpthread.so.1
 
 That is, 8.0 is using native curses, and 7 is using libncurses from
 pkgsrc.
 
 Later...
 
 Greg Oster
 


Home | Main Index | Thread Index | Old Index