From owner-freebsd-ruby@FreeBSD.ORG Sun Nov 21 02:52:15 2010 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E4BA1065675 for ; Sun, 21 Nov 2010 02:52:15 +0000 (UTC) (envelope-from edhoprima@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5A8F48FC12 for ; Sun, 21 Nov 2010 02:52:15 +0000 (UTC) Received: by iwn39 with SMTP id 39so6926042iwn.13 for ; Sat, 20 Nov 2010 18:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=vn/fANpMbnBxfNOW+4UtZVERuDtakzgDM4bHs6VDmbs=; b=cc2SetBStxhbekKY5xRK2WCtMyWc3BYzEpJGr0N0+JRpBEiB3I9mEGreT20JPaqM0w hqXiS41kdgsxEwpMFK04zlaSqBfALmRPm6HUUQj/qhIp8VzthQN+36JxLvJWegbB7bzF t5poF/W4+dP+Tt/rNzRKzZmU3eCGPOLF6lQgs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=LEEBbAPtMwGrLG/0eXZe4anC5ZNBZTUfyEjuTB9XUkURij5o9vI+nWvgriM9bE9xw9 Z9U+xp8iCca1746E0AWfeh1hGtsCi9qwfTCJdUujVPV0ghTq5932l5uNf1oxGl5LyQ/W ITDyLXz4ljS5qkrB+lXDpB2f913389Gp6UzD8= Received: by 10.231.37.200 with SMTP id y8mr4441492ibd.174.1290306206323; Sat, 20 Nov 2010 18:23:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.30.202 with HTTP; Sat, 20 Nov 2010 18:23:06 -0800 (PST) From: Edho P Arief Date: Sun, 21 Nov 2010 09:23:06 +0700 Message-ID: To: ruby@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Subject: FreeBSD Port: ports-mgmt/portupgrade X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 02:52:15 -0000 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