Hi,

I'm trying to port some random ruby gems, to get familiar how things
works in Ruby environment. I've created attached port and I'm trying to
execute it's regress tests from within ports framework. So far, without
success. I'm getting message like in subject:

        Unable to determine name from existing gemspec.

When I copy from fake root file test-unit-2.5.4.gemspec to WRKSRC, make
regress works. What would be the correct way to handle this? See
attached log for details.

-- 
best regards
q#

Attachment: ruby-test-unit.tar.gz
Description: application/tar-gz

...
=> ruby19-test-unit-2.5.4 depends on: ruby19-redcloth-* -> ruby19-redcloth-4.2.9
===>  Regression tests for ruby19-test-unit-2.5.4
cd /home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4 && /usr/bin/env -i 
PORTSDIR="/usr/ports" LIBTOOL="/usr/bin/libtool "  
PATH='/home/ports/obj/test-unit-2.5.4-ruby19/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/X11R6/bin'
 PREFIX='/usr/local'  LOCALBASE='/usr/local' DEPBASE='/usr/local' 
X11BASE='/usr/X11R6'  CFLAGS='-O2 -pipe -Wall -Wpointer-arith -Wuninitialized 
-Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wbounded 
-Wshadow -Wdeclaration-after-statement'  TRUEPREFIX='/usr/local' DESTDIR=''  
HOME='/test-unit-2.5.4_writes_to_HOME' ELF_TOOLCHAIN=yes COMPILER_VERSION=gcc4  
PICFLAG="-fpic" ASPICFLAG=  BINGRP=bin BINOWN=root BINMODE=555 NONBINMODE=444 
DIRMODE=755  INSTALL_COPY=-c INSTALL_STRIP=-s  MANGRP=bin MANOWN=root 
MANMODE=444 BSD_INSTALL_PROGRAM="install -c -s -o root -g bin -m 555"  
BSD_INSTALL_SCRIPT="install -c -o root -g bin -m 555"  
BSD_INSTALL_DATA="install -c -o root -g bin -m 444"  BSD_INSTALL_MAN="install 
-c -o root -g bin -m 444"  BSD_INSTALL_PROGRAM_DIR="install -d -o root -g bin 
-m 755"  BSD_INSTALL_SCRIPT_DIR="install -d -o root -g bin -m 755"  
BSD_INSTALL_DATA_DIR="install -d -o root -g bin -m 755"  
BSD_INSTALL_MAN_DIR="install -d -o root -g bin -m 755" 
HOME=/home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4   
RUBYLIB=.:"$RUBYLIB" /usr/local/bin/rake19 --trace  test
rake aborted!
Unable to determine name from existing gemspec. Use :name => 'gemname' in 
#install_tasks to manually set it.
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/gem_helper.rb:20:in
 `initialize'
/home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4/Rakefile:16:in `new'
/home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4/Rakefile:16:in `<top 
(required)>'
/usr/local/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load'
/usr/local/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in 
`standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake/application.rb:65:in `block in run'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in 
`standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/bin/rake19:32:in `<main>'
*** Error 1 in . (/usr/ports/lang/ruby/ruby.port.mk:472 'do-test')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2698 
'/home/ports/obj/test-unit-2.5.4-ruby19/.test_done')
*** Error 1 in /home/users/build/mystuff/devel/ruby-test-unit 
(/usr/ports/infrastructure/mk/bsd.port.mk:2389 'test')


$ cd `make show=WRKSRC`
$ cp -p 
/home/ports/obj/test-unit-2.5.4-ruby19/fake-i386-ruby19/usr/local/lib/ruby/gems/1.9.1/specifications/test-unit-2.5.4.gemspec
 .
$ ls -l
total 120
-rw-r--r--  1 build  wsrc   2645 Jan  1  1970 COPYING
-rw-r--r--  1 build  wsrc  18009 Jan  1  1970 GPL
-rw-r--r--  1 build  wsrc  13606 Jan  1  1970 PSFL
-rw-r--r--  1 build  wsrc   2297 Jan  1  1970 README.textile
-rw-r--r--  1 build  wsrc   8757 Jan  1  1970 Rakefile
-rw-r--r--  1 build  wsrc     16 Jan  1  1970 TODO
drwxr-xr-x  3 build  wsrc    512 Apr 27 02:24 lib
drwxr-xr-x  2 build  wsrc    512 Apr 27 02:24 sample
drwxr-xr-x  6 build  wsrc   1024 Apr 27 02:24 test
-rw-r--r--  1 build  wsrc   1577 Apr 27 02:24 test-unit-2.5.4.gemspec


$ cd -
/home/users/build/mystuff/devel/ruby-test-unit
$ make show=WRKSRC
/home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4


$ make test
===>  Regression tests for ruby19-test-unit-2.5.4
cd /home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4 && /usr/bin/env -i 
PORTSDIR="/usr/ports" LIBTOOL="/usr/bin/libtool "  
PATH='/home/ports/obj/test-unit-2.5.4-ruby19/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/X11R6/bin'
 PREFIX='/usr/local'  LOCALBASE='/usr/local' DEPBASE='/usr/local' 
X11BASE='/usr/X11R6'  CFLAGS='-O2 -pipe -Wall -Wpointer-arith -Wuninitialized 
-Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wbounded 
-Wshadow -Wdeclaration-after-statement'  TRUEPREFIX='/usr/local' DESTDIR=''  
HOME='/test-unit-2.5.4_writes_to_HOME' ELF_TOOLCHAIN=yes COMPILER_VERSION=gcc4  
PICFLAG="-fpic" ASPICFLAG=  BINGRP=bin BINOWN=root BINMODE=555 NONBINMODE=444 
DIRMODE=755  INSTALL_COPY=-c INSTALL_STRIP=-s  MANGRP=bin MANOWN=root 
MANMODE=444 BSD_INSTALL_PROGRAM="install -c -s -o root -g bin -m 555"  
BSD_INSTALL_SCRIPT="install -c -o root -g bin -m 555"  
BSD_INSTALL_DATA="install -c -o root -g bin -m 444"  BSD_INSTALL_MAN="install 
-c -o root -g bin -m 444"  BSD_INSTALL_PROGRAM_DIR="install -d -o root -g bin 
-m 755"  BSD_INSTALL_SCRIPT_DIR="install -d -o root -g bin -m 755"  
BSD_INSTALL_DATA_DIR="install -d -o root -g bin -m 755"  
BSD_INSTALL_MAN_DIR="install -d -o root -g bin -m 755" 
HOME=/home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4   
RUBYLIB=.:"$RUBYLIB" /usr/local/bin/rake19 --trace  test
** Invoke test (first_time)
** Execute test
/usr/local/bin/ruby19 test/run-test.rb
Loaded suite test
Started
...............................................................................
...............................................................................
.............................O
===============================================================================
test for JRuby [test_error_inside_jruby(TestCodeSnippet::TestJRuby)]
/home/ports/obj/test-unit-2.5.4-ruby19/test-unit-2.5.4/test/testunit-test-util.rb:11:in
 `jruby_only_test'
===============================================================================
...............................................................................
...............................................................

Finished in 7.310179924 seconds.

330 tests, 1324 assertions, 0 failures, 0 errors, 0 pendings, 1 omissions, 0 
notifications
100% passed

45.14 tests/s, 181.12 assertions/s

Reply via email to