Ruby Issue Tracking System: Issueshttps://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-02-10T06:25:57ZRuby Issue Tracking System
Redmine Ruby master - Bug #7819 (Closed): configure script doesn't recognize valid optionshttps://redmine.ruby-lang.org/issues/78192013-02-10T06:25:57Ztelemachus (Peter Aronoff)telemachus@arpinum.org
<p>When configuring the latest version of Ruby, the configure script issues warnings about "unrecognized" but valid (?) build options.</p>
<p>To reproduce:</p>
<ol>
<li>
<p>Untar the 1.9.3-p385.tar.gz</p>
</li>
<li>
<p>Give the following options to the configure script:</p>
<p>./configure --prefix=/usr/local/ruby-1.9.3-p385 <br>
--with-openssl-dir=/usr/local <br>
--with-readline-dir=/usr/local <br>
--with-yaml-dir=/usr/local <br>
--with-gdbm-dir=/usr/local <br>
--with-libffi-dir=/usr/local</p>
</li>
</ol>
<p>The result is this warning, both at the top and the bottom of the configuration output:</p>
<pre><code>configure: WARNING: unrecognized options: --with-openssl-dir, --with-readline-dir, --with-yaml-dir, --with-gdbm-dir, --with-libffi-dir
</code></pre>
<p>Based on discussion in irc and the results of the build, I think that the warnings are bogus. That is, those options are recognized and used in the build.</p> Backport191 - Bug #2020 (Closed): ARGF.lineno and $. give inconsistent resultshttps://redmine.ruby-lang.org/issues/20202009-08-31T06:07:18Ztelemachus (Peter Aronoff)telemachus@arpinum.org
<p>=begin<br>
When using ARGF on Ruby 1.9.1 (rev. 24175), ARGF.lineno gives a result of '0' for all lines. $. works as expected.</p>
<p>This script shows the problem:</p>
<p>#!/usr/bin/env ruby -w</p>
<p>ARGF.each do |line|<br>
print "With [lineno]:\t"<br>
print ARGF.lineno, ': ', line<br>
print "With [$.]:\t"<br>
print $., ': ', line<br>
end</p>
<p>If I run this with Ruby 1.8.6 (OS X's system Ruby), the output from $. and ARGF.lineno is identical. With 1.9.1, I get this:</p>
<p>telemachus ~ $ ./cat.rb test.txt<br>
With [lineno]: 0: This is line one.<br>
With [$.]: 1: This is line one.<br>
With [lineno]: 0: Here is line two.<br>
With [$.]: 2: Here is line two.<br>
With [lineno]: 0: A third line for fun.<br>
With [$.]: 3: A third line for fun.</p>
<p>Thanks, T<br>
=end</p>