dbus-glib-autoreconf.patch 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. dbus-glib: result of autoreconf after the --with-dbus-binding-tool addition
  2. autoreconf on dbus-glib fails with the autoconf version we currently have
  3. in BR, so do it in patch form instead.
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. ---
  6. configure | 14 ++++++++++++++
  7. dbus/Makefile.in | 1 +
  8. dbus/examples/Makefile.in | 5 +++--
  9. dbus/examples/statemachine/Makefile.in | 5 +++--
  10. test/core/Makefile.in | 7 ++++---
  11. test/interfaces/Makefile.in | 13 +++++++------
  12. tools/Makefile.in | 3 ++-
  13. 7 files changed, 34 insertions(+), 14 deletions(-)
  14. Index: dbus-glib-0.80/configure
  15. ===================================================================
  16. --- dbus-glib-0.80.orig/configure
  17. +++ dbus-glib-0.80/configure
  18. @@ -882,6 +882,7 @@
  19. SED
  20. DBUS_BUILD_TESTS_FALSE
  21. DBUS_BUILD_TESTS_TRUE
  22. +DBUS_BINDING_TOOL
  23. DBUS_BASH_COMPLETION_FALSE
  24. DBUS_BASH_COMPLETION_TRUE
  25. EGREP
  26. @@ -1003,6 +1004,7 @@
  27. enable_bash_completion
  28. with_test_socket_dir
  29. with_introspect_xml
  30. +with_dbus_binding_tool
  31. enable_shared
  32. enable_static
  33. enable_fast_install
  34. @@ -1696,6 +1698,8 @@
  35. Pass in a pregenerated dbus daemon introspection xml
  36. file (as generated by 'dbus-daemon --introspect') to
  37. use instead of querying the installed dbus daemon
  38. + --with-dbus-binding-tool=filename
  39. + Use external dbus-binding-tool program
  40. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  41. --with-pic try to use only PIC/non-PIC objects [default=use
  42. both]
  43. @@ -5174,6 +5178,16 @@
  44. fi
  45. +# Check whether --with-dbus-binding-tool was given.
  46. +if test "${with_dbus_binding_tool+set}" = set; then
  47. + withval=$with_dbus_binding_tool; DBUS_BINDING_TOOL=$withval
  48. +else
  49. + DBUS_BINDING_TOOL=\$\(top_builddir\)/dbus/dbus-binding-tool
  50. +fi
  51. +
  52. +
  53. +
  54. +
  55. if test x$enable_tests = xyes; then
  56. DBUS_BUILD_TESTS_TRUE=
  57. DBUS_BUILD_TESTS_FALSE='#'
  58. Index: dbus-glib-0.80/dbus/examples/Makefile.in
  59. ===================================================================
  60. --- dbus-glib-0.80.orig/dbus/examples/Makefile.in
  61. +++ dbus-glib-0.80/dbus/examples/Makefile.in
  62. @@ -114,6 +114,7 @@
  63. CXXFLAGS = @CXXFLAGS@
  64. CYGPATH_W = @CYGPATH_W@
  65. DATADIRNAME = @DATADIRNAME@
  66. +DBUS_BINDING_TOOL = @DBUS_BINDING_TOOL@
  67. DBUS_BUS_CFLAGS = @DBUS_BUS_CFLAGS@
  68. DBUS_BUS_LIBS = @DBUS_BUS_LIBS@
  69. DBUS_CFLAGS = @DBUS_CFLAGS@
  70. @@ -668,10 +669,10 @@
  71. example-service-glue.h: example-service.xml
  72. - $(LIBTOOL) --mode=execute $(top_builddir)/dbus/dbus-binding-tool --prefix=some_object --mode=glib-server --output=example-service-glue.h $(srcdir)/example-service.xml
  73. + $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=some_object --mode=glib-server --output=example-service-glue.h $(srcdir)/example-service.xml
  74. example-signal-emitter-glue.h: example-signal-emitter.xml
  75. - $(LIBTOOL) --mode=execute $(top_builddir)/dbus/dbus-binding-tool --prefix=test_object --mode=glib-server --output=example-signal-emitter-glue.h $(srcdir)/example-signal-emitter.xml
  76. + $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=test_object --mode=glib-server --output=example-signal-emitter-glue.h $(srcdir)/example-signal-emitter.xml
  77. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  78. # Otherwise a system limit (for SysV at least) may be exceeded.
  79. .NOEXPORT:
  80. Index: dbus-glib-0.80/dbus/examples/statemachine/Makefile.in
  81. ===================================================================
  82. --- dbus-glib-0.80.orig/dbus/examples/statemachine/Makefile.in
  83. +++ dbus-glib-0.80/dbus/examples/statemachine/Makefile.in
  84. @@ -87,6 +87,7 @@
  85. CXXFLAGS = @CXXFLAGS@
  86. CYGPATH_W = @CYGPATH_W@
  87. DATADIRNAME = @DATADIRNAME@
  88. +DBUS_BINDING_TOOL = @DBUS_BINDING_TOOL@
  89. DBUS_BUS_CFLAGS = @DBUS_BUS_CFLAGS@
  90. DBUS_BUS_LIBS = @DBUS_BUS_LIBS@
  91. DBUS_CFLAGS = @DBUS_CFLAGS@
  92. @@ -529,10 +530,10 @@
  93. statemachine-server-glue.h: statemachine-server.xml
  94. - $(LIBTOOL) --mode=execute $(top_builddir)/dbus/dbus-binding-tool --prefix=sm_server --mode=glib-server --output=$@ $<
  95. + $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=sm_server --mode=glib-server --output=$@ $<
  96. statemachine-glue.h: statemachine.xml
  97. - $(LIBTOOL) --mode=execute $(top_builddir)/dbus/dbus-binding-tool --prefix=sm_object --mode=glib-server --output=$@ $<
  98. + $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=sm_object --mode=glib-server --output=$@ $<
  99. sm-marshal.c: Makefile sm-marshal.list
  100. @GLIB_GENMARSHAL@ --prefix=sm_marshal $(srcdir)/sm-marshal.list --header --body > $@.tmp && mv $@.tmp $@
  101. Index: dbus-glib-0.80/test/core/Makefile.in
  102. ===================================================================
  103. --- dbus-glib-0.80.orig/test/core/Makefile.in
  104. +++ dbus-glib-0.80/test/core/Makefile.in
  105. @@ -175,6 +175,7 @@
  106. CXXFLAGS = @CXXFLAGS@
  107. CYGPATH_W = @CYGPATH_W@
  108. DATADIRNAME = @DATADIRNAME@
  109. +DBUS_BINDING_TOOL = @DBUS_BINDING_TOOL@
  110. DBUS_BUS_CFLAGS = @DBUS_BUS_CFLAGS@
  111. DBUS_BUS_LIBS = @DBUS_BUS_LIBS@
  112. DBUS_CFLAGS = @DBUS_CFLAGS@
  113. @@ -767,13 +768,13 @@
  114. @DBUS_BUILD_TESTS_TRUE@test-service-glib-glue.h: test-service-glib.xml $(top_builddir)/dbus/dbus-binding-tool
  115. -@DBUS_BUILD_TESTS_TRUE@ $(DEBUG) $(top_builddir)/dbus/dbus-binding-tool --prefix=my_object --mode=glib-server --output=test-service-glib-glue.h $(srcdir)/test-service-glib.xml
  116. +@DBUS_BUILD_TESTS_TRUE@ $(DEBUG) $(DBUS_BINDING_TOOL) --prefix=my_object --mode=glib-server --output=test-service-glib-glue.h $(srcdir)/test-service-glib.xml
  117. @DBUS_BUILD_TESTS_TRUE@test-service-glib-subclass-glue.h: test-service-glib-subclass.xml $(top_builddir)/dbus/dbus-binding-tool
  118. -@DBUS_BUILD_TESTS_TRUE@ $(DEBUG) $(top_builddir)/dbus/dbus-binding-tool --prefix=my_object_subclass --mode=glib-server --output=test-service-glib-subclass-glue.h $(srcdir)/test-service-glib-subclass.xml
  119. +@DBUS_BUILD_TESTS_TRUE@ $(DEBUG) $(DBUS_BINDING_TOOL) --prefix=my_object_subclass --mode=glib-server --output=test-service-glib-subclass-glue.h $(srcdir)/test-service-glib-subclass.xml
  120. @DBUS_BUILD_TESTS_TRUE@test-service-glib-bindings.h: test-service-glib.xml $(top_builddir)/dbus/dbus-binding-tool
  121. -@DBUS_BUILD_TESTS_TRUE@ $(DEBUG) $(top_builddir)/dbus/dbus-binding-tool --prefix=my_object --mode=glib-client --output=test-service-glib-bindings.h $(srcdir)/test-service-glib.xml
  122. +@DBUS_BUILD_TESTS_TRUE@ $(DEBUG) $(DBUS_BINDING_TOOL) --prefix=my_object --mode=glib-client --output=test-service-glib-bindings.h $(srcdir)/test-service-glib.xml
  123. @DBUS_BUILD_TESTS_TRUE@my-object-marshal.c: Makefile my-object-marshal.list
  124. @DBUS_BUILD_TESTS_TRUE@ @GLIB_GENMARSHAL@ --prefix=my_object_marshal $(srcdir)/my-object-marshal.list --header --body > my-object-marshal.c
  125. Index: dbus-glib-0.80/test/interfaces/Makefile.in
  126. ===================================================================
  127. --- dbus-glib-0.80.orig/test/interfaces/Makefile.in
  128. +++ dbus-glib-0.80/test/interfaces/Makefile.in
  129. @@ -104,6 +104,7 @@
  130. CXXFLAGS = @CXXFLAGS@
  131. CYGPATH_W = @CYGPATH_W@
  132. DATADIRNAME = @DATADIRNAME@
  133. +DBUS_BINDING_TOOL = @DBUS_BINDING_TOOL@
  134. DBUS_BUS_CFLAGS = @DBUS_BUS_CFLAGS@
  135. DBUS_BUS_LIBS = @DBUS_BUS_LIBS@
  136. DBUS_CFLAGS = @DBUS_CFLAGS@
  137. @@ -637,22 +638,22 @@
  138. @DBUS_BUILD_TESTS_TRUE@test-song-glue.h: test-song.xml $(top_builddir)/dbus/dbus-binding-tool
  139. -@DBUS_BUILD_TESTS_TRUE@ $(top_builddir)/dbus/dbus-binding-tool --prefix=test_song --mode=glib-server --output=test-song-glue.h $(srcdir)/test-song.xml
  140. +@DBUS_BUILD_TESTS_TRUE@ $(DBUS_BINDING_TOOL) --prefix=test_song --mode=glib-server --output=test-song-glue.h $(srcdir)/test-song.xml
  141. @DBUS_BUILD_TESTS_TRUE@test-song-bindings.h: test-song.xml $(top_builddir)/dbus/dbus-binding-tool
  142. -@DBUS_BUILD_TESTS_TRUE@ $(top_builddir)/dbus/dbus-binding-tool --prefix=test_song --mode=glib-client --output=test-song-bindings.h $(srcdir)/test-song.xml
  143. +@DBUS_BUILD_TESTS_TRUE@ $(DBUS_BINDING_TOOL) --prefix=test_song --mode=glib-client --output=test-song-bindings.h $(srcdir)/test-song.xml
  144. @DBUS_BUILD_TESTS_TRUE@test-hello-glue.h: test-hello.xml $(top_builddir)/dbus/dbus-binding-tool
  145. -@DBUS_BUILD_TESTS_TRUE@ $(top_builddir)/dbus/dbus-binding-tool --prefix=test_hello --mode=glib-server --output=test-hello-glue.h $(srcdir)/test-hello.xml
  146. +@DBUS_BUILD_TESTS_TRUE@ $(DBUS_BINDING_TOOL) --prefix=test_hello --mode=glib-server --output=test-hello-glue.h $(srcdir)/test-hello.xml
  147. @DBUS_BUILD_TESTS_TRUE@test-hello-bindings.h: test-hello.xml $(top_builddir)/dbus/dbus-binding-tool
  148. -@DBUS_BUILD_TESTS_TRUE@ $(top_builddir)/dbus/dbus-binding-tool --prefix=test_hello --mode=glib-client --output=test-hello-bindings.h $(srcdir)/test-hello.xml
  149. +@DBUS_BUILD_TESTS_TRUE@ $(DBUS_BINDING_TOOL) --prefix=test_hello --mode=glib-client --output=test-hello-bindings.h $(srcdir)/test-hello.xml
  150. @DBUS_BUILD_TESTS_TRUE@test-goodbye-glue.h: test-goodbye.xml $(top_builddir)/dbus/dbus-binding-tool
  151. -@DBUS_BUILD_TESTS_TRUE@ $(top_builddir)/dbus/dbus-binding-tool --prefix=test_goodbye --mode=glib-server --output=test-goodbye-glue.h $(srcdir)/test-goodbye.xml
  152. +@DBUS_BUILD_TESTS_TRUE@ $(DBUS_BINDING_TOOL) --prefix=test_goodbye --mode=glib-server --output=test-goodbye-glue.h $(srcdir)/test-goodbye.xml
  153. @DBUS_BUILD_TESTS_TRUE@test-goodbye-bindings.h: test-goodbye.xml $(top_builddir)/dbus/dbus-binding-tool
  154. -@DBUS_BUILD_TESTS_TRUE@ $(top_builddir)/dbus/dbus-binding-tool --prefix=test_goodbye --mode=glib-client --output=test-goodbye-bindings.h $(srcdir)/test-goodbye.xml
  155. +@DBUS_BUILD_TESTS_TRUE@ $(DBUS_BINDING_TOOL) --prefix=test_goodbye --mode=glib-client --output=test-goodbye-bindings.h $(srcdir)/test-goodbye.xml
  156. ### not building tests
  157. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  158. Index: dbus-glib-0.80/tools/Makefile.in
  159. ===================================================================
  160. --- dbus-glib-0.80.orig/tools/Makefile.in
  161. +++ dbus-glib-0.80/tools/Makefile.in
  162. @@ -77,6 +77,7 @@
  163. CXXFLAGS = @CXXFLAGS@
  164. CYGPATH_W = @CYGPATH_W@
  165. DATADIRNAME = @DATADIRNAME@
  166. +DBUS_BINDING_TOOL = @DBUS_BINDING_TOOL@
  167. DBUS_BUS_CFLAGS = @DBUS_BUS_CFLAGS@
  168. DBUS_BUS_LIBS = @DBUS_BUS_LIBS@
  169. DBUS_CFLAGS = @DBUS_CFLAGS@
  170. @@ -481,7 +482,7 @@
  171. dbus-glib-bindings.h: dbus-bus-introspect.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
  172. - $(top_builddir)/dbus/dbus-binding-tool --mode=glib-client --prefix=dbus_bus --output=dbus-glib-bindings.h dbus-bus-introspect.xml
  173. + $(DBUS_BINDING_TOOL) --mode=glib-client --prefix=dbus_bus --output=dbus-glib-bindings.h dbus-bus-introspect.xml
  174. @USE_INTROSPECT_XML_TRUE@dbus-bus-introspect.xml: $(INTROSPECT_XML_PATH)
  175. @USE_INTROSPECT_XML_TRUE@ cp $(INTROSPECT_XML_PATH) dbus-bus-introspect.xml
  176. Index: dbus-glib-0.80/dbus/Makefile.in
  177. ===================================================================
  178. --- dbus-glib-0.80.orig/dbus/Makefile.in
  179. +++ dbus-glib-0.80/dbus/Makefile.in
  180. @@ -158,6 +158,7 @@
  181. CXXFLAGS = @CXXFLAGS@
  182. CYGPATH_W = @CYGPATH_W@
  183. DATADIRNAME = @DATADIRNAME@
  184. +DBUS_BINDING_TOOL = @DBUS_BINDING_TOOL@
  185. DBUS_BUS_CFLAGS = @DBUS_BUS_CFLAGS@
  186. DBUS_BUS_LIBS = @DBUS_BUS_LIBS@
  187. DBUS_CFLAGS = @DBUS_CFLAGS@