commit:     c772ac4e3d9c439779e97994d752a4b7afb645c4
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 17 20:13:30 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed Aug 17 20:13:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c772ac4e

net-misc/spice-gtk: explicitly link libX11 the right way for ld.gold

Bug: http://bugs.gentoo.org/585118

Package-Manager: portage-2.2.28

 .../spice-gtk/files/spice-gtk-0.31-x11-libs.patch  | 34 ++++++++++++++++++++++
 .../spice-gtk/files/spice-gtk-0.32-x11-libs.patch  | 34 ++++++++++++++++++++++
 net-misc/spice-gtk/spice-gtk-0.31.ebuild           |  2 ++
 net-misc/spice-gtk/spice-gtk-0.32-r1.ebuild        |  1 +
 net-misc/spice-gtk/spice-gtk-0.32-r2.ebuild        |  1 +
 5 files changed, 72 insertions(+)

diff --git a/net-misc/spice-gtk/files/spice-gtk-0.31-x11-libs.patch 
b/net-misc/spice-gtk/files/spice-gtk-0.31-x11-libs.patch
new file mode 100644
index 0000000..0d7e715
--- /dev/null
+++ b/net-misc/spice-gtk/files/spice-gtk-0.31-x11-libs.patch
@@ -0,0 +1,34 @@
+--- a/configure.ac     2016-08-17 14:16:14.671302073 -0400
++++ b/configure.ac     2016-08-17 14:14:57.351587309 -0400
+@@ -151,8 +151,12 @@
+ SPICE_GTK_REQUIRES="${SPICE_GTK_REQUIRES} gtk+-$GTK_API_VERSION >= 
$GTK_REQUIRED"
+ 
+ PKG_CHECK_EXISTS([gtk+-x11-$with_gtk], [have_x11=yes], [have_x11=no])
+-AS_IF([test "x$have_x11" = "xyes"], [AC_DEFINE([HAVE_X11], 1, [Have x11?])])
++AS_IF([test "x$have_x11" = "xyes"], [
++AC_DEFINE([HAVE_X11], 1, [Have x11?])
++PKG_CHECK_MODULES(X11, x11)])
+ AM_CONDITIONAL([WITH_DISPLAY_X11], [test "x$have_x11" = "xyes"])
++AC_SUBST(X11_CFLAGS)
++AC_SUBST(X11_LIBS)
+ 
+ PKG_CHECK_EXISTS([gtk+-quartz-$with_gtk], [have_quartz=yes], [have_quartz=no])
+ AS_IF([test "x$have_quartz" = "xyes"], [AC_DEFINE([HAVE_QUARTZ], 1, [Have 
Quartz?])])
+--- a/src/Makefile.am  2016-02-18 10:29:04.000000000 -0500
++++ b/src/Makefile.am  2016-08-17 14:18:46.340742557 -0400
+@@ -103,6 +103,7 @@
+       $(GUDEV_CFLAGS)                                         \
+       $(SOUP_CFLAGS)                                          \
+       $(PHODAV_CFLAGS)                                        \
++      $(X11_CFLAGS)                                           \
+       $(LZ4_CFLAGS)                                   \
+       $(NULL)
+ 
+@@ -123,6 +124,7 @@
+       $(GTK_LIBS)                     \
+       $(CAIRO_LIBS)                   \
+       $(EPOXY_LIBS)                   \
++      $(X11_LIBS)                     \
+       $(LIBM)                         \
+       $(NULL)
+ 

diff --git a/net-misc/spice-gtk/files/spice-gtk-0.32-x11-libs.patch 
b/net-misc/spice-gtk/files/spice-gtk-0.32-x11-libs.patch
new file mode 100644
index 0000000..02ea218
--- /dev/null
+++ b/net-misc/spice-gtk/files/spice-gtk-0.32-x11-libs.patch
@@ -0,0 +1,34 @@
+--- a/configure.ac     2016-06-16 07:34:31.000000000 -0400
++++ b/configure.ac     2016-08-17 15:41:03.322532729 -0400
+@@ -163,6 +163,13 @@
+ AM_CONDITIONAL([WITH_DISPLAY_WINDOWS], [test "x$have_win32" = "xyes"])
+ 
+ AC_CHECK_HEADERS([X11/XKBlib.h])
++AS_IF([test "x$have_quartz" != "xyes"],[
++  AS_IF([test "x$have_win32" != "xyes"],[
++    PKG_CHECK_MODULES(X11,x11)
++  ])
++])
++AC_SUBST(X11_CFLAGS)
++AC_SUBST(X11_LIBS)
+ 
+ AC_ARG_WITH([pnp-ids-path],
+   AC_HELP_STRING([--with-pnp-ids-path],
+--- a/src/Makefile.am  2016-08-17 15:44:42.081663331 -0400
++++ b/src/Makefile.am  2016-08-17 15:45:24.701493950 -0400
+@@ -100,6 +100,7 @@
+       $(GUDEV_CFLAGS)                                         \
+       $(SOUP_CFLAGS)                                          \
+       $(PHODAV_CFLAGS)                                        \
++      $(X11_CFLAGS)                                   \
+       $(LZ4_CFLAGS)                                   \
+       $(NULL)
+ 
+@@ -119,6 +120,7 @@
+       libspice-client-glib-2.0.la     \
+       $(GTK_LIBS)                     \
+       $(CAIRO_LIBS)                   \
++      $(X11_LIBS)                     \
+       $(LIBM)                         \
+       $(NULL)
+ 

diff --git a/net-misc/spice-gtk/spice-gtk-0.31.ebuild 
b/net-misc/spice-gtk/spice-gtk-0.31.ebuild
index 332eca9..3682e02 100644
--- a/net-misc/spice-gtk/spice-gtk-0.31.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-0.31.ebuild
@@ -45,6 +45,7 @@ RDEPEND="
        x11-libs/gtk+:2[introspection?]
        >=dev-libs/glib-2.28:2
        >=x11-libs/cairo-1.2
+       x11-libs/libX11
        virtual/jpeg:0=
        sys-libs/zlib
        introspection? ( dev-libs/gobject-introspection )
@@ -89,6 +90,7 @@ DEPEND="${RDEPEND}
 addpredict /dev
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-x11-libs.patch
        epatch_user
 
        AT_NO_RECURSIVE="yes" eautoreconf

diff --git a/net-misc/spice-gtk/spice-gtk-0.32-r1.ebuild 
b/net-misc/spice-gtk/spice-gtk-0.32-r1.ebuild
index 7847756..0fac346 100644
--- a/net-misc/spice-gtk/spice-gtk-0.32-r1.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-0.32-r1.ebuild
@@ -80,6 +80,7 @@ DEPEND="${RDEPEND}
 addpredict /dev
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-x11-libs.patch
        epatch_user
 
        AT_NO_RECURSIVE="yes" eautoreconf

diff --git a/net-misc/spice-gtk/spice-gtk-0.32-r2.ebuild 
b/net-misc/spice-gtk/spice-gtk-0.32-r2.ebuild
index 33d4a5b..ea87c5a 100644
--- a/net-misc/spice-gtk/spice-gtk-0.32-r2.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-0.32-r2.ebuild
@@ -84,6 +84,7 @@ DEPEND="${RDEPEND}
 addpredict /dev
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-x11-libs.patch
        epatch_user
 
        AT_NO_RECURSIVE="yes" eautoreconf

Reply via email to