Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659688 - net-analyzer/metasploit-4.14.16 does not build with dev-ruby/rex-arch-0.1.13
Summary: net-analyzer/metasploit-4.14.16 does not build with dev-ruby/rex-arch-0.1.13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 17:33 UTC by Keith Harrison
Modified: 2018-07-01 06:12 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,6.78 KB, application/x-info)
2018-06-30 17:33 UTC, Keith Harrison
Details
build log (build.log,2.49 KB, text/x-log)
2018-06-30 17:33 UTC, Keith Harrison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Harrison 2018-06-30 17:33:21 UTC
Created attachment 537872 [details]
emerge --info

Metasploit is looking for dev-ruby/rex-arch-0.1.4, unfortunately no other versions of rex-arch are available in portage.


 * Package:    net-analyzer/metasploit-4.14.16
 * Repository: gentoo
 * Maintainer: zerochaos@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc java kernel_linux pcap ruby_targets_ruby23 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Running unpack phase for all ...
>>> Unpacking metasploit-4.14.16.tar.gz to /var/tmp/portage/net-analyzer/metasploit-4.14.16/work/all
>>> Source unpacked in /var/tmp/portage/net-analyzer/metasploit-4.14.16/work
>>> Preparing source in /var/tmp/portage/net-analyzer/metasploit-4.14.16/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby23 ...
 * Running prepare phase for ruby23 ...
Resolving dependencies...
Bundler could not find compatible versions for gem "rex-arch":
  In Gemfile:
    metasploit-framework was resolved to 4.14.16, which depends on
      rex-arch (= 0.1.4)

Could not find gem 'rex-arch (= 0.1.4)', which is required by gem 'metasploit-framework', in any of the sources.
 * ERROR: net-analyzer/metasploit-4.14.16::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_prepare
 *   environment, line 4637:  Called ruby-ng_src_prepare
 *   environment, line 4458:  Called _ruby_each_implementation 'each_ruby_prepare'
 *   environment, line  790:  Called _ruby_invoke_environment 'ruby23' 'each_ruby_prepare'
 *   environment, line  915:  Called each_ruby_prepare
 *   environment, line 1104:  Called die
 * The specific snippet of code:
 *       MSF_ROOT="." BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die;
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/metasploit-4.14.16::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/metasploit-4.14.16::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =metasploit-4.14.16
 * The complete build log is located at '/var/tmp/portage/net-analyzer/metasploit-4.14.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/metasploit-4.14.16/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/metasploit-4.14.16/work/ruby23/metasploit-framework-4.14.16'
 * S: '/var/tmp/portage/net-analyzer/metasploit-4.14.16/work/ruby23/metasploit-framework-4.14.16'

 * Messages for package net-analyzer/metasploit-4.14.16:

 * ERROR: net-analyzer/metasploit-4.14.16::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_prepare
 *   environment, line 4637:  Called ruby-ng_src_prepare
 *   environment, line 4458:  Called _ruby_each_implementation 'each_ruby_prepare'
 *   environment, line  790:  Called _ruby_invoke_environment 'ruby23' 'each_ruby_prepare'
 *   environment, line  915:  Called each_ruby_prepare
 *   environment, line 1104:  Called die
 * The specific snippet of code:
 *       MSF_ROOT="." BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die;
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/metasploit-4.14.16::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/metasploit-4.14.16::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/metasploit-4.14.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/metasploit-4.14.16/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/metasploit-4.14.16/work/ruby23/metasploit-framework-4.14.16'
 * S: '/var/tmp/portage/net-analyzer/metasploit-4.14.16/work/ruby23/metasploit-framework-4.14.16'
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (net-analyzer/metasploit-4.14.16:4.14/4.14::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/net-analyzer/metasploit-4.14.16/temp/build.log'
Comment 1 Keith Harrison 2018-06-30 17:33:46 UTC
Created attachment 537874 [details]
build log
Comment 2 Hans de Graaff gentoo-dev Security 2018-07-01 06:12:35 UTC
I broke that with a change to the rex-arch dependency in the ebuild. I checked upstream's gemspec at the time, but not the gemspec in the specific version that we package.

Looking at upstream commit https://github.com/rapid7/metasploit-framework/commit/e31e3fc54517d916e5d5d4e116a3b66aa5c6c179 we should be able to update the gemspec as well without any additional changes.
Comment 3 Larry the Git Cow gentoo-dev 2018-07-01 06:12:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e145dee399e971ba2a0ab16431e014c40705c71e

commit e145dee399e971ba2a0ab16431e014c40705c71e
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2018-07-01 06:12:44 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2018-07-01 06:12:44 +0000

    net-analyzer/metasploit: fix rex-arch dependency
    
    Remove the specific version requirement also in the gemspec file.
    
    Closes: https://bugs.gentoo.org/659688
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../metasploit/metasploit-4.14.16-r1.ebuild        | 335 +++++++++++++++++++++
 1 file changed, 335 insertions(+)