r2corba 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +2 -1
- data/ext/extload/extload.c +5 -6
- data/ext/libr2tao/object.cpp +4 -4
- data/ext/libr2tao/orb.cpp +8 -8
- data/ext/libr2tao/r2tao_ext.h +0 -12
- data/ext/libr2tao/required.cpp +2 -2
- data/ext/libr2tao/required.h +9 -11
- data/ext/libr2tao/values.cpp +5 -5
- data/ext/libr2tao/values.h +19 -19
- data/ext/librpoa/iortable.cpp +3 -3
- data/ext/librpoa/poa.cpp +7 -7
- data/ext/librpoa/servant.cpp +15 -90
- data/ext/librpoa/servant.h +13 -35
- data/lib/corba/cbase/ORB.rb +7 -7
- data/lib/corba/cbase/Streams.rb +2 -2
- data/lib/corba/cbase/Typecode.rb +6 -6
- data/lib/corba/cbase/exception.rb +2 -2
- data/lib/corba/cbase/policies.rb +1 -1
- data/lib/corba/cmds/base.rb +1 -1
- data/lib/corba/common/Any.rb +1 -1
- data/lib/corba/common/ORB.rb +1 -1
- data/lib/corba/common/Object.rb +0 -1
- data/lib/corba/common/Stub.rb +1 -1
- data/lib/corba/common/Typecode.rb +34 -34
- data/lib/corba/common/const.rb +2 -2
- data/lib/corba/common/version.rb +1 -1
- data/lib/corba/jbase/Any.rb +23 -23
- data/lib/corba/jbase/ORB.rb +3 -3
- data/lib/corba/jbase/Request.rb +5 -5
- data/lib/corba/jbase/Servant.rb +10 -10
- data/lib/corba/jbase/ServerRequest.rb +7 -7
- data/lib/corba/jbase/Streams.rb +3 -3
- data/lib/corba/jbase/Typecode.rb +14 -14
- data/lib/corba/jbase/exception.rb +1 -1
- data/lib/corba/jbase/poa.rb +2 -2
- data/lib/corba/jbase/policies.rb +3 -3
- data/lib/corba/poa.rb +1 -1
- data/lib/corba/policies.rb +1 -1
- data/lib/corba/require.rb +2 -2
- data/lib/corba/svcs/ins/cos_naming.rb +27 -27
- data/lib/corba/svcs/ins/ins.rb +17 -17
- data/lib/corba/svcs/ins/naming_service.rb +2 -2
- data/lib/ridlbe/ruby/config.rb +10 -10
- data/lib/ridlbe/ruby/walker.rb +21 -21
- data/mkrf_conf_srcgem.rb +5 -5
- data/rakelib/bin.rake +1 -1
- data/rakelib/bin.rb +3 -3
- data/rakelib/build.rake +15 -15
- data/rakelib/config.rb +13 -13
- data/rakelib/ext.rake +3 -5
- data/rakelib/ext.rb +13 -13
- data/rakelib/ext_r2tao.rb +12 -18
- data/rakelib/gem.rake +5 -5
- data/rakelib/gem.rb +5 -5
- data/test/BiDirectional/client.rb +3 -3
- data/test/BiDirectional/run_test.rb +1 -1
- data/test/BiDirectional/server.rb +4 -5
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -5
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -1
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -4
- data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -3
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -1
- data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -10
- data/test/CORBA_Services/Naming/Simple/client.rb +4 -4
- data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -1
- data/test/CORBA_Services/Naming/Simple/server.rb +4 -4
- data/test/Collocation/test.rb +2 -2
- data/test/Connect_Timeout/client.rb +3 -4
- data/test/DII/client.rb +5 -5
- data/test/DII/run_test.rb +1 -1
- data/test/DII/server.rb +3 -3
- data/test/DSI/client.rb +3 -3
- data/test/DSI/run_test.rb +1 -1
- data/test/DSI/server.rb +3 -3
- data/test/Exceptions/client.rb +4 -4
- data/test/Exceptions/run_test.rb +1 -1
- data/test/Exceptions/server.rb +3 -3
- data/test/Hello/client.rb +3 -3
- data/test/Hello/run_test.rb +1 -1
- data/test/Hello/server.rb +3 -3
- data/test/IDL_Test/client.rb +3 -3
- data/test/IDL_Test/run_test.rb +1 -1
- data/test/IDL_Test/server.rb +3 -3
- data/test/IORMap/client.rb +3 -3
- data/test/IORMap/run_test.rb +1 -1
- data/test/IORMap/server.rb +4 -4
- data/test/IORTable/client.rb +3 -3
- data/test/IORTable/run_test.rb +1 -1
- data/test/IORTable/server.rb +4 -4
- data/test/Implicit_Conversion/client.rb +4 -4
- data/test/Implicit_Conversion/run_test.rb +1 -1
- data/test/Implicit_Conversion/server.rb +3 -3
- data/test/Multi_Threading/Multiple_ORB/client.rb +3 -3
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -2
- data/test/Multi_Threading/Multiple_ORB/server.rb +3 -3
- data/test/Multi_Threading/Simple/client.rb +4 -4
- data/test/Multi_Threading/Simple/run_test.rb +1 -1
- data/test/Multi_Threading/Simple/server.rb +3 -3
- data/test/Multi_Threading/Threads/client.rb +3 -3
- data/test/Multi_Threading/Threads/run_test.rb +1 -1
- data/test/Multi_Threading/Threads/server.rb +4 -4
- data/test/Multi_Threading/Threads/watchdog.rb +3 -3
- data/test/Multiple_Servant_Interfaces/client.rb +3 -3
- data/test/Multiple_Servant_Interfaces/run_test.rb +1 -1
- data/test/Multiple_Servant_Interfaces/server.rb +3 -3
- data/test/Nil/test.rb +3 -4
- data/test/OBV/AbstractInterface/client.rb +3 -3
- data/test/OBV/AbstractInterface/run_test.rb +1 -1
- data/test/OBV/AbstractInterface/server.rb +3 -3
- data/test/OBV/Custom/client.rb +3 -3
- data/test/OBV/Custom/run_test.rb +1 -1
- data/test/OBV/Custom/server.rb +3 -3
- data/test/OBV/Simple/client.rb +3 -3
- data/test/OBV/Simple/run_test.rb +1 -1
- data/test/OBV/Simple/server.rb +3 -3
- data/test/OBV/Simple_Event/client.rb +3 -3
- data/test/OBV/Simple_Event/run_test.rb +1 -1
- data/test/OBV/Simple_Event/server.rb +3 -3
- data/test/OBV/Supports/client.rb +3 -3
- data/test/OBV/Supports/run_test.rb +1 -1
- data/test/OBV/Supports/server.rb +3 -3
- data/test/OBV/Tree/client.rb +3 -3
- data/test/OBV/Tree/run_test.rb +1 -1
- data/test/OBV/Tree/server.rb +3 -3
- data/test/OBV/Truncatable/Truncatable_impl.rb +1 -1
- data/test/OBV/Truncatable/client.rb +4 -4
- data/test/OBV/Truncatable/run_test.rb +1 -1
- data/test/OBV/Truncatable/server.rb +3 -3
- data/test/OBV/ValueBox/client.rb +44 -44
- data/test/OBV/ValueBox/run_test.rb +1 -1
- data/test/OBV/ValueBox/server.rb +29 -29
- data/test/Object/client.rb +4 -4
- data/test/Object/run_test.rb +1 -1
- data/test/Object/server.rb +3 -3
- data/test/POA/test.rb +3 -3
- data/test/Param_Test/client.rb +6 -6
- data/test/Param_Test/run_test.rb +1 -1
- data/test/Param_Test/server.rb +6 -6
- data/test/Performance/Simple/client.rb +3 -3
- data/test/Performance/Simple/run_test.rb +1 -1
- data/test/Performance/Simple/server.rb +3 -3
- data/test/Policies/test.rb +2 -3
- data/test/Timeout/client.rb +6 -6
- data/test/Timeout/run_test.rb +1 -1
- data/test/Timeout/server.rb +4 -4
- data/test/lib/assert.rb +0 -1
- data/test/lib/test.rb +14 -15
- data/test/test_runner.rb +5 -6
- metadata +4 -6
- data/ext/librpoa/srvreq_fix.cpp +0 -282
- data/ext/librpoa/srvreq_fix.h +0 -148
data/rakelib/build.rake
CHANGED
@@ -31,50 +31,50 @@ task :build => 'r2corba:build'
|
|
31
31
|
|
32
32
|
## compile base IDL
|
33
33
|
|
34
|
-
r2c_idlc_root = File.join('lib','corba','idl')
|
34
|
+
r2c_idlc_root = File.join('lib', 'corba', 'idl')
|
35
35
|
stdidl_root = File.join('lib', 'idl')
|
36
36
|
|
37
|
-
orb_pidlc = File.join('lib', 'ridlbe','ruby','orb.pidlc')
|
37
|
+
orb_pidlc = File.join('lib', 'ridlbe', 'ruby', 'orb.pidlc')
|
38
38
|
file orb_pidlc => [R2CORBA::BUILD_CFG] do |t|
|
39
39
|
sh("#{R2CORBA::Config.ridlc} --preprocess --output #{t.name} --include=#{stdidl_root} orb.idl")
|
40
40
|
end
|
41
41
|
Rake::Task['r2corba:build_idl'].enhance [orb_pidlc]
|
42
42
|
CLOBBER.include orb_pidlc
|
43
43
|
|
44
|
-
file File.join(r2c_idlc_root,'r2c_orb.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
44
|
+
file File.join(r2c_idlc_root, 'r2c_orb.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
45
45
|
cmd = R2CORBA::Config.ridlc
|
46
46
|
cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root}" <<
|
47
47
|
" --stubs-only --expand-includes --search-includepath --no-libinit --interface-as-class=TypeCode orb.idl"
|
48
48
|
sh(cmd)
|
49
49
|
end
|
50
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,'r2c_orb.rb')]
|
51
|
-
CLOBBER.include File.join(r2c_idlc_root,'r2c_orb.rb')
|
50
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, 'r2c_orb.rb')]
|
51
|
+
CLOBBER.include File.join(r2c_idlc_root, 'r2c_orb.rb')
|
52
52
|
|
53
53
|
[ ['POA', 'PortableServer.pidl'],
|
54
54
|
['Messaging', 'Messaging.pidl'],
|
55
55
|
['BiDirPolicy', 'BiDirPolicy.pidl'],
|
56
56
|
].each do |stub, pidl|
|
57
|
-
file File.join(r2c_idlc_root,stub+'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
57
|
+
file File.join(r2c_idlc_root, stub + 'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
58
58
|
cmd = R2CORBA::Config.ridlc
|
59
59
|
cmd << " --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root} --stubs-only --expand-includes --search-includepath --no-libinit #{pidl}"
|
60
60
|
sh(cmd)
|
61
61
|
end
|
62
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,stub+'C.rb')]
|
63
|
-
CLOBBER.include File.join(r2c_idlc_root,stub+'C.rb')
|
62
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, stub + 'C.rb')]
|
63
|
+
CLOBBER.include File.join(r2c_idlc_root, stub + 'C.rb')
|
64
64
|
end
|
65
65
|
|
66
66
|
unless defined?(JRUBY_VERSION)
|
67
|
-
r2tao_root = File.join('lib','corba','cbase')
|
67
|
+
r2tao_root = File.join('lib', 'corba', 'cbase')
|
68
68
|
tao_root = get_config('taoroot')
|
69
69
|
[ 'TAO_Ext', 'IORTable' ].each do |stub|
|
70
|
-
file File.join(r2c_idlc_root,stub+'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
70
|
+
file File.join(r2c_idlc_root, stub + 'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
71
71
|
cmd = R2CORBA::Config.ridlc
|
72
72
|
cmd << " --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root} --stubs-only --expand-includes -I#{tao_root}" <<
|
73
|
-
" --search-includepath --no-libinit #{File.join(r2c_idlc_root, stub+'.pidl')}"
|
73
|
+
" --search-includepath --no-libinit #{File.join(r2c_idlc_root, stub + '.pidl')}"
|
74
74
|
sh(cmd)
|
75
75
|
end
|
76
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,stub+'C.rb')]
|
77
|
-
CLOBBER.include File.join(r2c_idlc_root,stub+'C.rb')
|
76
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, stub + 'C.rb')]
|
77
|
+
CLOBBER.include File.join(r2c_idlc_root, stub + 'C.rb')
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
@@ -83,5 +83,5 @@ file File.join(r2c_idlc_root, 'CosNamingC.rb') => [R2CORBA::BUILD_CFG, orb_pidlc
|
|
83
83
|
cmd << " -o #{r2c_idlc_root} --include=#{stdidl_root} --expand-includes --search-includepath CosNaming.idl"
|
84
84
|
sh(cmd)
|
85
85
|
end
|
86
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,'CosNamingC.rb')]
|
87
|
-
CLOBBER.include File.join(r2c_idlc_root,'CosNamingC.rb')
|
86
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, 'CosNamingC.rb')]
|
87
|
+
CLOBBER.include File.join(r2c_idlc_root, 'CosNamingC.rb')
|
data/rakelib/config.rb
CHANGED
@@ -309,14 +309,14 @@ module R2CORBA
|
|
309
309
|
ENV['MPC_ROOT'] = get_config('mpcroot')
|
310
310
|
|
311
311
|
if is_win32
|
312
|
-
ENV['PATH'] = "#{File.join(ENV['ACE_ROOT'],'lib')}#{';'}#{ENV['PATH']}"
|
312
|
+
ENV['PATH'] = "#{File.join(ENV['ACE_ROOT'], 'lib')}#{';'}#{ENV['PATH']}"
|
313
313
|
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl')
|
314
314
|
elsif RUBY_PLATFORM =~ /darwin/
|
315
|
-
ENV['DYLD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'],'lib')}#{File::PATH_SEPARATOR}#{ENV['DYLD_LIBRARY_PATH'] || ""}"
|
316
|
-
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot')!='/usr'
|
315
|
+
ENV['DYLD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'], 'lib')}#{File::PATH_SEPARATOR}#{ENV['DYLD_LIBRARY_PATH'] || ""}"
|
316
|
+
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot') != '/usr'
|
317
317
|
else
|
318
|
-
ENV['LD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'],'lib')}#{File::PATH_SEPARATOR}#{ENV['LD_LIBRARY_PATH'] || ""}"
|
319
|
-
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot')!='/usr'
|
318
|
+
ENV['LD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'], 'lib')}#{File::PATH_SEPARATOR}#{ENV['LD_LIBRARY_PATH'] || ""}"
|
319
|
+
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot') != '/usr'
|
320
320
|
end
|
321
321
|
|
322
322
|
else
|
@@ -438,14 +438,14 @@ module R2CORBA
|
|
438
438
|
def self.check
|
439
439
|
if defined?(JRUBY_VERSION)
|
440
440
|
# check availability of JacORB
|
441
|
-
if get_config('jacorb_home')=='' && File.directory?('jacorb')
|
441
|
+
if get_config('jacorb_home') == '' && File.directory?('jacorb')
|
442
442
|
set_config('jacorb_home', File.expand_path('jacorb'))
|
443
443
|
end
|
444
444
|
raise "Cannot find JacORB. Missing JACORB_HOME configuration!" if get_config('jacorb_home').empty?
|
445
445
|
else
|
446
446
|
if Dir[File.join('ext', 'libACE.*')].empty? # Don't check for ACE/TAO installation when executed for binary gem install
|
447
447
|
|
448
|
-
if get_config('without-tao') && !(File.directory?(File.join('ACE','ACE_wrappers')) || File.directory?(File.join('ACE','ACE')))
|
448
|
+
if get_config('without-tao') && !(File.directory?(File.join('ACE', 'ACE_wrappers')) || File.directory?(File.join('ACE', 'ACE')))
|
449
449
|
|
450
450
|
# check if a user defined ACE/TAO location is specified or we're using a system standard install
|
451
451
|
if get_config('aceroot').empty?
|
@@ -460,14 +460,14 @@ module R2CORBA
|
|
460
460
|
|
461
461
|
else
|
462
462
|
# check availability of ACE/TAO
|
463
|
-
if get_config('aceroot').empty? && (File.directory?(File.join('ACE','ACE_wrappers')) || File.directory?(File.join('ACE','ACE')))
|
464
|
-
set_config('aceroot', File.directory?(File.join('ACE','ACE_wrappers')) ? File.expand_path(File.join('ACE','ACE_wrappers')) : File.expand_path(File.join('ACE','ACE')))
|
463
|
+
if get_config('aceroot').empty? && (File.directory?(File.join('ACE', 'ACE_wrappers')) || File.directory?(File.join('ACE', 'ACE')))
|
464
|
+
set_config('aceroot', File.directory?(File.join('ACE', 'ACE_wrappers')) ? File.expand_path(File.join('ACE', 'ACE_wrappers')) : File.expand_path(File.join('ACE', 'ACE')))
|
465
465
|
end
|
466
|
-
if get_config('taoroot').empty? && (File.directory?(File.join(get_config('aceroot'),'TAO')) || File.directory?(File.join('ACE','TAO')))
|
467
|
-
set_config('taoroot', File.directory?(File.join(get_config('aceroot'),'TAO')) ? File.expand_path(File.join(get_config('aceroot'),'TAO')) : File.expand_path(File.join('ACE','TAO')))
|
466
|
+
if get_config('taoroot').empty? && (File.directory?(File.join(get_config('aceroot'), 'TAO')) || File.directory?(File.join('ACE', 'TAO')))
|
467
|
+
set_config('taoroot', File.directory?(File.join(get_config('aceroot'), 'TAO')) ? File.expand_path(File.join(get_config('aceroot'), 'TAO')) : File.expand_path(File.join('ACE', 'TAO')))
|
468
468
|
end
|
469
|
-
if get_config('mpcroot').empty? && (File.directory?(File.join(get_config('aceroot'),'MPC')) || File.directory?(File.join('ACE','MPC')))
|
470
|
-
set_config('mpcroot', File.directory?(File.join(get_config('aceroot'),'MPC')) ? File.expand_path(File.join(get_config('aceroot'),'MPC')) : File.expand_path(File.join('ACE','MPC')))
|
469
|
+
if get_config('mpcroot').empty? && (File.directory?(File.join(get_config('aceroot'), 'MPC')) || File.directory?(File.join('ACE', 'MPC')))
|
470
|
+
set_config('mpcroot', File.directory?(File.join(get_config('aceroot'), 'MPC')) ? File.expand_path(File.join(get_config('aceroot'), 'MPC')) : File.expand_path(File.join('ACE', 'MPC')))
|
471
471
|
end
|
472
472
|
|
473
473
|
set_config('aceinstdir', get_config('sodir')) if get_config('aceinstdir').empty?
|
data/rakelib/ext.rake
CHANGED
@@ -119,6 +119,8 @@ else # !JRUBY_VERSION
|
|
119
119
|
cur_dir = Dir.getwd
|
120
120
|
Dir.chdir File.join('ext', 'extload')
|
121
121
|
begin
|
122
|
+
# check availability of make program
|
123
|
+
raise "#{get_config('makeprog')} missing! A working version of #{get_config('makeprog')} in the PATH is required." unless system("#{get_config('makeprog')}")
|
122
124
|
sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
|
123
125
|
ensure
|
124
126
|
Dir.chdir cur_dir
|
@@ -205,11 +207,7 @@ else # !JRUBY_VERSION
|
|
205
207
|
cur_dir = Dir.getwd
|
206
208
|
Dir.chdir File.expand_path(get_config('aceroot'))
|
207
209
|
begin
|
208
|
-
|
209
|
-
sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores} #{get_config('with-debug') ? ' debug=1' : ''}")
|
210
|
-
else
|
211
|
-
sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
|
212
|
-
end
|
210
|
+
sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores} #{get_config('with-debug') ? ' debug=1' : ''}")
|
213
211
|
ensure
|
214
212
|
Dir.chdir cur_dir
|
215
213
|
end
|
data/rakelib/ext.rb
CHANGED
@@ -16,7 +16,7 @@ require File.join(File.dirname(__FILE__), 'ext_r2tao.rb')
|
|
16
16
|
module R2CORBA
|
17
17
|
|
18
18
|
module Ext
|
19
|
-
ACE_FILES
|
19
|
+
ACE_FILES = [
|
20
20
|
'ACE',
|
21
21
|
'TAO',
|
22
22
|
'TAO_TypeCodeFactory',
|
@@ -122,6 +122,7 @@ debug=#{get_config('with-debug') ? 1 : 0}
|
|
122
122
|
fl_reactor=0
|
123
123
|
tk_reactor=0
|
124
124
|
boost=0
|
125
|
+
inline=0
|
125
126
|
include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
|
126
127
|
}
|
127
128
|
when /linux/
|
@@ -143,7 +144,7 @@ debug=#{get_config('with-debug') ? 1 : 0}
|
|
143
144
|
fl_reactor=0
|
144
145
|
tk_reactor=0
|
145
146
|
no_hidden_visibility=1
|
146
|
-
#{ /^cc/i =~ RB_CONFIG['CC'] ? 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU' :
|
147
|
+
#{ /^cc/i =~ RB_CONFIG['CC'] ? 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU' : 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_g++.GNU' }
|
147
148
|
LDFLAGS += #{RB_CONFIG['SOLIBS']} #{ /^cc/i =~ RB_CONFIG['CC'] ? '-lCrun -lCstd' : ''}
|
148
149
|
}
|
149
150
|
when /darwin/
|
@@ -207,23 +208,23 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
|
|
207
208
|
end
|
208
209
|
|
209
210
|
def self.ace_config_path
|
210
|
-
File.join(get_config('aceroot'),'ace','config.h')
|
211
|
+
File.join(get_config('aceroot'), 'ace', 'config.h')
|
211
212
|
end
|
212
213
|
|
213
214
|
def self.platform_macros_path
|
214
|
-
File.join(get_config('aceroot'),'include','makeinclude','platform_macros.GNU')
|
215
|
+
File.join(get_config('aceroot'), 'include', 'makeinclude', 'platform_macros.GNU')
|
215
216
|
end
|
216
217
|
|
217
218
|
def self.default_features_path
|
218
|
-
File.join(get_config('aceroot'),'bin','MakeProjectCreator','config','default.features')
|
219
|
+
File.join(get_config('aceroot'), 'bin', 'MakeProjectCreator', 'config', 'default.features')
|
219
220
|
end
|
220
221
|
|
221
222
|
def self.tao_mwc_path
|
222
|
-
File.join(get_config('aceroot'),'TAO4Ruby.mwc')
|
223
|
+
File.join(get_config('aceroot'), 'TAO4Ruby.mwc')
|
223
224
|
end
|
224
225
|
|
225
226
|
def self.tao_makefile
|
226
|
-
File.join(get_config('aceroot'),'GNUmakefile')
|
227
|
+
File.join(get_config('aceroot'), 'GNUmakefile')
|
227
228
|
end
|
228
229
|
|
229
230
|
def self.ext_makefile
|
@@ -238,12 +239,12 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
|
|
238
239
|
so_ext = '.dylib'
|
239
240
|
|
240
241
|
inst_extlibs = Dir.glob(File.join('ext', '*.bundle'))
|
241
|
-
inst_dylibs = inst_extlibs + ACE_FILES.collect {|dep| File.join(get_config('aceroot'),'lib', 'lib'+dep+so_ext)}
|
242
|
+
inst_dylibs = inst_extlibs + ACE_FILES.collect {|dep| File.join(get_config('aceroot'), 'lib', 'lib' + dep + so_ext)}
|
242
243
|
# cross dependencies of ext dynamic libs on each other
|
243
244
|
# make sure they refer to *.bundle NOT *.dylib
|
244
245
|
inst_extlibs.each do |extlib|
|
245
246
|
inst_extlibs.each do |dep|
|
246
|
-
dep_org = File.basename(dep, '.bundle')+so_ext
|
247
|
+
dep_org = File.basename(dep, '.bundle') + so_ext
|
247
248
|
sh("install_name_tool -change #{dep_org} @rpath/#{File.basename(dep)} #{extlib}")
|
248
249
|
end
|
249
250
|
# add install directory as rpath; first delete rpath ignoring errors, next add the rpath
|
@@ -253,7 +254,7 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
|
|
253
254
|
# dependencies on ACE+TAO libs
|
254
255
|
inst_dylibs.each do |dylib|
|
255
256
|
ACE_FILES.each do |dep|
|
256
|
-
command("install_name_tool -change lib#{dep+so_ext} @rpath/lib#{dep+so_ext} #{dylib}")
|
257
|
+
command("install_name_tool -change lib#{dep + so_ext} @rpath/lib#{dep + so_ext} #{dylib}")
|
257
258
|
end
|
258
259
|
# add current dir and install dir as rpath entries; first delete rpath ignoring errors, next add the rpath
|
259
260
|
sh("install_name_tool -delete_rpath . #{dylib} >/dev/null 2>&1")
|
@@ -264,8 +265,8 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
|
|
264
265
|
elsif !is_win32
|
265
266
|
# create unversioned ACE+TAO lib symlinks
|
266
267
|
|
267
|
-
ACE_FILES.collect {|dep| File.join(get_config('aceroot'),'lib', 'lib'+dep+'.so')}.each do |lib|
|
268
|
-
Dir.glob(lib+'.*').each {|verlib| File.symlink(verlib, lib) unless File.exist?(lib)}
|
268
|
+
ACE_FILES.collect {|dep| File.join(get_config('aceroot'), 'lib', 'lib' + dep + '.so')}.each do |lib|
|
269
|
+
Dir.glob(lib + '.*').each {|verlib| File.symlink(verlib, lib) unless File.exist?(lib)}
|
269
270
|
end
|
270
271
|
end
|
271
272
|
end
|
@@ -274,4 +275,3 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
|
|
274
275
|
end # Ext
|
275
276
|
|
276
277
|
end # R2CORBA
|
277
|
-
|
data/rakelib/ext_r2tao.rb
CHANGED
@@ -19,7 +19,7 @@ module R2CORBA
|
|
19
19
|
if RUBY_PLATFORM =~ /mingw32/
|
20
20
|
|
21
21
|
mpc_os_block = <<OS_DEP__
|
22
|
-
libs += #{File.basename(RB_CONFIG['LIBRUBY'],'.a').sub(/^lib/,'')}
|
22
|
+
libs += #{File.basename(RB_CONFIG['LIBRUBY'], '.a').sub(/^lib/, '')}
|
23
23
|
libout = .
|
24
24
|
dllout = .
|
25
25
|
verbatim(gnuace, macros, 1) {
|
@@ -73,7 +73,7 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
|
|
73
73
|
}
|
74
74
|
dynamicflags = R2TAO_BUILD_DLL
|
75
75
|
includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
|
76
|
-
#{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
|
76
|
+
#{RB_CONFIG['rubyhdrdir'] ? '"' + File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch']) + '"' : ''} \\
|
77
77
|
.
|
78
78
|
macros += RUBY_VER_MAJOR=#{Config.rb_ver_major} RUBY_VER_MINOR=#{Config.rb_ver_minor} RUBY_VER_RELEASE=#{Config.rb_ver_release}
|
79
79
|
sharedname = r2tao
|
@@ -91,16 +91,16 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
|
|
91
91
|
iortable.cpp
|
92
92
|
}
|
93
93
|
dynamicflags = R2TAO_POA_BUILD_DLL
|
94
|
-
libpaths += #{File.join('..','libr2tao')}
|
94
|
+
libpaths += #{File.join('..', 'libr2tao')}
|
95
95
|
includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
|
96
|
-
#{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
|
96
|
+
#{RB_CONFIG['rubyhdrdir'] ? '"' + File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch']) + '"' : ''} \\
|
97
97
|
#{File.join('..', 'libr2tao')} \\
|
98
98
|
.
|
99
99
|
macros += RUBY_VER_MAJOR=#{Config.rb_ver_major} RUBY_VER_MINOR=#{Config.rb_ver_minor} RUBY_VER_RELEASE=#{Config.rb_ver_release}
|
100
100
|
sharedname = rpoa
|
101
101
|
libpaths += "#{RB_CONFIG['libdir']}"
|
102
102
|
#{mpc_os_block}
|
103
|
-
libs += r2tao#{Config.is_win32 ? '.'+RB_CONFIG['DLEXT'] : ''}
|
103
|
+
libs += r2tao#{Config.is_win32 ? '.' + RB_CONFIG['DLEXT'] : ''}
|
104
104
|
}
|
105
105
|
THE_END
|
106
106
|
|
@@ -113,7 +113,7 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
|
|
113
113
|
dynamicflags = R2TAO_POL_BUILD_DLL
|
114
114
|
libpaths += #{File.join('..', 'libr2tao')} #{File.join('..', 'librpoa')}
|
115
115
|
includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
|
116
|
-
#{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
|
116
|
+
#{RB_CONFIG['rubyhdrdir'] ? '"' + File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch']) + '"' : ''} \\
|
117
117
|
#{File.join('..', 'libr2tao')} \\
|
118
118
|
#{File.join('..', 'librpoa')} \\
|
119
119
|
.
|
@@ -121,8 +121,8 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
|
|
121
121
|
sharedname = rpol
|
122
122
|
libpaths += "#{RB_CONFIG['libdir']}"
|
123
123
|
#{mpc_os_block}
|
124
|
-
libs += r2tao#{Config.is_win32 ? '.'+RB_CONFIG['DLEXT'] : ''}
|
125
|
-
libs += rpoa#{Config.is_win32 ? '.'+RB_CONFIG['DLEXT'] : ''}
|
124
|
+
libs += r2tao#{Config.is_win32 ? '.' + RB_CONFIG['DLEXT'] : ''}
|
125
|
+
libs += rpoa#{Config.is_win32 ? '.' + RB_CONFIG['DLEXT'] : ''}
|
126
126
|
}
|
127
127
|
THE_END
|
128
128
|
|
@@ -147,13 +147,7 @@ project {
|
|
147
147
|
extload.c
|
148
148
|
}
|
149
149
|
dynamicflags = EXTLOAD_BUILD_DLL
|
150
|
-
includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
|
151
|
-
#{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
|
152
|
-
.
|
153
|
-
macros += RUBY_VER_MAJOR=#{Config.rb_ver_major} RUBY_VER_MINOR=#{Config.rb_ver_minor} RUBY_VER_RELEASE=#{Config.rb_ver_release}
|
154
150
|
sharedname = extload
|
155
|
-
libpaths += "#{RB_CONFIG['libdir']}"
|
156
|
-
libs += #{File.basename(RB_CONFIG['LIBRUBY'],'.a').sub(/^lib/,'')}
|
157
151
|
libout = .
|
158
152
|
dllout = .
|
159
153
|
verbatim(gnuace, macros, 1) {
|
@@ -207,7 +201,7 @@ THE_END__
|
|
207
201
|
end
|
208
202
|
|
209
203
|
def self.download_tao_source(version, targetdir)
|
210
|
-
version_dir = version.gsub('.','_')
|
204
|
+
version_dir = version.gsub('.', '_')
|
211
205
|
_url = "https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-#{version_dir}/ACE+TAO-src-#{version}.tar.gz"
|
212
206
|
print(_msg = "Downloading ACE+TAO-src-#{version}.tar.gz from #{_url}")
|
213
207
|
_fnm = File.join(targetdir, "ACE+TAO-src-#{version}.tar.gz")
|
@@ -240,10 +234,10 @@ THE_END__
|
|
240
234
|
|
241
235
|
def self.ext_shlibs
|
242
236
|
(if Config.is_win32
|
243
|
-
%w{libr2taow
|
237
|
+
%w{libr2taow librpoaw librpolw}
|
244
238
|
else
|
245
|
-
%w{libr2tao
|
246
|
-
end).collect {|lib| File.join('ext', lib+'.so') }
|
239
|
+
%w{libr2tao librpoa librpol}
|
240
|
+
end).collect {|lib| File.join('ext', lib + '.so') }
|
247
241
|
end
|
248
242
|
|
249
243
|
end
|
data/rakelib/gem.rake
CHANGED
@@ -25,7 +25,7 @@ namespace :r2corba do
|
|
25
25
|
unless defined?(JRUBY_VERSION) || get_config('without-tao')
|
26
26
|
# install ACE+TAO dlls
|
27
27
|
R2CORBA::Ext.ace_shlibs.each do |acelib|
|
28
|
-
libmask = R2CORBA::Config.is_linux ? acelib+'.*' : acelib
|
28
|
+
libmask = R2CORBA::Config.is_linux ? acelib + '.*' : acelib
|
29
29
|
path = Dir.glob(libmask).first
|
30
30
|
raise "Cannot find ACE+TAO library #{File.basename(acelib)}." unless path
|
31
31
|
FileUtils.install(path, ext_dir, :mode => 0555, :verbose => Rake.verbose)
|
@@ -43,7 +43,7 @@ namespace :r2corba do
|
|
43
43
|
if R2CORBA::Config.is_linux
|
44
44
|
# create unversioned ACE/TAO lib symlinks
|
45
45
|
R2CORBA::Ext.ace_shlibs('.so', 'ext').each do |acelib|
|
46
|
-
acelib_ver = File.expand_path(Dir[acelib+'.*'].first)
|
46
|
+
acelib_ver = File.expand_path(Dir[acelib + '.*'].first)
|
47
47
|
ln_s(acelib_ver, acelib)
|
48
48
|
end
|
49
49
|
end
|
@@ -104,7 +104,7 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
104
104
|
gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
|
105
105
|
gem.require_paths << 'ext'
|
106
106
|
gem.add_dependency 'ridl', '~> 2.8'
|
107
|
-
gem.add_dependency 'rake', '
|
107
|
+
gem.add_dependency 'rake', '>= 12.3.3'
|
108
108
|
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
|
109
109
|
gem.metadata = {
|
110
110
|
"bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
|
@@ -193,7 +193,7 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
193
193
|
gem.require_paths << 'ext'
|
194
194
|
end
|
195
195
|
gem.add_dependency 'ridl', '~> 2.8'
|
196
|
-
gem.add_dependency 'rake', '
|
196
|
+
gem.add_dependency 'rake', '>= 12.3.3'
|
197
197
|
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
|
198
198
|
gem.metadata = {
|
199
199
|
"bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
|
@@ -211,7 +211,7 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
211
211
|
end
|
212
212
|
t_.enhance ['mkrf_conf_bingem.rb']
|
213
213
|
|
214
|
-
unless defined?(JRUBY_VERSION)
|
214
|
+
unless defined?(JRUBY_VERSION)
|
215
215
|
# Devkit faker Gem for binary Windows gems
|
216
216
|
t_devkit = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba_devkit', '1.0.0', :devkit)}.gem") => 'lib/rubygems_plugin.rb' do
|
217
217
|
# create gemspec
|
data/rakelib/gem.rb
CHANGED
@@ -92,9 +92,9 @@ module R2CORBA
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def self.define_spec(name, version, gemtype = :src, &block)
|
95
|
-
name += '_ext' if gemtype == :extbin &&
|
96
|
-
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) &&
|
97
|
-
gemspec = ::Gem::Specification.new(name,version.dup)
|
95
|
+
name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
|
96
|
+
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
|
97
|
+
gemspec = ::Gem::Specification.new(name, version.dup)
|
98
98
|
if gemtype == :bin || gemtype == :extbin
|
99
99
|
gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
|
100
100
|
end
|
@@ -105,8 +105,8 @@ module R2CORBA
|
|
105
105
|
|
106
106
|
def self.gem_name(name, version, gemtype = :src)
|
107
107
|
name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
|
108
|
-
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) &&
|
109
|
-
gemspec = ::Gem::Specification.new(name,version.dup)
|
108
|
+
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
|
109
|
+
gemspec = ::Gem::Specification.new(name, version.dup)
|
110
110
|
if gemtype == :bin || gemtype == :extbin
|
111
111
|
gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
|
112
112
|
end
|
@@ -25,13 +25,13 @@ ARGV.options do |opts|
|
|
25
25
|
|
26
26
|
opts.on("--k IORFILE",
|
27
27
|
"Set IOR.",
|
28
|
-
"Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
|
28
|
+
"Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
|
29
29
|
opts.on("--d LVL",
|
30
30
|
"Set ORBDebugLevel value.",
|
31
|
-
"Default: 0", Integer) { |v| OPTIONS[:orb_debuglevel]=v }
|
31
|
+
"Default: 0", Integer) { |v| OPTIONS[:orb_debuglevel] = v }
|
32
32
|
opts.on("--use-implement",
|
33
33
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
34
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
34
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
35
35
|
|
36
36
|
opts.separator ""
|
37
37
|
|
@@ -26,16 +26,16 @@ ARGV.options do |opts|
|
|
26
26
|
|
27
27
|
opts.on("--o IORFILE",
|
28
28
|
"Set IOR filename.",
|
29
|
-
"Default: 'server.ior'") { |v| OPTIONS[:iorfile]=v }
|
29
|
+
"Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
|
30
30
|
opts.on("--d LVL",
|
31
31
|
"Set ORBDebugLevel value.",
|
32
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
32
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
33
33
|
opts.on("--use-implement",
|
34
34
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
35
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
35
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
36
36
|
opts.on("--i ITERATIONS",
|
37
37
|
"Set number of iterations.",
|
38
|
-
"Default: 10", Integer) { |v| OPTIONS[:iter_num]=v }
|
38
|
+
"Default: 10", Integer) { |v| OPTIONS[:iter_num] = v }
|
39
39
|
|
40
40
|
opts.separator ""
|
41
41
|
|
@@ -165,4 +165,3 @@ end
|
|
165
165
|
puts 'event loop finished'
|
166
166
|
|
167
167
|
root_poa.destroy(true, true)
|
168
|
-
|