mudler / pentoo

Automatically exported from code.google.com/p/pentoo
0 stars 0 forks source link

Upgrade metasploit's deps for ruby 2.1.5 support #325

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here are the required steps to have metasploit running on ruby 2.1.5 which will 
soonish be the only supported version according to 
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Deve
lopment-Environment#moving-to-ruby-21x

Unmask ruby-2.1.5 and switch ruby interpreter.

Add ruby21 to USE_RUBY on portage packages :
       dev-ruby/actionpack/actionpack-3.2.21.ebuild
       dev-ruby/activerecord/activerecord-3.2.21.ebuild
       dev-ruby/network_interface/network_interface-0.0.1-r1.ebuild
       dev-ruby/packetfu/packetfu-1.1.10.ebuild
       dev-ruby/railties/railties-3.2.21.ebuild
       dev-ruby/rkelly-remix/rkelly-remix-0.0.6.ebuild

Add ruby21 to USE_RUBY on pentoo overlay packages (diff attached):
       dev-ruby/arel-helpers/arel-helpers-2.0.1.ebuild
       dev-ruby/jsobfu/jsobfu-0.2.1.ebuild
       dev-ruby/metasploit-concern/metasploit-concern-0.3.0-r2.ebuild
       dev-ruby/metasploit-credential/metasploit-credential-0.13.6.ebuild
       dev-ruby/metasploit-model/metasploit-model-0.28.0-r4.ebuild
       dev-ruby/metasploit_data_models/metasploit_data_models-0.21.1-r3.ebuild
       dev-ruby/meterpreter_bins/meterpreter_bins-0.0.11-r1.ebuild
       dev-ruby/recog/recog-1.0.0.ebuild
       dev-ruby/rubyntlm/rubyntlm-0.4.0.ebuild
       net-analyzer/metasploit/metasploit-9999.ebuild

Then you have :
time ( echo "exit" | msfconsole)
msf > 

real    0m4.344s
user    0m2.358s
sys 0m1.998s

This is freaking fast compared to msf with ruby 1.9.3 on ssd which takes ~30 
seconds to launch...

Original issue reported on code.google.com by grimm...@pentoo.ch on 14 Dec 2014 at 10:24

Attachments:

GoogleCodeExporter commented 9 years ago
Wrong owner

Original comment by grimm...@pentoo.ch on 14 Dec 2014 at 10:24

GoogleCodeExporter commented 9 years ago
ZC: time to unmask ruby2 and above:

profiles/pentoo/base/package.mask
#we are not ready for ruby2, at all
>=dev-lang/ruby-2.0.0

Original comment by blshkv on 15 Dec 2014 at 2:05

GoogleCodeExporter commented 9 years ago
NO. ruby 2.0 is broken.

Original comment by sidhayn on 15 Dec 2014 at 2:06

GoogleCodeExporter commented 9 years ago
this is working on some systems, but not others, error is really weird.

Help?

Original comment by sidhayn on 23 Dec 2014 at 3:43

Attachments:

GoogleCodeExporter commented 9 years ago
I believe this bug is fixed. Feel free to reopen if it is not working for you.

Original comment by blshkv on 23 Jan 2015 at 8:39