0001-build-get-rid-of-sdkdir.patch 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. From 1ad5e1593556f767150c2ca75176453bee4771e6 Mon Sep 17 00:00:00 2001
  2. From: "Yann E. MORIN" <yann.morin.1998@free.fr>
  3. Date: Sun, 23 Oct 2016 22:00:10 +0200
  4. Subject: [PATCH] build: get rid of sdkdir
  5. Use of sdkdir causes problems during cross-compilation, where the full
  6. path is then appended to the DESTDIR, leading to host paths being
  7. appended in the target:
  8. https://bugs.busybox.net/show_bug.cgi?id=8696
  9. Other drivers (e.g. keyboard) got rid of sdkdir. Do the same.
  10. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  11. ---
  12. Makefile.am | 4 ----
  13. configure.ac | 9 ---------
  14. include/Makefile.am | 5 ++++-
  15. xorg-evdev.pc.in | 10 ++++++++--
  16. 4 files changed, 12 insertions(+), 16 deletions(-)
  17. diff --git a/Makefile.am b/Makefile.am
  18. index 1cc3ea6..1ae042a 100644
  19. --- a/Makefile.am
  20. +++ b/Makefile.am
  21. @@ -18,10 +18,6 @@
  22. # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  23. # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  24. -
  25. -# Provide an sdk location that is writable by the evdev module
  26. -DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg'
  27. -
  28. SUBDIRS = src man include
  29. MAINTAINERCLEANFILES = ChangeLog INSTALL
  30. diff --git a/configure.ac b/configure.ac
  31. index e4887a3..4adfa43 100644
  32. --- a/configure.ac
  33. +++ b/configure.ac
  34. @@ -66,15 +66,6 @@ AC_ARG_WITH(xorg-conf-dir,
  35. [xorgconfdir="$prefix/share/X11/xorg.conf.d"])
  36. AC_SUBST(xorgconfdir)
  37. -# X Server SDK location is required to install evdev header files
  38. -# This location is also relayed in the xorg-evdev.pc file
  39. -sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
  40. -
  41. -# Workaround overriding sdkdir to be able to create a tarball when user has no
  42. -# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
  43. -AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
  44. -AC_SUBST([sdkdir])
  45. -
  46. DRIVER_NAME=evdev
  47. AC_SUBST([DRIVER_NAME])
  48. diff --git a/include/Makefile.am b/include/Makefile.am
  49. index 0e3fc1b..afc96ed 100644
  50. --- a/include/Makefile.am
  51. +++ b/include/Makefile.am
  52. @@ -1 +1,4 @@
  53. -sdk_HEADERS = evdev-properties.h
  54. +# location formerly known as 'sdkdir':
  55. +xorgincludedir = $(includedir)/xorg
  56. +
  57. +xorginclude_HEADERS = evdev-properties.h
  58. diff --git a/xorg-evdev.pc.in b/xorg-evdev.pc.in
  59. index 20710a6..fcbf511 100644
  60. --- a/xorg-evdev.pc.in
  61. +++ b/xorg-evdev.pc.in
  62. @@ -1,6 +1,12 @@
  63. -sdkdir=@sdkdir@
  64. +prefix=@prefix@
  65. +exec_prefix=@exec_prefix@
  66. +libdir=@libdir@
  67. +includedir=@includedir@
  68. +datarootdir=@datarootdir@
  69. +moduledir=@moduledir@
  70. +sysconfigdir=@sysconfigdir@
  71. Name: xorg-evdev
  72. Description: X.Org evdev input driver.
  73. Version: @PACKAGE_VERSION@
  74. -Cflags: -I${sdkdir}
  75. +Cflags: -I${includedir}/xorg
  76. --
  77. 2.7.4