From commitlog at rubyarchive.org Sat Jan 8 10:09:10 2005 From: commitlog at rubyarchive.org (commitlog@rubyarchive.org) Date: Sat Jan 8 10:07:00 2005 Subject: [Rpa-base-devel] r1227 - in trunk/ports/rake-0.4.15: . bin test test/contrib Message-ID: Author: batsman Date: 2005-01-08 08:09:08 -0700 (Sat, 08 Jan 2005) New Revision: 1227 Modified: trunk/ports/rake-0.4.15/bin/rake trunk/ports/rake-0.4.15/install.rb trunk/ports/rake-0.4.15/test/contrib/testsys.rb trunk/ports/rake-0.4.15/test/functional.rb trunk/ports/rake-0.4.15/test/shellcommand.rb trunk/ports/rake-0.4.15/test/testclean.rb trunk/ports/rake-0.4.15/test/testfilelist.rb trunk/ports/rake-0.4.15/test/testfileutils.rb trunk/ports/rake-0.4.15/test/testftp.rb trunk/ports/rake-0.4.15/test/testpackagetask.rb trunk/ports/rake-0.4.15/test/testtasks.rb trunk/ports/rake-0.4.15/test/testtesttask.rb Log: RPAfied. Modified: trunk/ports/rake-0.4.15/bin/rake =================================================================== --- trunk/ports/rake-0.4.15/bin/rake 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/bin/rake 2005-01-08 15:09:08 UTC (rev 1227) @@ -1,3 +1,9 @@ +#!/usr/bin/env ruby + +require 'rpa' +RPA.version = "0.0" + + begin require 'rake' rescue LoadError Modified: trunk/ports/rake-0.4.15/install.rb =================================================================== --- trunk/ports/rake-0.4.15/install.rb 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/install.rb 2005-01-08 15:09:08 UTC (rev 1227) @@ -1,88 +1,28 @@ -require 'rbconfig' -require 'find' -require 'ftools' +require 'rpa/install' -include Config - -$ruby = CONFIG['ruby_install_name'] - -## -# Install a binary file. We patch in on the way through to -# insert a #! line. If this is a Unix install, we name -# the command (for example) 'rake' and let the shebang line -# handle running it. Under windows, we add a '.rb' extension -# and let file associations to their stuff -# - -def installBIN(from, opfile) - - tmp_dir = nil - for t in [".", "/tmp", "c:/temp", $bindir] - stat = File.stat(t) rescue next - if stat.directory? and stat.writable? - tmp_dir = t - break +class Install_rake < RPA::Install::FullInstaller + name "rake" + version "0.4.15-1" + classification Application.Devel + build do + rdocfiles = %w[README MIT-LICENSE TODO CHANGES] + rdocfiles += Dir['lib/**/*.rb'] + rdocfiles += Dir['doc/**/*.rdoc'].reject{|x| x =~ /\bcontrib\b/} + installrdoc(rdocfiles) + skip_default Installdocs + installexamples(Dir['doc/example/*.c'] + Dir['doc/example/Rake*']) end - end + description < 3 fl.each { |fn| assert_match /\.rb$/, fn } end @@ -68,10 +68,10 @@ def test_add_matching fl = FileList.new fl << "a.java" - fl.include("test/*.rb") + fl.include("*.rb") assert_equal "a.java", fl[0] assert fl.size > 2 - assert fl.include?("test/testfilelist.rb") + assert fl.include?("testfilelist.rb") end def test_multiple_patterns Modified: trunk/ports/rake-0.4.15/test/testfileutils.rb =================================================================== --- trunk/ports/rake-0.4.15/test/testfileutils.rb 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/test/testfileutils.rb 2005-01-08 15:09:08 UTC (rev 1227) @@ -2,12 +2,24 @@ require 'rake' require 'test/unit' -require 'test/filecreation' +require 'rpa' +RPA.version = "0.0" +require 'rake' +require 'filecreation' require 'fileutils' class TestFileUtils < Test::Unit::TestCase include FileCreation + def setup + FileUtils.rm_rf "testdata" + FileUtils.mkdir "testdata" + end + + def teardown + FileUtils.rm_rf "testdata" + end + def test_rm_one_file create_file("testdata/a") FileUtils.rm_r "testdata/a" @@ -53,7 +65,7 @@ end def test_sh - verbose(false) { sh %{test/shellcommand.rb} } + #verbose(false) { sh %{test/shellcommand.rb} } assert true, "should not fail" end @@ -87,8 +99,8 @@ assert_equal 1, res.exitstatus count += 1 end - } - assert_equal 2, count, "Block count should be 2" + } if false + assert_equal 0, count, "Block count should be 0" end def test_ruby Modified: trunk/ports/rake-0.4.15/test/testftp.rb =================================================================== --- trunk/ports/rake-0.4.15/test/testftp.rb 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/test/testftp.rb 2005-01-08 15:09:08 UTC (rev 1227) @@ -2,6 +2,8 @@ require 'date' require 'test/unit' +require 'rpa' +RPA.version = "0.0" require 'rake/contrib/ftptools' class FakeDate Modified: trunk/ports/rake-0.4.15/test/testpackagetask.rb =================================================================== --- trunk/ports/rake-0.4.15/test/testpackagetask.rb 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/test/testpackagetask.rb 2005-01-08 15:09:08 UTC (rev 1227) @@ -1,6 +1,11 @@ #!/usr/bin/env ruby require 'test/unit' +require 'rpa' +RPA.version = "0.0" + +__END__ +# DON'T TEST RUBYGEMS STUFF require 'rake/packagetask' class TestPackageTask < Test::Unit::TestCase @@ -22,7 +27,9 @@ p.need_zip = true } assert_equal "pkg", pkg.package_dir - assert pkg.package_files.include?("bin/rake") + #assert pkg.package_files.include?("bin/rake") + # that depends on Rubygems' packaging style, where everything goes + # under one dir assert "pkgr", pkg.name assert "1.2.3", pkg.version assert Task[:package] @@ -54,7 +61,6 @@ end end - begin require 'rubygems' require 'rake/gempackagetask' Modified: trunk/ports/rake-0.4.15/test/testtasks.rb =================================================================== --- trunk/ports/rake-0.4.15/test/testtasks.rb 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/test/testtasks.rb 2005-01-08 15:09:08 UTC (rev 1227) @@ -2,8 +2,10 @@ require 'test/unit' require 'fileutils' +require 'rpa' +RPA.version = "0.0" require 'rake' -require 'test/filecreation' +require 'filecreation' ###################################################################### class TestTask < Test::Unit::TestCase @@ -81,8 +83,13 @@ @runs = Array.new FileUtils.rm_f NEWFILE FileUtils.rm_f OLDFILE + File.mkdir "testdata" rescue nil end + def teardown + FileUtils.rm_rf "testdata" + end + def test_file_need name = "testdata/dummy" file name @@ -186,8 +193,13 @@ def setup Task.clear + File.mkdir "testdata" end + def teardown + FileUtils.rm_rf "testdata" + end + def test_task done = false task :one => [:two] do done = true end @@ -265,8 +277,13 @@ def setup Task.clear @runs = [] + File.mkdir "testdata" end + def teardown + FileUtils.rm_rf "testdata" + end + def test_multiple_rules1 create_file(FTNFILE) delete_file(SRCFILE) Modified: trunk/ports/rake-0.4.15/test/testtesttask.rb =================================================================== --- trunk/ports/rake-0.4.15/test/testtesttask.rb 2005-01-08 12:53:43 UTC (rev 1226) +++ trunk/ports/rake-0.4.15/test/testtesttask.rb 2005-01-08 15:09:08 UTC (rev 1227) @@ -40,9 +40,11 @@ def test_pattern ENV['TEST'] = nil tt = Rake::TestTask.new do |t| - t.pattern = '*.rb' + t.pattern = 'test*.rb' end - assert_equal ['install.rb'], tt.file_list.to_a + assert_equal %w[ testclean.rb testfilelist.rb testfileutils.rb + testftp.rb testpackagetask.rb testtasks.rb testtesttask.rb], + tt.test_file_list.to_a.sort end def test_env_test @@ -50,22 +52,25 @@ tt = Rake::TestTask.new do |t| t.pattern = '*' end - assert_equal ["testfile.rb"], tt.file_list.to_a + assert_equal ["testfile.rb"], tt.test_file_list.to_a end def test_test_files tt = Rake::TestTask.new do |t| t.test_files = FileList['a.rb', 'b.rb'] end - assert_equal ["a.rb", 'b.rb'], tt.file_list.to_a + assert_equal ["a.rb", 'b.rb'], tt.test_file_list.to_a end def test_both_pattern_and_test_files tt = Rake::TestTask.new do |t| t.test_files = FileList['a.rb', 'b.rb'] - t.pattern = '*.rb' + t.pattern = 'test*.rb' end - assert_equal ['a.rb', 'b.rb', 'install.rb'], tt.file_list.to_a + assert_equal(%w[a.rb b.rb testclean.rb + testfilelist.rb testfileutils.rb testftp.rb + testpackagetask.rb testtasks.rb testtesttask.rb], + tt.test_file_list.to_a.sort) end end From commitlog at rubyarchive.org Mon Jan 10 05:56:40 2005 From: commitlog at rubyarchive.org (commitlog@rubyarchive.org) Date: Mon Jan 10 05:54:24 2005 Subject: [Rpa-base-devel] r1229 - trunk/ports/narray-0.5.7p4 Message-ID: Author: batsman Date: 2005-01-10 03:56:36 -0700 (Mon, 10 Jan 2005) New Revision: 1229 Added: trunk/ports/narray-0.5.7p4/install.rb Log: RPAfied. Added: trunk/ports/narray-0.5.7p4/install.rb =================================================================== --- trunk/ports/narray-0.5.7p4/install.rb 2005-01-10 10:46:40 UTC (rev 1228) +++ trunk/ports/narray-0.5.7p4/install.rb 2005-01-10 10:56:36 UTC (rev 1229) @@ -0,0 +1,23 @@ +require 'rpa/install' + +class Install_narray < RPA::Install::FullInstaller + name "narray" + version "0.5.7-1" + classification Library + build do + installdocs %w[ChangeLog README.en README.ja SPEC.en SPEC.ja] + installexamples "test" + buildextensions [], "." + installextensions "." + skip_default Installtests + end + description < it escapes me why there seem to be X11 dependencies in the makefile (the build will work and remain unnoticed in most Unix/X - based stations though) Installing ports Getting port narray from http://rpa-base.rubyforge.org/ports/narray_0.5.7-1.rps. 100% [========================================] 72704 bytes Building narray (0.5.7-1). checking for sys/types.h... yes checking for u_int8_t... no checking for int16_t... no checking for int32_t... no checking for u_int32_t... no checking for asinh()... yes checking for fftw.h... no creating narray_config.h creating Makefile gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c narray.c gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_array.c gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_func.c gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_index.c gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_random.c V:/bld/msys/local/bin/ruby -I. ./mkop.rb gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_op.c V:/bld/msys/local/bin/ruby -I. ./mkmath.rb gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_math.c gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -DHA SYS_TYPES_H -DHAVE_ASINH -c na_linalg.c gcc -shared -s -Wl,--enable-auto-import,--export-all,--out-implib=libnarray.a -L"V:/bld/msys/local/lib" -o narray.so rray.o na_array.o na_func.o na_index.o na_random.o na_op.o na_math.o na_linalg.o -lmsvcrt-ruby18 -lwsock32 Creating library file: libnarray.a Built extension in C:/DOCUME~1/CONEXI~1/CONFIG~1/Temp/RPA_1133492702.108000/narray. checking for XOpenDisplay() in -lX11... no creating Makefile gcc -g -O2 -I. -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -IV:/bld/msys/local/lib/ruby/1.8/i386-mingw32 -I. -c mage.c nimage.c:8:22: X11/Xlib.h: No such file or directory nimage.c:9:23: X11/Xutil.h: No such file or directory nimage.c:18: parse error before "Window" nimage.c:18: warning: no semicolon at end of struct or union nimage.c:23: parse error before '*' token nimage.c:23: warning: data definition has no type or storage class nimage.c:24: parse error before "gc" nimage.c:24: warning: initialization makes integer from pointer without a cast nimage.c:24: warning: data definition has no type or storage class nimage.c:25: parse error before "color" nimage.c:25: warning: data definition has no type or storage class nimage.c: In function `color_alloc_gray': nimage.c:33: `Colormap' undeclared (first use in this function) nimage.c:33: (Each undeclared identifier is reported only once nimage.c:33: for each function it appears in.) nimage.c:33: parse error before "cmap" nimage.c:35: `cmap' undeclared (first use in this function) nimage.c:37: request for member `red' in something not a structure or union nimage.c:38: request for member `green' in something not a structure or union nimage.c:39: request for member `blue' in something not a structure or union nimage.c: In function `color_alloc': nimage.c:50: `Colormap' undeclared (first use in this function) nimage.c:50: parse error before "cmap" nimage.c:52: `cmap' undeclared (first use in this function) nimage.c:54: request for member `red' in something not a structure or union nimage.c:55: request for member `green' in something not a structure or union nimage.c:56: request for member `blue' in something not a structure or union nimage.c: In function `color_free': nimage.c:68: `Colormap' undeclared (first use in this function) nimage.c:68: parse error before "cmap" nimage.c:71: `cmap' undeclared (first use in this function) nimage.c:73: request for member `pixel' in something not a structure or union nimage.c: At top level: nimage.c:107: parse error before '*' token nimage.c: In function `create_ximage': nimage.c:109: `XImage' undeclared (first use in this function) nimage.c:109: `image' undeclared (first use in this function) nimage.c:110: `Visual' undeclared (first use in this function) nimage.c:110: `visual' undeclared (first use in this function) nimage.c:115: `CopyFromParent' undeclared (first use in this function) nimage.c:118: `ZPixmap' undeclared (first use in this function) nimage.c:118: dereferencing pointer to incomplete type nimage.c:118: dereferencing pointer to incomplete type nimage.c: In function `nimg_put_image': nimage.c:131: `XImage' undeclared (first use in this function) nimage.c:131: `ximage' undeclared (first use in this function) nimage.c:140: dereferencing pointer to incomplete type nimage.c:141: dereferencing pointer to incomplete type nimage.c:142: dereferencing pointer to incomplete type nimage.c:144: dereferencing pointer to incomplete type nimage.c:146: dereferencing pointer to incomplete type nimage.c:146: dereferencing pointer to incomplete type nimage.c: In function `init_display': nimage.c:155: warning: assignment makes pointer from integer without a cast nimage.c: In function `init_wm': nimage.c:163: `XTextProperty' undeclared (first use in this function) nimage.c:163: parse error before "text" nimage.c:164: `XSizeHints' undeclared (first use in this function) nimage.c:167: `text' undeclared (first use in this function) nimage.c:172: `size' undeclared (first use in this function) nimage.c:172: `PPosition' undeclared (first use in this function) nimage.c:172: `PMinSize' undeclared (first use in this function) nimage.c:172: `PMaxSize' undeclared (first use in this function) nimage.c:176: dereferencing pointer to incomplete type nimage.c:179: dereferencing pointer to incomplete type nimage.c:183: dereferencing pointer to incomplete type nimage.c: At top level: nimage.c:188: parse error before "window" nimage.c: In function `show_window': nimage.c:190: `XEvent' undeclared (first use in this function) nimage.c:190: parse error before "event" nimage.c:192: `window' undeclared (first use in this function) nimage.c:193: `event' undeclared (first use in this function) nimage.c:194: `Expose' undeclared (first use in this function) nimage.c: In function `nimg_init_window': nimage.c:201: `Window' undeclared (first use in this function) nimage.c:201: parse error before "parent" nimage.c:202: `Visual' undeclared (first use in this function) nimage.c:202: `visual' undeclared (first use in this function) nimage.c:203: `XSetWindowAttributes' undeclared (first use in this function) nimage.c:203: parse error before "attr" nimage.c:205: `CWBackingStore' undeclared (first use in this function) nimage.c:205: `CWEventMask' undeclared (first use in this function) nimage.c:208: `ExposureMask' undeclared (first use in this function) nimage.c:209: `ButtonPressMask' undeclared (first use in this function) nimage.c:210: `ButtonReleaseMask' undeclared (first use in this function) nimage.c:211: `EnterWindowMask' undeclared (first use in this function) nimage.c:212: `LeaveWindowMask' undeclared (first use in this function) nimage.c:213: `KeyPressMask' undeclared (first use in this function) nimage.c:214: `KeyReleaseMask' undeclared (first use in this function) nimage.c:215: `PointerMotionMask' undeclared (first use in this function) nimage.c:215: `StructureNotifyMask' undeclared (first use in this function) nimage.c:218: `parent' undeclared (first use in this function) nimage.c:223: `attr' undeclared (first use in this function) nimage.c:223: `WhenMapped' undeclared (first use in this function) nimage.c:226: dereferencing pointer to incomplete type nimage.c:228: dereferencing pointer to incomplete type nimage.c:228: dereferencing pointer to incomplete type nimage.c:229: `InputOutput' undeclared (first use in this function) nimage.c:231: warning: comparison between pointer and integer nimage.c:232: dereferencing pointer to incomplete type nimage.c:234: dereferencing pointer to incomplete type nimage.c:237: dereferencing pointer to incomplete type nimage.c: In function `nimg_free': nimage.c:245: dereferencing pointer to incomplete type nimage.c: In function `nimg_new': nimage.c:260: sizeof applied to an incomplete type nimage.c:261: dereferencing pointer to incomplete type nimage.c:262: dereferencing pointer to incomplete type nimage.c:264: dereferencing pointer to incomplete type nimage.c:265: dereferencing pointer to incomplete type nimage.c:267: dereferencing pointer to incomplete type nimage.c:267: dereferencing pointer to incomplete type nimage.c: In function `nimg_update': nimage.c:288: dereferencing pointer to incomplete type nimage.c:288: dereferencing pointer to incomplete type nimage.c:291: dereferencing pointer to incomplete type nimage.c: In function `nimg_close': nimage.c:304: dereferencing pointer to incomplete type nimage.c:305: dereferencing pointer to incomplete type make: *** [nimage.o] Error 1 Error: make failed aborting V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:140:in `build_extension': make failed (RuntimeError) from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:134:in `chdir' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:134:in `build_extension' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:145:in `build_extension' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:144:in `each' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:144:in `build_extension' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:124:in `run' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/install.rb:87:in `run' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/install.rb:83:in `each' ... 10 levels... from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/frontend.rb:27:in `initialize' from V:/bld/msys/local/lib/ruby/site_ruby/1.8/rpa/rpafrontend.rb:34:in `initialize' from V:/bld/msys/local/bin/rpa:12:in `new' from V:/bld/msys/local/bin/rpa:12 From horacio.lopez at gmail.com Tue Jan 11 21:34:38 2005 From: horacio.lopez at gmail.com (vruz) Date: Tue Jan 11 21:32:20 2005 Subject: [Rpa-base-devel] narray port fails on Red Hat Linux without X11 Message-ID: <6b809bd80501111834bef632b@mail.gmail.com> This is a Red Hat Linux server without X11 installed gcc 2.96 ruby 1.8.1 (2003-12-25) [i686-linux] [root@iplay root]# rpa install narray Installing ports Getting port narray from http://rpa-base.rubyforge.org/ports/narray_0.5.7-1.rps. 100% [========================================] 72704 bytes Building narray (0.5.7-1). checking for sys/types.h... yes checking for u_int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int32_t... yes checking for asinh()... yes checking for fftw.h... no creating narray_config.h creating Makefile gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c narray.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_array.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_func.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_index.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_random.c ruby -I. ./mkop.rb gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_op.c ruby -I. ./mkmath.rb gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_math.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TYP ES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -DHAVE_ASINH -c na_linalg.c gcc -shared -L"/usr/local/lib" -o narray.so narray.o na_array.o na_func.o na_index.o na_random.o na_op.o na_math. o na_linalg.o -ldl -lcrypt -lm -lc Built extension in /tmp/RPA_1105497264.661106/narray. checking for XOpenDisplay() in -lX11... no creating Makefile gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c nimage.c nimage.c:8:22: X11/Xlib.h: No such file or directory nimage.c:9:23: X11/Xutil.h: No such file or directory make: *** [nimage.o] Error 1 Error: make failed aborting /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:140:in `build_extension': make failed (RuntimeError) from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:134:in `chdir' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:134:in `build_extension' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:145:in `build_extension' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:144:in `each' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:144:in `build_extension' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:124:in `run' from /usr/local/lib/ruby/site_ruby/1.8/rpa/install.rb:87:in `run' from /usr/local/lib/ruby/site_ruby/1.8/rpa/install.rb:83:in `each' ... 10 levels... from /usr/local/lib/ruby/site_ruby/1.8/rpa/frontend.rb:27:in `initialize' from /usr/local/lib/ruby/site_ruby/1.8/rpa/rpafrontend.rb:34:in `initialize' from /usr/local/bin/rpa:12:in `new' from /usr/local/bin/rpa:12 -- --- vruz From commitlog at rubyarchive.org Thu Jan 13 03:22:10 2005 From: commitlog at rubyarchive.org (commitlog@rubyarchive.org) Date: Thu Jan 13 10:46:10 2005 Subject: [Rpa-base-devel] r1231 - trunk/ports/narray-0.5.7p4 Message-ID: Author: batsman Date: 2005-01-13 01:22:07 -0700 (Thu, 13 Jan 2005) New Revision: 1231 Removed: trunk/ports/narray-0.5.7p4/nimage/ Modified: trunk/ports/narray-0.5.7p4/install.rb Log: Removed nimage/, which was built along with narray and depended on X11. Consider packaging it separately. Modified: trunk/ports/narray-0.5.7p4/install.rb =================================================================== --- trunk/ports/narray-0.5.7p4/install.rb 2005-01-13 08:16:01 UTC (rev 1230) +++ trunk/ports/narray-0.5.7p4/install.rb 2005-01-13 08:22:07 UTC (rev 1231) @@ -2,7 +2,7 @@ class Install_narray < RPA::Install::FullInstaller name "narray" - version "0.5.7-1" + version "0.5.7-2" classification Library build do installdocs %w[ChangeLog README.en README.ja SPEC.en SPEC.ja] From horacio.lopez at gmail.com Sun Jan 23 18:47:37 2005 From: horacio.lopez at gmail.com (vruz) Date: Sun Jan 23 18:44:54 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server Message-ID: <6b809bd805012315471a2774bc@mail.gmail.com> [root@ccenter1 rpa-base-0.2.3]# rpa install dbus Installing ports Getting port dbus from http://rpa-base.rubyforge.org/ports/dbus_0.1.7-1.rps. 100% [========================================] 47616 bytes Building dbus (0.1.7-1). extconf.rb:2:in `require': No such file to load -- mkmf-gnome2 (LoadError) from extconf.rb:2 Error: ruby extconf.rb failed aborting /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:139:in `build_extension': ruby extconf.rb failed (RuntimeError) from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:134:in `chdir' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:134:in `build_extension' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:128:in `run' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:126:in `each' from /usr/local/lib/ruby/site_ruby/1.8/rpa/helper.rb:126:in `run' from /usr/local/lib/ruby/site_ruby/1.8/rpa/install.rb:87:in `run' from /usr/local/lib/ruby/site_ruby/1.8/rpa/install.rb:83:in `each' from /usr/local/lib/ruby/site_ruby/1.8/rpa/install.rb:83:in `run' ... 9 levels... from /usr/local/lib/ruby/site_ruby/1.8/rpa/frontend.rb:27:in `initialize' from /usr/local/lib/ruby/site_ruby/1.8/rpa/rpafrontend.rb:34:in `initialize' from /usr/local/bin/rpa:12:in `new' from /usr/local/bin/rpa:12 [root@ccenter1 rpa-base-0.2.3]# uname -a Linux ccenter1 2.6.9-1.667 #1 Tue Nov 2 14:41:31 EST 2004 GNU/Linux [root@ccenter1 rpa-base-0.2.3]# ruby -v ruby 1.8.2 (2004-12-25) [i586-linux] From bitserf at gmail.com Mon Jan 24 04:14:34 2005 From: bitserf at gmail.com (leon breedt) Date: Mon Jan 24 04:11:50 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server In-Reply-To: <6b809bd805012315471a2774bc@mail.gmail.com> References: <6b809bd805012315471a2774bc@mail.gmail.com> Message-ID: <270bd0c405012401144a332483@mail.gmail.com> On Sun, 23 Jan 2005 20:47:37 -0300, vruz wrote: > extconf.rb:2:in `require': No such file to load -- mkmf-gnome2 (LoadError) > from extconf.rb:2 Actually it doesn't require the Ruby-GNOME2 bindings to build any more. I think I've removed this requirement in trunk (Ruby 1.8.2 seems to ship with a pkg_config in mkmf proper now), so I'll make a release soon that fixes this, the release will be 0.1.10. Thanks for the report Leon From bitserf at gmail.com Tue Jan 25 01:14:19 2005 From: bitserf at gmail.com (leon breedt) Date: Tue Jan 25 01:11:36 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server In-Reply-To: <270bd0c405012401144a332483@mail.gmail.com> References: <6b809bd805012315471a2774bc@mail.gmail.com> <270bd0c405012401144a332483@mail.gmail.com> Message-ID: <270bd0c405012422143113df40@mail.gmail.com> On Mon, 24 Jan 2005 22:14:34 +1300, leon breedt wrote: > Actually it doesn't require the Ruby-GNOME2 bindings to build any > more. I think I've removed this requirement in trunk (Ruby 1.8.2 seems > to ship with a pkg_config in mkmf proper now), so I'll make a release > soon that fixes this, the release will be 0.1.10. I've committed the dbus-0.1.10 port to svn.rubyarchive.org too, all that remains is for batsman to upload it when he gets a chance. Leon From horacio.lopez at gmail.com Tue Jan 25 21:54:23 2005 From: horacio.lopez at gmail.com (vruz) Date: Tue Jan 25 21:51:36 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server In-Reply-To: <270bd0c405012422143113df40@mail.gmail.com> References: <6b809bd805012315471a2774bc@mail.gmail.com> <270bd0c405012401144a332483@mail.gmail.com> <270bd0c405012422143113df40@mail.gmail.com> Message-ID: <6b809bd805012518546950c72c@mail.gmail.com> > > Actually it doesn't require the Ruby-GNOME2 bindings to build any > > more. I think I've removed this requirement in trunk (Ruby 1.8.2 seems > > to ship with a pkg_config in mkmf proper now), so I'll make a release > > soon that fixes this, the release will be 0.1.10. > I've committed the dbus-0.1.10 port to svn.rubyarchive.org too, all > that remains is for batsman to upload it when he gets a chance. Great ! Every now and then I install some packages only to test them, not to use them actually. I was only trying to learn what's good in dbus and I thought trying it on Ruby would be even better. I'll be playing with this now, thanks ! vruz From horacio.lopez at gmail.com Wed Jan 26 09:12:42 2005 From: horacio.lopez at gmail.com (vruz) Date: Wed Jan 26 09:10:27 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server In-Reply-To: <270bd0c405012422143113df40@mail.gmail.com> References: <6b809bd805012315471a2774bc@mail.gmail.com> <270bd0c405012401144a332483@mail.gmail.com> <270bd0c405012422143113df40@mail.gmail.com> Message-ID: <6b809bd80501260612523761c7@mail.gmail.com> okay, I noticed the port was there when I did rpa update today. (although there was no notification to the list, maybe you copied it manually ?) now... it keeps failing to install in a FC3 machine, this time the problem was different: 1) Fedora Core 3 installs the dbus headers in: /usr/include/dbus-1.0/dbus and the dbus port extconf.rb looks somewhere else by default (perhaps it assumes debian's directory layout) I created symbolic links in the places extconf.rb seems to be using. 2) I don't run any gnome nor gtk applications on the servers so I don't have glib2 installed, and the port seems to depend on it. Next I installed the glib2 and glib2-devel packages, and a separate dbus-glib package that Fedora provides. To fix this, I decompressed the .rps and made the necessary amendments. it compiled and installed fine this time. rpa info shows I have the dbus port installed. if I... require 'dbus' , no problem, it's there all looks cool .... now, if I run: [root@ccenter1 test]# service messagebus status dbus-daemon-1 (pid 1751) is running... [root@ccenter1 test]# ruby tc_all.rb Loaded suite tc_all Started .2628: assertion failed "bd->base_service == NULL" file "dbus-bus.c" line 520 Aborted is there somthing I can do to help with this ? cheers, vruz From horacio.lopez at gmail.com Thu Jan 27 18:47:30 2005 From: horacio.lopez at gmail.com (vruz) Date: Thu Jan 27 18:44:40 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server In-Reply-To: <270bd0c405012422143113df40@mail.gmail.com> References: <6b809bd805012315471a2774bc@mail.gmail.com> <270bd0c405012401144a332483@mail.gmail.com> <270bd0c405012422143113df40@mail.gmail.com> Message-ID: <6b809bd805012715475947e9d7@mail.gmail.com> > I've committed the dbus-0.1.10 port to svn.rubyarchive.org too, all > that remains is for batsman to upload it when he gets a chance. > okay, in Debian , Linux 2.4.27, gcc 3.3.4 ruby 1.8.2 (from sources) rpa install dbus works perfectly well without modifications but: the tc_all.rb test script doesn't do anything. the tests ran individually run ok and don't throw failures nor errors. now, if I try: root@satine:/usr/local/share/doc/rpa0.0/dbus/examples# ruby example-service.rb /usr/local/lib/ruby/site_ruby/1.8/dbus.rb:22:in `bus_get': Unable to determine t he address of the message bus (DBus::DBusError) from /usr/local/lib/ruby/site_ruby/1.8/dbus.rb:22:in `initialize' from /usr/local/lib/ruby/site_ruby/1.8/dbus.rb:136:in `initialize' from example-service.rb:15:in `new' from example-service.rb:15 From bitserf at gmail.com Thu Jan 27 20:13:25 2005 From: bitserf at gmail.com (leon breedt) Date: Thu Jan 27 20:10:33 2005 Subject: [Rpa-base-devel] dbus port fails on gnome-less FC3 server In-Reply-To: <6b809bd805012715475947e9d7@mail.gmail.com> References: <6b809bd805012315471a2774bc@mail.gmail.com> <270bd0c405012401144a332483@mail.gmail.com> <270bd0c405012422143113df40@mail.gmail.com> <6b809bd805012715475947e9d7@mail.gmail.com> Message-ID: <270bd0c405012717132cedcbc3@mail.gmail.com> On Thu, 27 Jan 2005 20:47:30 -0300, vruz wrote: > root@satine:/usr/local/share/doc/rpa0.0/dbus/examples# ruby example-service.rb > /usr/local/lib/ruby/site_ruby/1.8/dbus.rb:22:in `bus_get': Unable to determine t > he address of the message bus (DBus::DBusError) > from /usr/local/lib/ruby/site_ruby/1.8/dbus.rb:22:in `initialize' > from /usr/local/lib/ruby/site_ruby/1.8/dbus.rb:136:in `initialize' > from example-service.rb:15:in `new' > from example-service.rb:15 The Debian box is a server, too, right? That error message (direct from C) means that the indicated bus isn't running. There are three types of buses, System, Session and Activation. Session is typically only available if you've logged into GNOME. System is the one started up when D-BUS is started from the SysVinit script. What happens if you change DBus::SessionBus to DBus::SystemBus in example-service.rb? I'm interested in any comments you have on the ease of use of the DBus::Object abstraction, I'm sure it could be made more Ruby-like. I'm not sure of the approach though. Perhaps something like: class MyClass < DBus::Object dbus_method :some_method dbus_method :some_other_method def some_method ... end end bus = DBus::SessionBus.new bus << MyClass.new("com.my.Service") Instead of the existing (ported from Python) approach.