Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409867 - net-misc/vde-2.3.2 version bump including Python support
Summary: net-misc/vde-2.3.2 version bump including Python support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 409869
  Show dependency tree
 
Reported: 2012-03-27 13:06 UTC by Torsten Kurbad
Modified: 2014-05-31 11:27 UTC (History)
3 users (show)

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


Attachments
vde-2.3.2.ebuild (vde-2.3.2.ebuild,1.44 KB, text/plain)
2012-03-27 13:07 UTC, Torsten Kurbad
Details

Note You need to log in before you can comment on or make changes to this bug.
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]
vde-2.3.2.ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-27 17:05:31 UTC
Comment on attachment 306847 [details]
vde-2.3.2.ebuild

--- 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 @@
 
 EAPI=4
 
-inherit eutils
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit eutils python
 
 MY_P="${PN}2-${PV}"
 S="${WORKDIR}/${MY_P}"
@@ -16,7 +19,7 @@
 LICENSE="GPL-2"
 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() {
        default
        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!