Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 466344

Summary: app-emulation/vagrant: Make virtualbox an optional dependency through a use flag
Product: Gentoo Linux Reporter: Ewoud Kohl van Wijngaarden <ewoud+gentoo>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: enhancement CC: ewoud+gentoo, gentoo, jesse, prometheanfire, root, tobias.pal, tom.prince, waynedpj
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Remove virtualbox provider from vagrant

Description Ewoud Kohl van Wijngaarden 2013-04-18 10:48:54 UTC
Since vagrant 1.1 the virtualbox provider is a plugin. It would be nice if a use flag was added to install this provider. This would make it easier to choose to use vagrant-libvirt and gentoo is all about choice :)

Reproducible: Always
Comment 1 Ewoud Kohl van Wijngaarden 2013-05-07 13:12:03 UTC
Created attachment 347596 [details, diff]
Remove virtualbox provider from vagrant

A rather brute way to remove virtualbox and haven't tested extensively, but initial testing seems promising.
Comment 2 Tim Harder gentoo-dev 2013-05-09 05:52:18 UTC
I'm not going to consider this until vagrant starts bundling other providers or I add ebuilds for others to the tree.
Comment 3 Ewoud Kohl van Wijngaarden 2014-02-19 12:31:38 UTC
How about just making it a use flag for the dependencies?
Comment 4 Tim Harder gentoo-dev 2014-02-19 18:55:19 UTC
(In reply to Ewoud Kohl van Wijngaarden from comment #3)
> How about just making it a use flag for the dependencies?

I don't want to do that because it's required by the standard vagrant setup and adding use flags to only control rdeps that don't affect linking or similar is generally frowned on.

Use package.provided if you really have an issue with virtualbox for now.
Comment 5 Ewoud Kohl van Wijngaarden 2014-02-20 00:43:26 UTC
Didn't think of that, but it works for me.
Comment 6 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-05-21 16:34:48 UTC
The standard is to not install optional rdeps I thought...

It would be best to add an ewarn or einfo to the ebuild to tell the user to install a plugin and staticly disable...  some of us use kvm and hardened which virtualbox sucks at.
Comment 7 Ewoud Kohl van Wijngaarden 2014-05-21 18:10:00 UTC
Now that vagrant has support for HyperV and docker[1], I think it's time to revisit this. Docker is already in the tree and HyperV is windows only.

[1]: https://github.com/mitchellh/vagrant/tree/master/plugins/providers
Comment 8 Tomáš Mózes 2016-01-20 07:37:20 UTC
Version 1.8.1 in tree with Virtualbox use flag. I only use this combination so far, but anyone wanting to use other providers, feel free to add those.

For inspiration on those ebuilds, you can check https://bugs.gentoo.org/show_bug.cgi?id=563548, Reto Gantenbein has an ebuild for vagrant-libvirt and dev-ruby/vagrant-lxc.

Feel free to contact me if you wish to maintain those packages, we can put up USE flags for vagrant itself.