Re: [ECFT] pkgng 0.1-alpha1: a replacement for pkg_install

2011-03-25 Thread Thomas Dickey
On Fri, Mar 25, 2011 at 11:54:35AM -0500, Eitan Adler wrote:
 On Fri, Mar 25, 2011 at 11:35 AM, Andriy Gapon a...@freebsd.org wrote:
  on 25/03/2011 17:35 Pietro Cerutti said the following:
  No need to look for strange scenarios, I'm surely going to sudo rm -f the 
  file
  more sooner than later, so... maybe just save a copy?
 
  I even can rm -rf / by accident.
  What's your solution to this? :)
 
 rm -rf /
 rm: / may not be removed

referring to the CVS, this should improve the approach.

cd /tmp
rm -rf ../*

ymmv

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp5D40nqAsVs.pgp
Description: PGP signature


Re: Python 2.4.4 and devel/ncurses

2007-02-26 Thread Thomas Dickey
On Mon, Feb 26, 2007 at 09:44:11PM +0100, Kirill Ponomarew wrote:
 On Mon, Feb 26, 2007 at 01:07:48PM -0700, Joshua Tinnin wrote:
It seems to me that rpath works as expected but /lib/libncurses.so.6 is
loaded first...
   
   There was some discussion about a year ago, which pointed out a problem.
   The readline package loads termcap, which could be provided by ncurses.
   You might be hitting that problem (readline, or another package).
   The fix would be to ensure that termcap loads the same library as
   curses.
  
  Is there anything that can be done about this in the meantime? I have
  two 6.2-R i386 machines which are encountering this problem.
 
 BTW, it fails also on AMD64 CURRENT from yesterday with:

yes - someone has to provide a patch to make the python and ncurses
ports either work together, or ignore each other.  The top-level
setup.py appears to have all (or most) of the related information:  it
sets up a search list of library directories, walks through them to find
the given libraries.

I'm not sure how (reading the earlier email) python decides to get
libtinfo, though, since that string doesn't appear in the original
python sources.

 
 cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t 
 -DTHREAD_STACK_SIZE=0x2 -fPIC -fno-strict-aliasing -I. 
 -I/usr/ports/lang/python24/work/Python-2.4.4/./Include -I/usr/local/include 
 -I/usr/ports/lang/python24/work/Python-2.4.4/Include 
 -I/usr/ports/lang/python24/work/Python-2.4.4 -c 
 /usr/ports/lang/python24/work/Python-2.4.4/Modules/_cursesmodule.c -o 
 build/temp.freebsd-7.0-CURRENT-amd64-2.4/_cursesmodule.o
 cc -shared -pthread -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t 
 -DTHREAD_STACK_SIZE=0x2 
 build/temp.freebsd-7.0-CURRENT-amd64-2.4/_cursesmodule.o -L/usr/local/lib 
 -lncurses -o build/lib.freebsd-7.0-CURRENT-amd64-2.4/_curses.so
 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.59183.0 
 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=python24-2.4.3_3 
 UPGRADE_PORT_VER=2.4.3_3 make
 ** Fix the problem and try again.
 ** Listing the failed packages (*:skipped / !:failed)
 ! lang/python24 (python24-2.4.3_3)  (new compiler error)
 ---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
 
 -Kirill

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpxy1DFZ7g89.pgp
Description: PGP signature


Re: Python 2.4.4 and devel/ncurses

2007-02-14 Thread Thomas Dickey
On Wed, Feb 14, 2007 at 10:30:11PM +0800, Rong-En Fan wrote:
 distinfo pkg-plist ports/lang/python24/files patch-CVE-2006-4980
 patch-setup.py]
 Reply-To: 
 In-Reply-To: [EMAIL PROTECTED]
...
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x604000 (LWP 100437)]
 0x0008011ad7d4 in keybound () from /lib/libncurses.so.6
 (gdb) bt
 #0  0x0008011ad7d4 in keybound () from /lib/libncurses.so.6
 #1  0x0008012fe281 in keyname () from /usr/local/lib/libtinfo.so.5.6

Is /usr/local/lib/libtinfo.so.5.6 built using the rpath option?
If it's not (or not working properly), that could be the problem.
Also, if /lib/libncurses.so.6 happened to be loaded first, that
could be the issue.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpNCsbsYNmLx.pgp
Description: PGP signature


Re: Python 2.4.4 and devel/ncurses

2007-02-14 Thread Thomas Dickey
On Wed, Feb 14, 2007 at 11:30:11PM +0800, Rong-En Fan wrote:
 On Wed, Feb 14, 2007 at 10:09:12AM -0500, Thomas Dickey wrote:
  On Wed, Feb 14, 2007 at 10:30:11PM +0800, Rong-En Fan wrote:
   distinfo pkg-plist ports/lang/python24/files patch-CVE-2006-4980
   patch-setup.py]
   Reply-To: 
   In-Reply-To: [EMAIL PROTECTED]
  ...
   Program received signal SIGSEGV, Segmentation fault.
   [Switching to Thread 0x604000 (LWP 100437)]
   0x0008011ad7d4 in keybound () from /lib/libncurses.so.6
   (gdb) bt
   #0  0x0008011ad7d4 in keybound () from /lib/libncurses.so.6
   #1  0x0008012fe281 in keyname () from /usr/local/lib/libtinfo.so.5.6
  
  Is /usr/local/lib/libtinfo.so.5.6 built using the rpath option?
  If it's not (or not working properly), that could be the problem.
 
 Yes, --enable-rpath is passed to configure.

good (that reduces the possibilities a little).
 
  Also, if /lib/libncurses.so.6 happened to be loaded first, that
  could be the issue.
 
 $ kdump -T | grep  curses\.so

hmm - then what's doing the first load?

  45383 python   1171466835.725865 NAMI  /lib/libncurses.so.5.6
  45383 python   1171466835.725888 NAMI  /usr/lib/libncurses.so.5.6
  45383 python   1171466835.725914 NAMI  /usr/lib/compat/libncurses.so.5.6
  45383 python   1171466835.725940 NAMI  /usr/X11R6/lib/libncurses.so.5.6
  45383 python   1171466835.725967 NAMI  /usr/local/lib/libncurses.so.5.6
  45383 python   1171466835.725995 NAMI  /usr/local/lib/libncurses.so.5.6
  45383 python   1171466835.726209 NAMI  /lib/libncurses.so.6
  45383 python   1171466835.726234 NAMI  /lib/libncurses.so.6
 [I typed 'import _curses' at python prompt then 5+ seconds later, I hit enter]
  45383 python   1171466842.011160 NAMI  _curses.so
  45383 python   1171466842.011279 NAMI  
 /usr/local/lib/python24.zip/_curses.so
  45383 python   1171466842.011451 NAMI  
 /home/rafan/work/FreeBSD/ports/lang/python24/work/Python-2.4.4/Lib/_curses.so
  45383 python   1171466842.011640 NAMI  
 /home/rafan/work/FreeBSD/ports/lang/python24/work/Python-2.4.4/Lib/plat-freebsd6/_curses.so
  45383 python   1171466842.011859 NAMI  
 /home/rafan/work/FreeBSD/ports/lang/python24/work/Python-2.4.4/Lib/lib-tk/_curses.so
  45383 python   1171466842.012050 NAMI  
 /home/rafan/work/FreeBSD/ports/lang/python24/work/Python-2.4.4/Modules/_curses.so
  45383 python   1171466842.012236 NAMI  
 /home/rafan/work/FreeBSD/ports/lang/python24/work/Python-2.4.4/build/lib.freebsd-6.2-PRERELEASE-amd64-2.4/_curses.so
  45383 python   1171466842.012313 NAMI  
 /home/rafan/work/FreeBSD/ports/lang/python24/work/Python-2.4.4/build/lib.freebsd-6.2-PRERELEASE-amd64-2.4/_curses.so
  45383 python   1171466842.012551 NAMI  /lib/libncurses.so.5.6
  45383 python   1171466842.012575 NAMI  /usr/lib/libncurses.so.5.6
  45383 python   1171466842.012603 NAMI  /usr/lib/compat/libncurses.so.5.6
  45383 python   1171466842.012630 NAMI  /usr/X11R6/lib/libncurses.so.5.6
  45383 python   1171466842.012658 NAMI  /usr/local/lib/libncurses.so.5.6
 
 It seems to me that rpath works as expected but /lib/libncurses.so.6 is
 loaded first...

There was some discussion about a year ago, which pointed out a problem.
The readline package loads termcap, which could be provided by ncurses.
You might be hitting that problem (readline, or another package).
The fix would be to ensure that termcap loads the same library as
curses.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp6MO5dSr1DD.pgp
Description: PGP signature