1 From aef3d9bca4d77db833f71d50b1c84b16c69d7deb Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sun, 23 Oct 2016 22:53:21 +0200
4 Subject: [PATCH] build: get rid of sdkdir
6 Use of sdkdir causes problems during cross-compilation, where the full
7 path is then appended to the DESTDIR, leading to host paths being
8 appended in the target:
9 https://bugs.busybox.net/show_bug.cgi?id=8696
11 Other drivers (e.g. keyboard) got rid of sdkdir. Do the same.
13 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
16 configure.ac | 10 ----------
17 include/Makefile.am | 4 +++-
18 xorg-mouse.pc.in | 3 +--
19 4 files changed, 4 insertions(+), 16 deletions(-)
21 diff --git a/Makefile.am b/Makefile.am
22 index 7142485..efe66cb 100644
25 @@ -34,9 +34,6 @@ ChangeLog:
27 dist-hook: ChangeLog INSTALL
29 -# Provide an sdk location that is writable by this module
30 -DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg'
33 # Check source code with tools like lint & sparse
35 diff --git a/configure.ac b/configure.ac
36 index 15d9047..515681d 100644
39 @@ -60,16 +60,6 @@ AC_ARG_WITH(xorg-module-dir,
40 inputdir=${moduledir}/input
43 -# X Server SDK location is required to install xf86-mouse-properties.h
44 -# This location is also relayed in the xorg-mouse.pc file
45 -sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
47 -# Workaround overriding sdkdir to be able to create a tarball when user has no
48 -# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
49 -AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
53 # Work out which OS mouse driver we need to build
56 diff --git a/include/Makefile.am b/include/Makefile.am
57 index 27ce0fb..2b85e4e 100644
58 --- a/include/Makefile.am
59 +++ b/include/Makefile.am
61 -sdk_HEADERS = xf86-mouse-properties.h
62 +# Location formerly known as 'sdkdir'
63 +xorgincludedir = $(includedir)/xorg
64 +xorginclude_HEADERS = xf86-mouse-properties.h
65 diff --git a/xorg-mouse.pc.in b/xorg-mouse.pc.in
66 index 57df596..8355e61 100644
67 --- a/xorg-mouse.pc.in
68 +++ b/xorg-mouse.pc.in
69 @@ -1,6 +1,7 @@ prefix=@prefix@
72 +includedir=@includedir@
75 Description: X.Org mouse input driver for non-evdev OS'es
76 Version: @PACKAGE_VERSION@
78 +Cflags: -I${includedir}/xorg