Date: Sun, 21 Nov 2010 09:23:06 +0700 From: Edho P Arief <edhoprima@gmail.com> To: ruby@freebsd.org Subject: FreeBSD Port: ports-mgmt/portupgrade Message-ID: <AANLkTimkb3aCaEmY%2BXms_esKWF_G=L=bp-srhaScz0-C@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
After update to 2.4.7, portupgrade tools no longer uses ruby at $PREFIX (#!$PREFIX/bin/ruby) but uses the first ruby executable found in $PATH (#!/usr/bin/env ruby). This is incorrect behavior: while it's true we don't know where ruby executable is in a $RANDOM_SYSTEM but when installed using ports the portupgrade must use ruby installed by ports too since there's chance the user has another ruby installed somewhere else and used as his default ruby - which will then causes some (or all - at least portupgrade, portinstall and pkgdb) portupgrade tools to fail. [root@genshiken /tmp]# ls /var/db/pkg | grep portupgrade portupgrade-2.4.7,2/ [root@genshiken /tmp]# echo $PATH /app/tmux/bin:/app/postgresql90/bin:/app/ree18-gcc45/bin:/app/ree18/bin:/app/ruby19/bin:/app/symon/bin:/app/tmux/bin:/bin:/sbin:/usr/bin:/usr/sbin:/root/bin:/root/.ecos.bin:/usr/local/bin:/usr/local/sbin [root@genshiken /tmp]# pkgdb /usr/local/sbin/pkgdb:39:in `require': no such file to load -- pkgtools (LoadError) from /usr/local/sbin/pkgdb:39 [root@genshiken /tmp]# set path=(/{,usr/{,local/}}{,s}bin) [root@genshiken /tmp]# echo $PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin [root@genshiken /tmp]# pkgdb pkgdb 2.4.7 (2008/07/01) usage: pkgdb [-hafFfiLOQQquv] [-c pkgname] [-o pkgname] [-s /old_pkgname/new_pkg name/] [file ...] ........... -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimkb3aCaEmY%2BXms_esKWF_G=L=bp-srhaScz0-C>