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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
iEYEABECAAYFAkzswCcACgkQkgvvx5/Z4e7wbACeM/dBz62LdOqqFsM83fDqCvKN
UZQAoK+8sp4gafevnNGRFaUxuBdPrabl
=Ds7N
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86eiab6uoo.knu>
