freebsd-ports/lang/ruby18/files/patch-mkconfig.rb
Johan van Selst c699a49aaf Fix generation of broken Makefiles in case a setting occurs multiple
times in the auto-generated config.status file (happens with new m4).
This only fixes a potential build error - no package changes.
2010-09-05 22:20:59 +00:00

11 lines
386 B
Ruby

--- mkconfig.rb.orig 2010-09-06 00:14:02.000000000 +0200
+++ mkconfig.rb 2010-09-06 00:13:56.000000000 +0200
@@ -88,7 +88,7 @@
if /^prefix$/ =~ name
val = "(TOPDIR || DESTDIR + #{val})"
end
- v = " CONFIG[\"#{name}\"] #{vars[name] ? '<< "\n"' : '='} #{val}\n"
+ v = " CONFIG[\"#{name}\"] = #{val}\n"
vars[name] = true
if fast[name]
v_fast << v