net-misc/spice-gtk: explicitly link libX11 the right way for ld.gold
authorIan Stakenvicius <axs@gentoo.org>
Wed, 17 Aug 2016 20:13:30 +0000 (16:13 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Wed, 17 Aug 2016 20:13:53 +0000 (16:13 -0400)
Bug: http://bugs.gentoo.org/585118

Package-Manager: portage-2.2.28

net-misc/spice-gtk/files/spice-gtk-0.31-x11-libs.patch [new file with mode: 0644]
net-misc/spice-gtk/files/spice-gtk-0.32-x11-libs.patch [new file with mode: 0644]
net-misc/spice-gtk/spice-gtk-0.31.ebuild
net-misc/spice-gtk/spice-gtk-0.32-r1.ebuild
net-misc/spice-gtk/spice-gtk-0.32-r2.ebuild

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 (file)
index 0000000..0d7e715
--- /dev/null
@@ -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 (file)
index 0000000..02ea218
--- /dev/null
@@ -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)
+ 
index 332eca91a944fcfb2b309ee09261273b34b9afcc..3682e02a36a34fab1877a816bdede962952b349c 100644 (file)
@@ -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
index 78477567311b896df08f686640265e8ceab495d9..0fac3468ebeb18ec86dd3713e89dd21e26432e77 100644 (file)
@@ -80,6 +80,7 @@ DEPEND="${RDEPEND}
 addpredict /dev
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-x11-libs.patch
        epatch_user
 
        AT_NO_RECURSIVE="yes" eautoreconf
index 33d4a5b829ed0359248d51bd3e5b2aa853667fa1..ea87c5ac53e0c3bfae6c37674bb58dcddba0ba56 100644 (file)
@@ -84,6 +84,7 @@ DEPEND="${RDEPEND}
 addpredict /dev
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-x11-libs.patch
        epatch_user
 
        AT_NO_RECURSIVE="yes" eautoreconf