upstream.patch 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. diff -Nuar eudev-3.2.1.orig/configure.ac eudev-3.2.1/configure.ac
  2. --- eudev-3.2.1.orig/configure.ac 2016-12-11 19:50:20.000000000 +0300
  3. +++ eudev-3.2.1/configure.ac 2017-02-14 21:41:04.233477632 +0300
  4. @@ -197,6 +197,12 @@
  5. AM_CONDITIONAL([HAVE_INTROSPECTION], [test "$enable_introspection" = "yes"])
  6. # ------------------------------------------------------------------------------
  7. +AC_ARG_ENABLE([programs],
  8. + AS_HELP_STRING([--disable-programs], [disable programs (udevd, udevadm and helpers)]),
  9. + [], [enable_programs="yes"])
  10. +AM_CONDITIONAL([ENABLE_PROGRAMS], [test "x$enable_programs" = "xyes"])
  11. +
  12. +# ------------------------------------------------------------------------------
  13. have_blkid=no
  14. AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [Disable optional blkid support]))
  15. if test "x$enable_blkid" != "xno"; then
  16. @@ -284,6 +290,14 @@
  17. AM_CONDITIONAL([ENABLE_RULE_GENERATOR], [test "x$enable_rule_generator" = xyes])
  18. # ------------------------------------------------------------------------------
  19. +# mtd_probe - autoloads FTL module for mtd devices
  20. +# ------------------------------------------------------------------------------
  21. +AC_ARG_ENABLE([mtd_probe],
  22. + AS_HELP_STRING([--disable-mtd_probe], [disable MTD support]),
  23. + [], [enable_mtd_probe=yes])
  24. +AM_CONDITIONAL([ENABLE_MTD_PROBE], [test "x$enable_mtd_probe" = xyes])
  25. +
  26. +# ------------------------------------------------------------------------------
  27. AC_CONFIG_FILES([Makefile
  28. hwdb/Makefile
  29. diff -Nuar eudev-3.2.1.orig/Makefile.am eudev-3.2.1/Makefile.am
  30. --- eudev-3.2.1.orig/Makefile.am 2016-12-11 19:50:20.000000000 +0300
  31. +++ eudev-3.2.1/Makefile.am 2017-02-14 21:41:04.232477632 +0300
  32. @@ -1,9 +1,13 @@
  33. ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
  34. SUBDIRS = \
  35. - src \
  36. + src
  37. +
  38. +if ENABLE_PROGRAMS
  39. +SUBDIRS += \
  40. rules \
  41. test
  42. +endif
  43. if ENABLE_MANPAGES
  44. SUBDIRS += \
  45. diff -Nuar eudev-3.2.1.orig/rules/Makefile.am eudev-3.2.1/rules/Makefile.am
  46. --- eudev-3.2.1.orig/rules/Makefile.am 2016-12-11 19:50:20.000000000 +0300
  47. +++ eudev-3.2.1/rules/Makefile.am 2017-02-14 21:41:04.297477633 +0300
  48. @@ -16,7 +16,6 @@
  49. 70-mouse.rules \
  50. 70-touchpad.rules \
  51. 75-net-description.rules \
  52. - 75-probe_mtd.rules \
  53. 78-sound-card.rules
  54. if !ENABLE_RULE_GENERATOR
  55. @@ -34,5 +33,10 @@
  56. 80-drivers.rules
  57. endif
  58. +if ENABLE_MTD_PROBE
  59. +dist_udevrules_DATA += \
  60. + 75-probe_mtd.rules
  61. +endif
  62. +
  63. install-data-local:
  64. $(MKDIR_P) $(DESTDIR)$(udevconfdir)/rules.d
  65. diff -Nuar eudev-3.2.1.orig/src/Makefile.am eudev-3.2.1/src/Makefile.am
  66. --- eudev-3.2.1.orig/src/Makefile.am 2016-12-11 19:50:20.000000000 +0300
  67. +++ eudev-3.2.1/src/Makefile.am 2017-02-14 21:41:04.297477633 +0300
  68. @@ -2,14 +2,24 @@
  69. SUBDIRS = \
  70. shared \
  71. - libudev \
  72. + libudev
  73. +
  74. +PROGRAMS_SUBDIRS = \
  75. udev
  76. # Helper programs
  77. -SUBDIRS += \
  78. +PROGRAMS_SUBDIRS += \
  79. ata_id \
  80. cdrom_id \
  81. collect \
  82. - mtd_probe \
  83. scsi_id \
  84. v4l_id
  85. +
  86. +if ENABLE_MTD_PROBE
  87. +PROGRAMS_SUBDIRS += \
  88. + mtd_probe
  89. +endif
  90. +
  91. +if ENABLE_PROGRAMS
  92. +SUBDIRS += $(PROGRAMS_SUBDIRS)
  93. +endif
  94. diff -Nuar eudev-3.2.1.orig/src/shared/missing.h eudev-3.2.1/src/shared/missing.h
  95. --- eudev-3.2.1.orig/src/shared/missing.h 2016-12-11 19:50:20.000000000 +0300
  96. +++ eudev-3.2.1/src/shared/missing.h 2017-02-14 21:41:04.303477634 +0300
  97. @@ -171,3 +171,11 @@
  98. (char *)memcpy(__new, __old, __len); \
  99. })
  100. #endif
  101. +
  102. +#ifndef BTN_TRIGGER_HAPPY
  103. +#define BTN_TRIGGER_HAPPY 0x2c0
  104. +#endif
  105. +
  106. +#ifndef INPUT_PROP_MAX
  107. +#define INPUT_PROP_MAX 0x1f
  108. +#endif
  109. diff -Nuar eudev-3.2.1.orig/src/udev/udev-builtin-input_id.c eudev-3.2.1/src/udev/udev-builtin-input_id.c
  110. --- eudev-3.2.1.orig/src/udev/udev-builtin-input_id.c 2016-12-11 19:50:20.000000000 +0300
  111. +++ eudev-3.2.1/src/udev/udev-builtin-input_id.c 2017-02-14 21:41:04.306477634 +0300
  112. @@ -32,6 +32,7 @@
  113. #include "udev.h"
  114. #include "util.h"
  115. +#include "missing.h"
  116. /* we must use this kernel-compatible implementation */
  117. #define BITS_PER_LONG (sizeof(unsigned long) * 8)
  118. diff -Nuar eudev-3.2.1.orig/src/udev/udev-builtin-keyboard.c eudev-3.2.1/src/udev/udev-builtin-keyboard.c
  119. --- eudev-3.2.1.orig/src/udev/udev-builtin-keyboard.c 2016-12-11 19:50:20.000000000 +0300
  120. +++ eudev-3.2.1/src/udev/udev-builtin-keyboard.c 2017-02-14 21:41:04.307477634 +0300
  121. @@ -28,7 +28,6 @@
  122. #include "udev.h"
  123. -static const struct key *keyboard_lookup_key(const char *str, unsigned len);
  124. #include "keyboard-keys-from-name.h"
  125. #include "keyboard-keys-to-name.h"