diff mbox

[xorg] Added libx11 version 1.4.99.902 to fix build problem on Linux Mint 17.

Message ID 1401780260-8512-1-git-send-email-dore@madsdore.dk
State Under Review
Delegated to: Jacob Kjaergaard
Headers show

Commit Message

Mads Doré Hansen June 3, 2014, 7:24 a.m. UTC
From: mdh <dore@madsdore.dk>

---
 .../libx11-1.4.99.902/disable_makekeys.patch       | 30 ++++++++++++++++++++++
 .../xorg-lib/libx11-1.4.99.902/disable_tests.patch | 12 +++++++++
 .../libx11-1.4.99.902/keysymdef_include.patch      | 23 +++++++++++++++++
 recipes/xorg-lib/libx11_1.4.99.902.oe              | 20 +++++++++++++++
 recipes/xorg-lib/libx11_1.4.99.902.oe.sig          |  1 +
 5 files changed, 86 insertions(+)
 create mode 100644 recipes/xorg-lib/libx11-1.4.99.902/disable_makekeys.patch
 create mode 100644 recipes/xorg-lib/libx11-1.4.99.902/disable_tests.patch
 create mode 100644 recipes/xorg-lib/libx11-1.4.99.902/keysymdef_include.patch
 create mode 100644 recipes/xorg-lib/libx11_1.4.99.902.oe
 create mode 100644 recipes/xorg-lib/libx11_1.4.99.902.oe.sig
diff mbox

Patch

diff --git a/recipes/xorg-lib/libx11-1.4.99.902/disable_makekeys.patch b/recipes/xorg-lib/libx11-1.4.99.902/disable_makekeys.patch
new file mode 100644
index 0000000..ed1308c
--- /dev/null
+++ b/recipes/xorg-lib/libx11-1.4.99.902/disable_makekeys.patch
@@ -0,0 +1,30 @@ 
+--- libX11-1.4.99.902/src/util/Makefile.am.orig	2014-06-02 14:59:20.350075680 +0200
++++ libX11-1.4.99.902/src/util/Makefile.am	2014-06-02 14:59:49.622076858 +0200
+@@ -1,27 +1 @@
+-
+-noinst_PROGRAMS=makekeys
+-
+-makekeys_CFLAGS = \
+-	$(X11_CFLAGS) \
+-	$(CWARNFLAGS)
+-
+-makekeys_CPPFLAGS = \
+-	-I$(top_srcdir)/include
+-
+-CC = @CC_FOR_BUILD@
+-CPPFLAGS = @CPPFLAGS_FOR_BUILD@
+-CFLAGS = @CFLAGS_FOR_BUILD@
+-LDFLAGS = @LDFLAGS_FOR_BUILD@
+-
+ EXTRA_DIST = mkks.sh
+-
+-if LINT
+-# Check source code with tools like lint & sparse
+-
+-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+-		$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
+-
+-lint:
+-	$(LINT) $(ALL_LINT_FLAGS) makekeys.c
+-
+-endif LINT
diff --git a/recipes/xorg-lib/libx11-1.4.99.902/disable_tests.patch b/recipes/xorg-lib/libx11-1.4.99.902/disable_tests.patch
new file mode 100644
index 0000000..a150931
--- /dev/null
+++ b/recipes/xorg-lib/libx11-1.4.99.902/disable_tests.patch
@@ -0,0 +1,12 @@ 
+diff -Nurd libX11-1.4.99.902/nls/Makefile.am libX11-1.5.0/nls/Makefile.am
+--- libX11-1.4.99.902/nls/Makefile.am	2012-06-02 09:37:18.000000000 +0300
++++ libX11-1.4.99.902/nls/Makefile.am	2013-01-02 16:10:24.960156131 +0200
+@@ -36,11 +36,6 @@
+         < locale.dir.l1 > locale.dir.l2
+	cat locale.dir.l2 locale.dir.l1 > locale.dir
+
+-if HAVE_PERL
+-TESTS_ENVIRONMENT = $(PERL)
+-TESTS = $(srcdir)/compose-check.pl
+-endif HAVE_PERL
+-
diff --git a/recipes/xorg-lib/libx11-1.4.99.902/keysymdef_include.patch b/recipes/xorg-lib/libx11-1.4.99.902/keysymdef_include.patch
new file mode 100644
index 0000000..d1bdab9
--- /dev/null
+++ b/recipes/xorg-lib/libx11-1.4.99.902/keysymdef_include.patch
@@ -0,0 +1,23 @@ 
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
+
+diff -uNr libX11-1.3.6.orig//configure.ac libX11-1.3.6/configure.ac
+--- libX11-1.3.6.orig//configure.ac	2010-09-20 08:04:16.000000000 +0200
++++ libX11-1.3.6/configure.ac	2010-09-28 16:29:26.000000000 +0200
+@@ -355,7 +355,14 @@
+ # Find keysymdef.h
+ #
+ AC_MSG_CHECKING([keysym definitions])
+-KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
++AC_ARG_WITH(keysymdefdir,
++        AC_HELP_STRING([--with-keysymdefdir=DIR], [The location of keysymdef.h]),
++        KEYSYMDEFDIR=$withval, KEYSYMDEFDIR="")
++
++if test x$KEYSYMDEFDIR = x; then
++	KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
++fi
++
+ FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
+ for i in $FILES; do
+     if test -f "$KEYSYMDEFDIR/$i"; then
diff --git a/recipes/xorg-lib/libx11_1.4.99.902.oe b/recipes/xorg-lib/libx11_1.4.99.902.oe
new file mode 100644
index 0000000..7cc8178
--- /dev/null
+++ b/recipes/xorg-lib/libx11_1.4.99.902.oe
@@ -0,0 +1,20 @@ 
+require libx11.inc
+inherit gettext
+
+RECIPE_TYPES = "sdk machine native"
+
+EXTRA_OECONF += "--with-keysymdefdir=${HOST_SYSROOT}${includedir}/X11"
+
+#removed xtrans - removed xslt support elsewhere too
+DEPENDS += "xtrans util-macros libxdmcp libxau \
+            bigreqsproto xproto xextproto xcmiscproto \
+            xf86bigfontproto kbproto inputproto libxcb"
+DEPENDS_${PN} += "xproto libxcb libxau libxdmcp libdl"
+# "libxau libxdmcp"
+RDEPENDS_${PN} +=  "libxcb libxau libxdmcp libdl libc"
+
+SRC_URI += " file://disable_tests.patch \
+             file://keysymdef_include.patch \
+             file://disable_makekeys.patch \
+             "
+
diff --git a/recipes/xorg-lib/libx11_1.4.99.902.oe.sig b/recipes/xorg-lib/libx11_1.4.99.902.oe.sig
new file mode 100644
index 0000000..5aa9594
--- /dev/null
+++ b/recipes/xorg-lib/libx11_1.4.99.902.oe.sig
@@ -0,0 +1 @@ 
+afe75b7c2c54e354f726fd36251bcfec1e1f833a  libX11-1.4.99.902.tar.bz2