Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420403 - app-emulation/spice - add USE=client for headless installation
Summary: app-emulation/spice - add USE=client for headless installation
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-06-09 12:59 UTC by Amir Aupov
Modified: 2012-06-09 16:30 UTC (History)
0 users

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


Attachments
app-emulation/spice-0.10.1-r1 with customised RDEPEND (spice-0.10.1-r1.ebuild,1.43 KB, text/plain)
2012-06-09 13:01 UTC, Amir Aupov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amir Aupov 2012-06-09 12:59:53 UTC
I've modified app-emulation/spice ebuild to make it not dependent on X libs if only server functionality is desired.

Also I've included tunnel use-flag, but currently it depends on net-libs/slirp package that is not in the main tree (bgo overlay).

I've checked server-only layout: it works as it should/

Reproducible: Always
Comment 1 Amir Aupov 2012-06-09 13:01:15 UTC
Created attachment 314793 [details]
app-emulation/spice-0.10.1-r1 with customised RDEPEND
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-09 14:10:20 UTC
Comment on attachment 314793 [details]
app-emulation/spice-0.10.1-r1 with customised RDEPEND

--- spice-0.10.1.ebuild 2012-06-09 16:09:46.000000000 +0200
+++ -   2012-06-09 16:10:03.047215005 +0200
@@ -13,31 +13,30 @@
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="amd64 ~x86"
-IUSE="+client +gui sasl smartcard static static-libs"
+IUSE="+client +gui sasl smartcard static static-libs tunnel"
 
 RDEPEND=">=app-emulation/spice-protocol-0.10.1
        >=x11-libs/pixman-0.17.7
        media-libs/alsa-lib
        media-libs/celt:0.5.1
        dev-libs/openssl
-       >=x11-libs/libXrandr-1.2
-       x11-libs/libX11
-       x11-libs/libXext
-       x11-libs/libXinerama
-       x11-libs/libXfixes
-       x11-libs/libXrender
+       client? (
+               >=x11-libs/libXrandr-1.2
+               x11-libs/libX11
+               x11-libs/libXext
+               x11-libs/libXinerama
+               x11-libs/libXfixes
+               x11-libs/libXrender
+               gui? ( =dev-games/cegui-0.6* )
+       )
        virtual/jpeg
        sys-libs/zlib
-       client? ( gui? ( =dev-games/cegui-0.6* ) )
        sasl? ( dev-libs/cyrus-sasl )
-       smartcard? ( >=app-emulation/libcacard-0.1.2 )"
+       smartcard? ( >=app-emulation/libcacard-0.1.2 )
+       tunnel? ( net-libs/slirp )"
 DEPEND="virtual/pkgconfig
        ${RDEPEND}"

-# maintainer notes:
-# * opengl support is currently broken
-# * TODO: add slirp for tunnel-support
-
 src_prepare() {
        epatch \
                "${FILESDIR}/0.10.1-disable-werror.patch" \
@@ -50,12 +49,12 @@
        use client || gui="--disable-gui"
        econf \ 
                $(use_enable static-libs static) \
-               --disable-tunnel \
                ${gui} \
                $(use_enable client) \
                $(use_enable static static-linkage) \
                $(use_with sasl) \
-               $(use_enable smartcard)
+               $(use_enable smartcard) \
+               $(use_enable tunnel)
 }
 
 src_install() {
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2012-06-09 16:30:09 UTC
Please talk to upstream about building spice completely without X. Just removing the deps doesn't help and I do not have time to patch the build system.