jruby-launcher gem requires rspec gem but dependency is not in 
jruby-launcher-1.0.1-java.gemspec
------------------------------------------------------------------------------------------------

                 Key: JRUBY-5039
                 URL: http://jira.codehaus.org/browse/JRUBY-5039
             Project: JRuby
          Issue Type: Bug
         Environment: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
            Reporter: Stephen Bannasch
            Assignee: Thomas E Enebo


The jruby-launcher gem requires rspec gem during installation but the 
dependency is not in jruby-launcher-1.0.1-java.gemspec. This causes 
installation to fail unless rspec is installed first.

An example on a Red Hat Enterprise Linux Server release 5.4 (Tikanga) server:

{code}
$ rvm install jruby

info: Downloading jruby-bin-1.5.2, this may take a while depending on your 
connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11.0M  100 11.0M    0     0  1146k      0  0:00:09  0:00:09 --:--:-- 1160k

info: Extracting jruby-bin-1.5.2 ...

info: Building Nailgun

info: Installing JRuby to /home/sbannasch/.rvm/rubies/jruby-1.5.2

info: Importing initial gems...

info: Installing rake

info: Installing jruby-openssl

$ rvm jruby

$ which jruby
~/.rvm/rubies/jruby-1.5.2/bin/jruby

$ file `which jruby`
/home/sbannasch/.rvm/rubies/jruby-1.5.2/bin/jruby: Bourne-Again shell script 
text executable

$ gem install jruby-launcher
Building native extensions.  This could take a while...
ERROR:  Error installing jruby-launcher:
        ERROR: Failed to build gem native extension.

/home/sbannasch/.rvm/rubies/jruby-1.5.2/bin/jruby extconf.rb

make
make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
make[1]: Entering directory 
`/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java'
make -f inc/Makefile-rules.mk jruby
make[2]: Entering directory 
`/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java'
mkdir -p build/unix/Linux
rm -f build/unix/Linux/argparser.o.d
g++ -O2 -Wall -I/usr/java/jdk1.5.0_06/include   -c argparser.cpp -MMD -MP -MF 
build/unix/Linux/argparser.o.d -o build/unix/Linux/argparser.o
mkdir -p build/unix/Linux
rm -f build/unix/Linux/utilsfuncs.o.d
g++ -O2 -Wall -I/usr/java/jdk1.5.0_06/include   -c utilsfuncs.cpp -MMD -MP -MF 
build/unix/Linux/utilsfuncs.o.d -o build/unix/Linux/utilsfuncs.o
mkdir -p build/unix/Linux
rm -f build/unix/Linux/ng.o.d
gcc -O2 -Wall -I/usr/java/jdk1.5.0_06/include   -c ng.c -MMD -MP -MF 
build/unix/Linux/ng.o.d -o build/unix/Linux/ng.o
mkdir -p build/unix/Linux
rm -f build/unix/Linux/strlcpy.o.d
gcc -O2 -Wall -I/usr/java/jdk1.5.0_06/include   -c strlcpy.c -MMD -MP -MF 
build/unix/Linux/strlcpy.o.d -o build/unix/Linux/strlcpy.o
mkdir -p build/unix/Linux
rm -f build/unix/Linux/jrubyexe.o.d
g++ -O2 -Wall -I/usr/java/jdk1.5.0_06/include   -c jrubyexe.cpp -MMD -MP -MF 
build/unix/Linux/jrubyexe.o.d -o build/unix/Linux/jrubyexe.o
mkdir -p build/unix/Linux
rm -f build/unix/Linux/unixlauncher.o.d
g++ -O2 -Wall -I/usr/java/jdk1.5.0_06/include   -c unixlauncher.cpp -MMD -MP 
-MF build/unix/Linux/unixlauncher.o.d -o build/unix/Linux/unixlauncher.o
g++ -O2 -Wall -I/usr/java/jdk1.5.0_06/include    -o 
build/unix/Linux/jruby-launcher build/unix/Linux/argparser.o 
build/unix/Linux/utilsfuncs.o build/unix/Linux/ng.o build/unix/Linux/strlcpy.o 
build/unix/Linux/jrubyexe.o build/unix/Linux/unixlauncher.o -lstdc++
cp build/unix/Linux/jruby-launcher jruby
make[2]: Leaving directory 
`/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java'
make[1]: Leaving directory 
`/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java'
/home/sbannasch/.rvm/rubies/jruby-1.5.2/bin/jruby -S rake
(in /home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java)
rake aborted!
no such file to load -- spec/rake/spectask
/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java/Rakefile:1
(See full trace by running task with --trace)
make: *** [test] Error 1


Gem files will remain installed in 
/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java for 
inspection.
Results logged to 
/home/sbannasch/.rvm/gems/jruby-1.5.2/gems/jruby-launcher-1.0.1-java/gem_make.out


$ gem list

*** LOCAL GEMS ***

bouncy-castle-java (1.5.0145.2)
jruby-openssl (0.7.1)
rake (0.8.7)
rdoc (2.5.11)

$ gem install rspec
**************************************************

  Thank you for installing rspec-1.3.0

  Please be sure to read History.rdoc and Upgrade.rdoc
  for useful information about this release.

**************************************************
Successfully installed rspec-1.3.0
1 gem installed
Installing ri documentation for rspec-1.3.0...
Installing RDoc documentation for rspec-1.3.0...

$ gem install jruby-launcher
Building native extensions.  This could take a while...
Successfully installed jruby-launcher-1.0.1-java
1 gem installed
Installing ri documentation for jruby-launcher-1.0.1-java...
Installing RDoc documentation for jruby-launcher-1.0.1-java...

$ file `which jruby`
/home/sbannasch/.rvm/rubies/jruby-1.5.2/bin/jruby: ELF 32-bit LSB executable, 
Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses 
shared libs), for GNU/Linux 2.6.9, not stripped
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to