From: jens.with@... Date: 2020-03-03T10:51:06+00:00 Subject: [ruby-core:97336] [Ruby master Bug#16668] Syntax error in tool/vcs.rb Issue #16668 has been updated by humptydumpty (Jens With). Yes, ruby -v: ruby 1.8.1 (2003-12-25) [i386-linux-gnu] Extract from my log file: BASERUBY = /usr/bin/ruby CC = gcc LD = ld LDSHARED = gcc -shared CFLAGS = -O3 -ggdb3 -Wall -Wdeclaration-after-statement -Wdeprecated-declarations -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-long-long -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-unused-parameter -Wno-unused-value -Wunused-variable -std=gnu99 XCFLAGS = -D_FORTIFY_SOURCE=2 -DRUBY_EXPORT -fPIE -DCANONICALIZATION_FOR_MATHN CPPFLAGS = -I. -I.ext/include/i686-linux -I./include -I. -I./enc/unicode/12.1.0 DLDFLAGS = -pie SOLIBS = -lpthread -lrt -lrt -lrt -lgmp -ldl -lcrypt -lm LANG = C LC_ALL = C LC_CTYPE = gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ./tool/file2lastrev.rb:10:in `require': /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:127: syntax error (SyntaxError) def self.detect(path, uplevel_limit: 0) ^ /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:153: dynamic constant assignment NullDevice = defined?(IO::NULL) ? IO::NULL : ^ /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:223: class definition in method body /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:225: dynamic constant assignment COMMAND = ENV['SVN'] || 'svn' ^ /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:355: class definition in method body /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:357: dynamic constant assignment COMMAND = ENV["GIT"] || 'git' ^ /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:418: dynamic constant assignment Branch = Struct.new(:to_str) ^ /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:534: syntax error from ./tool/file2lastrev.rb:10 make: [.revision.time] Error 1 (ignored) ./revision.h unchanged ---------------------------------------- Bug #16668: Syntax error in tool/vcs.rb https://bugs.ruby-lang.org/issues/16668#change-84457 * Author: humptydumpty (Jens With) * Status: Feedback * Priority: Normal * ruby -v: ruby 2.6.5p114 (2019-10-01 revision 67812) [i686-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- ``` ./tool/file2lastrev.rb:10:in `require': /home/imptst/ruby/ruby-2.6.5/tool/vcs.rb:127: syntax error (SyntaxError) ``` ```ruby def self.detect(path, uplevel_limit: 0) ``` Should be: ```ruby def self.detect(path, uplevel_limit= 0) ``` -- https://bugs.ruby-lang.org/ Unsubscribe: