Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653024 - app-eselect/eselect-metasploit broken on non-lib-symlink profiles
Summary: app-eselect/eselect-metasploit broken on non-lib-symlink profiles
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
Depends on:
Blocks: no-symlink-lib
  Show dependency tree
Reported: 2018-04-12 14:43 UTC by Hanno Böck
Modified: 2018-12-07 17:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2018-04-12 14:43:21 UTC
When I try to start metasploit:

# msfconsole 
Something went wrong, please open a bug for metasploit on

[!] There was an error parsing `Gemfile`: 
[!] There was an error while loading `metasploit-framework.gemspec`: No such file or directory @ realpath_rec - /root/.msf4/lib. Bundler cannot continue.

 #  from /root/.msf4/metasploit-framework.gemspec:10
 #  -------------------------------------------
 #    # require realpaths.
 >    lib = File.realpath(File.expand_path('../lib', __FILE__))
 #  end
 #  -------------------------------------------
. Bundler cannot continue.

 #  from /root/.msf4/Gemfile:4
 #  -------------------------------------------
 #  #   spec.add_runtime_dependency '<name>', [<version requirements>]
 >  gemspec name: 'metasploit-framework'
 #  -------------------------------------------

It seems metasploit is looking for its files in /usr/lib while they are in /usr/lib64. This worked on old profiles, but in 17.1 profiles /usr/lib is no longer a symlink to /usr/lib64.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2018-12-07 16:44:01 UTC
msfloader calls stuff from /usr/lib even though net-analyzer/metasploit installs into /usr/$(get_libdir)

The question is, should msfloader be fixed to check the libdir, or should metasploit be fixed to just install in lib?  I'm assuming msfloader, anyone have an opinion?
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2018-12-07 17:18:58 UTC
per discussion in #gentoo I've moved metasploit to /usr/lib