Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466344 - app-emulation/vagrant: Make virtualbox an optional dependency through a use flag
Summary: app-emulation/vagrant: Make virtualbox an optional dependency through a use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 3 votes (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 10:48 UTC by Ewoud Kohl van Wijngaarden
Modified: 2016-01-20 07:37 UTC (History)
8 users (show)

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


Attachments
Remove virtualbox provider from vagrant (vagrant-no-virtualbox.patch,1.13 KB, patch)
2013-05-07 13:12 UTC, Ewoud Kohl van Wijngaarden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.