Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880209 - app-emulation/vagrant-2.2.19 needs < dev-ruby/net-ssh-6.2.0
Summary: app-emulation/vagrant-2.2.19 needs < dev-ruby/net-ssh-6.2.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guillaume Seren
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-07 16:09 UTC by Douglas J Hunley
Modified: 2023-03-18 01:22 UTC (History)
4 users (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 Douglas J Hunley 2022-11-07 16:09:32 UTC
If you update net-ssh to 6.2.0 or higher, vagrant-2.2.19 fails with:
```
Traceback (most recent call last):
	6: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:105:in `<main>'
	5: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:94:in `block in <main>'
	4: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:94:in `each'
	3: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:95:in `block (2 levels) in <main>'
	2: from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem'
	1: from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec'
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'net-ssh' (>= 6.1.0, < 6.2) - did find: [net-ssh-7.0.1] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/doug/.local/share/gem/ruby/2.7.0:/usr/lib64/ruby/gems/2.7.0:/usr/local/lib64/ruby/gems/2.7.0' , execute `gem env` for more information
```

Reproducible: Always

Steps to Reproduce:
1. upgrade net-ssh to 6.2.0+
2. attempt to use vagrant

Actual Results:  
```
Traceback (most recent call last):
	6: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:105:in `<main>'
	5: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:94:in `block in <main>'
	4: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:94:in `each'
	3: from /usr/lib64/ruby/gems/2.7.0/gems/vagrant-2.2.19/bin/vagrant:95:in `block (2 levels) in <main>'
	2: from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem'
	1: from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec'
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'net-ssh' (>= 6.1.0, < 6.2) - did find: [net-ssh-7.0.1] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/doug/.local/share/gem/ruby/2.7.0:/usr/lib64/ruby/gems/2.7.0:/usr/local/lib64/ruby/gems/2.7.0' , execute `gem env` for more information
```

Expected Results:  
vagrant up succeeds

app-emulation/vagrant-2.2.19 ebuild needs to manage the dependencies and block net-ssh-6.2.0 or greater

Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/systemd, gcc-12, glibc-2.36-r5, 6.0.7-gentoo x86_64)
=================================================================
System uname: Linux-6.0.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-8809G_CPU_@_3.10GHz-with-glibc2.36
KiB Mem:    65785392 total,  18936736 free
KiB Swap:   16444412 total,  16444412 free
Timestamp of repository gentoo: Mon, 07 Nov 2022 04:46:52 +0000
Head commit of repository gentoo: 4a80e3377d1616704059271003e2e0b5f70dfd2e

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.8_p2::gentoo, 3.11.0_p1::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252::gentoo
sys-devel/autoconf:        2.13-r6::gentoo, 2.71-r4::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.4::gentoo
sys-devel/gcc:             12.2.1_p20221008::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.4::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: false

Installed sets: @gentoo, @git, @hardware, @kernel, @nvim, @work, @zsh
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mtune=skylake -O3 -pipe -w -falign-functions=32"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -mtune=skylake -O3 -pipe -w -falign-functions=32"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O3 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="--jobs=9 --load-average=8"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/zsh"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre policykit readline seccomp split-usr ssl systemd test-rust udev udisks unicode xattr zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Tino Mueller 2022-11-08 10:59:18 UTC
Try this: https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1390#issuecomment-1179061820

(Issue is posted in vagrant-libvirt, but is caused by vagrant.)

This is fixed in Vagrant 2.3.0.
Comment 2 Douglas J Hunley 2022-11-08 13:57:10 UTC
(In reply to Tino Mueller from comment #1)
> Try this:
> https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1390#issuecomment-
> 1179061820
> 
> (Issue is posted in vagrant-libvirt, but is caused by vagrant.)
> 
> This is fixed in Vagrant 2.3.0.

That didn't seem to work for me, though it did apply. I'll probably just wait for https://bugs.gentoo.org/867943 for now :)
Comment 3 Michael Egger 2022-11-09 12:25:50 UTC
Same issue here, masking >=dev-ruby/net-ssh-6.2 works as a quick fix

$ cat /etc/portage/package.mask/common
...
>=dev-ruby/net-ssh-6.2
Comment 4 Larry the Git Cow gentoo-dev 2023-03-18 01:22:19 UTC
The bug has been closed via the following commit(s):

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

commit eb3cf3a39a5030a0a5f31d7427749c40099c9eca
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-18 00:58:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-18 01:19:37 +0000

    app-emulation/vagrant: fix net-ssh dep
    
    Closes: https://bugs.gentoo.org/880209
    Signed-off-by: Sam James <sam@gentoo.org>

 .../vagrant/{vagrant-2.2.19-r1.ebuild => vagrant-2.2.19-r2.ebuild}   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)