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

Bug 409867

Summary: net-misc/vde-2.3.2 version bump including Python support
Product: Gentoo Linux Reporter: Torsten Kurbad <torsten>
Component: New packagesAssignee: Sven Vermeulen (RETIRED) <swift>
Severity: normal CC: jmbsvicetto, mlspamcb, proxy-maint
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 409869    
Attachments: vde-2.3.2.ebuild

Description Torsten Kurbad 2012-03-27 13:06:32 UTC
vde2 is a virtual distributed ethernet emulator for emulators like qemu, bochs, and uml.

New version 2.3.2 comes with Python bindings, called "VdePlug", that can be used by e.g. virtualbricks (successor of app-emulation/qemulator).

I introduced the "python" use flag to the ebuild to enable/disable building the python bindings.

The downside of the new version is that it only seems to compile with MAKEOPTS="-j1", reflected by "emake -j1" in src_compile().

Reproducible: Always
Comment 1 Torsten Kurbad 2012-03-27 13:07:13 UTC
Created attachment 306847 [details]
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-27 17:05:31 UTC
Comment on attachment 306847 [details]

--- vde-2.3.1.ebuild    2011-10-24 13:31:07.000000000 +0200
+++ -   2012-03-27 19:05:20.898356584 +0200
@@ -4,7 +4,10 @@
-inherit eutils
+inherit eutils python
@@ -16,7 +19,7 @@
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="pcap ssl static-libs"
+IUSE="pcap python ssl static-libs"
 RDEPEND="pcap? ( net-libs/libpcap )
        ssl? ( dev-libs/openssl )"
@@ -25,10 +28,15 @@
 src_configure() {
        econf \
                $(use_enable pcap) \
+               $(use_enable python) \
                $(use_enable ssl cryptcab) \
                $(use_enable static-libs static)
+src_compile() {
+       emake -j1 || die "emake failed"
 src_install() {
        use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
@@ -40,6 +48,7 @@
 pkg_postinst() {
        # default group already used in kqemu
        enewgroup qemu
        einfo "To start vde automatically add it to the default runlevel:"
        einfo "# rc-update add vde default"
        einfo "You need to setup tap0 in /etc/conf.d/net"
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2014-05-31 11:27:54 UTC
I added in the user eclass as enewgroup is used.

Other than that it seems to run fine here, although I only use basic functionality in vde_switch currently so I can't consider this a thorough investigation ;)

Committed to the tree. Thanks!