From owner-freebsd-ruby@FreeBSD.ORG Wed Nov 24 08:00:03 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 E2D151065698 for ; Wed, 24 Nov 2010 08:00:03 +0000 (UTC) (envelope-from knu@FreeBSD.org) Received: from mail.musha.org (v055125.ppp.asahi-net.or.jp [124.155.55.125]) by mx1.freebsd.org (Postfix) with ESMTP id A69278FC17 for ; Wed, 24 Nov 2010 08:00:03 +0000 (UTC) Received: from daemon.musha.org (daemon.local [192.168.11.11]) by mail.musha.org (Postfix) with ESMTP id 2F8A074D0; Wed, 24 Nov 2010 16:35:04 +0900 (JST) Date: Wed, 24 Nov 2010 16:35:03 +0900 Message-ID: <86eiab6uoo.knu@FreeBSD.org> From: "Akinori MUSHA" To: Stanislav Sedov , ruby@FreeBSD.org Organization: Associated I. Daemons MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Wed_Nov_24_16:35:03_2010-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: Subject: portupgrade's shebang problem 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: Wed, 24 Nov 2010 08:00:04 -0000 --pgp-sign-Multipart_Wed_Nov_24_16:35:03_2010-1 Content-Type: text/plain; charset=US-ASCII Hi, I can't recall if I've already reported this, but portupgrade's shebang patcher in the build process has a legacy piece of code in it that does not work any more with ruby 1.8/1.9. This applies to both ports-mgmt/portupgrade and -devel. --- bin/Makefile.orig 2010-11-24 05:29:20.000000000 +0900 +++ bin/Makefile 2010-11-24 16:19:06.587423414 +0900 @@ -28,7 +28,7 @@ ${RUBY} -pe ' \ if $$. == 1; \ if /^#!/; \ - $$_.sub(/^#!\s*\S*(\benv\s+)?\bruby/, "#!${RUBY}"); \ + $$_.sub!(/^#!\s*\S*(\benv\s+)?\bruby/, "#!${RUBY}"); \ else; \ $$_ = "#!${RUBY}\n" + $$_; \ end; \ Regards, -- Akinori MUSHA / http://akinori.org/ --pgp-sign-Multipart_Wed_Nov_24_16:35:03_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAkzswCcACgkQkgvvx5/Z4e7wbACeM/dBz62LdOqqFsM83fDqCvKN UZQAoK+8sp4gafevnNGRFaUxuBdPrabl =Ds7N -----END PGP SIGNATURE----- --pgp-sign-Multipart_Wed_Nov_24_16:35:03_2010-1--