freebsd-ports/lang/ruby19/files/patch-tool_mkconfig.rb
Steve Wills 561a5a1691 - Update Ruby 1.9 to 1.9.3p385. This fixes a security issue in rdoc (CVE-2013-0256)
- Also add the patch for the security issue in the bundled json (CVE-2013-0269)
- Fix an issue with the .pc file by patching configure [1]

Reported by:	avg [1]
Security:	forthcoming
2013-02-12 15:23:04 +00:00

12 lines
547 B
Ruby

--- tool/mkconfig.rb.orig 2013-01-15 07:03:47.000000000 +0000
+++ tool/mkconfig.rb 2013-02-12 03:29:09.829833511 +0000
@@ -148,7 +148,8 @@
drive = File::PATH_SEPARATOR == ';'
-prefix = "/#{v_runtime[:libdir] || 'lib'}/ruby/#{version}/#{arch}"
+major, minor, *rest = RUBY_VERSION.split('.')
+prefix = "/lib/ruby/#{major}.#{minor}/#{arch}"
print " TOPDIR = File.dirname(__FILE__).chomp!(#{prefix.dump})\n"
print " DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n"
print <<'ARCH' if universal