[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:61134] [ruby-trunk - Bug #9213] mkmf.rb emits invalid destination directory name for mswin32/64
From:
katonbo@...
Date:
2014-02-28 03:03:11 UTC
List:
ruby-core #61134
Issue #9213 has been updated by Masahiro Kitajima.
副作用の報告です。
## Sample code
### sample.c
<pre>void Init_Sample() {
}</pre>
### extconf.rb
<pre>require "mkmf"
create_makefile("Sample")</pre>
## Operation
<pre> C:\TMP>ruby extconf.rb
1: creating Makefile</pre>
<pre> C:\TMP>nmake /N
1:
2: Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
3: Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
4:
5: echo generating Sample-i386-mswin32.def
6: \ruby200\bin\ruby -e "puts 'EXPORTS', 'Init_Sample'" > Sample-i386-mswin32.def
7: echo compiling sample.c
8: cl -nologo -I. -Ic:/ruby200/include/ruby-2.0.0/i386-mswin32 -Ic:/ruby200/include/ruby-2.0.0/ruby/backward -Ic:/ruby200/include/ruby-2.0.0 -I. -MD -Zi -W2 -O2b2xg- -G6 -Zm600 -Fosample.obj -c -Tcsample.c
9: echo linking shared-object Sample.so
10: \ruby200\bin\ruby -run -e rm -- -f Sample.so
11: cl -nologo -LD -FeSample.so sample.obj msvcrt-ruby200.lib oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib imagehlp.lib shlwapi.lib -link -incremental:no -debug -opt:ref -opt:icf -incremental:no -debug -opt:ref -opt:icf -dll -libpath:. -libpath:/ruby200/lib -implib:Sample-i386-mswin32.lib -pdb:Sample-i386-mswin32.pdb -def:Sample-i386-mswin32.def</pre>
6行目と 10行目、$(RUBY) の展開結果にドライブ名が付いていません。
----------------------------------------
Bug #9213: mkmf.rb emits invalid destination directory name for mswin32/64
https://bugs.ruby-lang.org/issues/9213#change-45515
* Author: Akio Tajima
* Status: Closed
* Priority: Normal
* Assignee:
* Category: lib
* Target version: 2.1.0
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mswin32_100]
* Backport: 1.9.3: UNKNOWN, 2.0.0: DONE
----------------------------------------
The install process of traditional extended library (=non gem) uses extconf.rb for creating Makefile and install the library by (n)make install.
However it does not work correctly because of FileUtil.mkdir met bad directory name as 'c:c:/...'.
This is caused by DESTDIR and prefix combination.
When one does not specify DESTDIR, rbconfig.rb create it as 'DESTDIR = TOPDIR && TOPDIR[/\A[a-z]:/i] || '' unless defined? DESTDIR' #=> 'C:' or 'D:'.
By the other hand CONFIG['prefix'] is (TOPDIR || DESTDIR + '/usr') so the prefixdir also contains 'c:' or 'd:' ...
The definition for install directories in mkmf.rb is defined as both DESTDIR and CONFIG['prefix'] directory for example '$(DESTDIR)$(vendorarchdir)$(target_prefix)'.
It causes the double drive letter name 'c:c:...'.
While there are some workarounds as using setup.rb or gem, it's harmful for the testing phase of extended libraries.
--
http://bugs.ruby-lang.org/