Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584522 - Problem with gem tzinfo-data while updating metasploit
Summary: Problem with gem tzinfo-data while updating metasploit
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: 2016-05-30 10:59 UTC by D. MARTIN
Modified: 2016-06-12 20:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description D. MARTIN 2016-05-30 10:59:53 UTC
>>> Emerging (1 of 1) net-analyzer/metasploit-9999::gentoo
>>> Unpacking source...
 * Fetching https://github.com/rapid7/metasploit-framework.git ...
git fetch https://github.com/rapid7/metasploit-framework.git +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/net-analyzer/metasploit/9999/__main__ refs/git-r3/HEAD
 * Fetching https://github.com/rapid7/ReflectiveDLLInjection.git ...
git fetch https://github.com/rapid7/ReflectiveDLLInjection.git --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* +refs/notes/*:refs/notes/* +HEAD:refs/git-r3/HEAD
git update-ref --no-deref refs/git-r3/net-analyzer/metasploit/9999/external/source/ReflectiveDLLInjection/__main__ 88e8e5f109793f09b35cb17a621f33647d644103
 * Checking out https://github.com/rapid7/metasploit-framework.git to /var/tmp/portage/net-analyzer/metasploit-9999/work/all ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/rapid7/metasploit-framework.git
   at the commit:            00b18c8ac5895d7d7b42efe4f556173b62abb445
 * Checking out https://github.com/rapid7/ReflectiveDLLInjection.git to /var/tmp/portage/net-analyzer/metasploit-9999/work/all/external/source/ReflectiveDLLInjection ...
git checkout --quiet 88e8e5f109793f09b35cb17a621f33647d644103
GIT update -->
   repository:               https://github.com/rapid7/ReflectiveDLLInjection.git
   at the commit:            88e8e5f109793f09b35cb17a621f33647d644103
>>> Source unpacked in /var/tmp/portage/net-analyzer/metasploit-9999/work
>>> Preparing source in /var/tmp/portage/net-analyzer/metasploit-9999/work ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby21 ...
 * Running prepare phase for ruby21 ...
Resolving dependencies...
Bundler could not find compatible versions for gem "tzinfo-data":
  In Gemfile:
    metasploit-framework was resolved to 4.12.5, which depends on
      tzinfo-data

Could not find gem 'tzinfo-data', which is required by gem 'metasploit-framework', in any of the sources.
 * ERROR: net-analyzer/metasploit-9999::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_prepare
 *   environment, line 4925:  Called ruby-ng_src_prepare
 *   environment, line 4728:  Called _ruby_each_implementation 'each_ruby_prepare'
 *   environment, line  814:  Called _ruby_invoke_environment 'ruby21' 'each_ruby_prepare'
 *   environment, line  913:  Called each_ruby_prepare
 *   environment, line 1155:  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-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/metasploit-9999::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-9999
 * The complete build log is located at '/var/tmp/portage/net-analyzer/metasploit-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/metasploit-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/metasploit-9999/work/ruby21'
 * S: '/var/tmp/portage/net-analyzer/metasploit-9999/work/ruby21/metasploit-9999'

>>> Failed to emerge net-analyzer/metasploit-9999, Log file:

>>>  '/var/tmp/portage/net-analyzer/metasploit-9999/temp/build.log'

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

 * ERROR: net-analyzer/metasploit-9999::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_prepare
 *   environment, line 4925:  Called ruby-ng_src_prepare
 *   environment, line 4728:  Called _ruby_each_implementation 'each_ruby_prepare'
 *   environment, line  814:  Called _ruby_invoke_environment 'ruby21' 'each_ruby_prepare'
 *   environment, line  913:  Called each_ruby_prepare
 *   environment, line 1155:  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-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/metasploit-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/metasploit-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/metasploit-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/metasploit-9999/work/ruby21'
 * S: '/var/tmp/portage/net-analyzer/metasploit-9999/work/ruby21/metasploit-9999'

=====================
=====================
=====================

emerge --info '=net-analyzer/metasploit-9999::gentoo'

Portage 2.3.0_rc1 (python 2.7.11-final-0, default/linux/amd64/13.0, gcc-5.3.0, glibc-2.23-r2, 4.6.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.0-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8800_@_2.66GHz-with-gentoo-2.2
KiB Mem:     3790412 total,   2234772 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Mon, 30 May 2016 08:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.3.5-r8::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2-r1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=====================
=====================
=====================

emerge -pqv '=net-analyzer/metasploit-9999::gentoo'

 * IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
[ebuild  NS   ] net-analyzer/metasploit-9999 [4.11.7] USE="java pcap (-development) -oracle {-test}" RUBY_TARGETS="ruby21"
Comment 1 Hans de Graaff gentoo-dev Security 2016-05-30 17:22:15 UTC
This should be fixed in metasploit by not depending on tzinfo-data.

In Gentoo we have chosen to reuse the existing timezone files installed by sys-libs/timezone-data rather then depending on an extra set of timezone files that may or may not be in sync with timezone-data, possibly leading to weird timezone bugs.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2016-06-12 20:54:50 UTC
Seems easy enough to fix to not require.  Plus I asked upstream to stop adding fake deps.

https://github.com/rapid7/metasploit-framework/issues/6967