Re: Missing rbconfig.rb file in jruby packaging?

2015-07-14 Thread Miguel Landaeta
On Tue, Jul 14, 2015 at 05:35:27AM +, Potter, Tim (Cloud Services) wrote:
 Hi Miguel.  I’m slowing working on getting logstash up and running
 using the Debian archive version of Jruby.  I think there are some
 pieces missing though.

Hi Tim,

 When a script runs require rbconfig” it expects to pull in some
 constants in the RbConfig namespace, e.g RbConfig::CONFIG[“host_os”].
 This doesn’t work and I think the reason is that rbconfig.rb isn’t
 being packaged. It’s in core/src/main/ruby/jruby/kernel/rbconfig.rb

I can't reproduce this error:

miguel@nina:~$ jirb
irb(main):001:0 require 'rbconfig'
= false
irb(main):002:0 puts RbConfig::CONFIG[host_os]
linux
= nil
irb(main):003:0 

 Unfortunately I’m unable to build Jruby from source by myself - I
 get this error when using pbuilder with a sid chroot:
 
 cd .  /usr/lib/jvm/java-8-openjdk-amd64/bin/java -classpath 
 /usr/share/maven/boot/plexus-classworlds-2.x.jar  
 -Dclassworlds.conf=/tmp/buildd/jruby-1.7.21/debian/m2.conf 
 org.codehaus.plexus.classworlds.launcher.Launcher 
 -s/etc/maven2/settings-debian.xml 
 -Dmaven.repo.local=/tmp/buildd/jruby-1.7.21/debian/maven-repo  -Pdist package
 -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME 
 environment variable and mvn script match.debian/rules:35: recipe for target 
 'override_dh_auto_build' failed
 make[1]: *** [override_dh_auto_build] Error 1
 make[1]: Leaving directory '/tmp/buildd/jruby-1.7.21'
 debian/rules:14: recipe for target 'build' failed
 make: *** [build] Error 2
 dpkg-buildpackage: error: debian/rules build gave error exit status 2
 
 I’m guessing the fix is some extra cp commands in the 
 override_dh_auto_install rule.  Does that sound reasonable?

Sorry, this is my fault, I noticed this failure 2 days ago.

Since jruby needs Maven 3 to build but we don't have proper support
for it in our helpers yet, I included Maven 3 specific settings that stop
working with recent maven 3.3.3-1 upload.

Please try again to build what's in jruby's git repo HEAD. I'll upload a fix
soon.

Cheers,

-- 
Miguel Landaeta, nomadium at debian.org
secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key.
Faith means not wanting to know what is true. -- Nietzsche


signature.asc
Description: Digital signature


Missing rbconfig.rb file in jruby packaging?

2015-07-13 Thread Potter, Tim (Cloud Services)
Hi Miguel.  I’m slowing working on getting logstash up and running using the 
Debian archive version of Jruby.  I think there are some pieces missing though.

When a script runs require rbconfig” it expects to pull in some constants in 
the RbConfig namespace, e.g RbConfig::CONFIG[“host_os”].  This doesn’t work and 
I think the reason is that rbconfig.rb isn’t being packaged.  It’s in 
core/src/main/ruby/jruby/kernel/rbconfig.rb

Unfortunately I’m unable to build Jruby from source by myself - I get this 
error when using pbuilder with a sid chroot:

cd .  /usr/lib/jvm/java-8-openjdk-amd64/bin/java -classpath 
/usr/share/maven/boot/plexus-classworlds-2.x.jar  
-Dclassworlds.conf=/tmp/buildd/jruby-1.7.21/debian/m2.conf 
org.codehaus.plexus.classworlds.launcher.Launcher 
-s/etc/maven2/settings-debian.xml 
-Dmaven.repo.local=/tmp/buildd/jruby-1.7.21/debian/maven-repo  -Pdist package
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME 
environment variable and mvn script match.debian/rules:35: recipe for target 
'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/tmp/buildd/jruby-1.7.21'
debian/rules:14: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

I’m guessing the fix is some extra cp commands in the override_dh_auto_install 
rule.  Does that sound reasonable?


Tim.

smime.p7s
Description: S/MIME cryptographic signature