Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2010 16:35:03 +0900
From:      "Akinori MUSHA" <knu@FreeBSD.org>
To:        Stanislav Sedov <stas@FreeBSD.org>, ruby@FreeBSD.org
Subject:   portupgrade's shebang problem
Message-ID:  <86eiab6uoo.knu@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86eiab6uoo.knu>