/recipes/emacs/files/emacs23.1-use-qemu.patch

https://github.com/SIFTeam/openembedded · Patch · 107 lines · 96 code · 11 blank · 0 comment · 0 complexity · 35e1976b6cfcd028f96db97761418f77 MD5 · raw file

  1. Index: emacs-23.1/leim/Makefile.in
  2. ===================================================================
  3. --- emacs-23.1.orig/leim/Makefile.in
  4. +++ emacs-23.1/leim/Makefile.in
  5. @@ -51,7 +51,7 @@ buildlisppath=${srcdir}/${dot}${dot}/lis
  6. # How to run Emacs.
  7. RUN-EMACS = EMACSLOADPATH=$(buildlisppath) LC_ALL=C \
  8. - ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
  9. + ${QEMU} ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
  10. # Subdirectories to be made if ${srcdir} is different from the current
  11. # directory.
  12. Index: emacs-23.1/lib-src/Makefile.in
  13. ===================================================================
  14. --- emacs-23.1.orig/lib-src/Makefile.in
  15. +++ emacs-23.1/lib-src/Makefile.in
  16. @@ -23,7 +23,7 @@
  17. SHELL = /bin/sh
  18. # Following ../lisp/Makefile.in.
  19. -EMACS = ../src/emacs
  20. +EMACS = ${QEMU} ../src/emacs
  21. EMACSOPT = -batch --no-site-file --multibyte
  22. # ==================== Things `configure' will edit ====================
  23. @@ -371,7 +371,7 @@ TAGS: etags${EXEEXT}
  24. clobbered too. */
  25. test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
  26. $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
  27. - ./test-distrib ${srcdir}/testfile
  28. + ${QEMU} ./test-distrib ${srcdir}/testfile
  29. /* We need the following in order to create a <getopt.h> when the system
  30. does not have one that works with the given compiler. */
  31. Index: emacs-23.1/lisp/Makefile.in
  32. ===================================================================
  33. --- emacs-23.1.orig/lisp/Makefile.in
  34. +++ emacs-23.1/lisp/Makefile.in
  35. @@ -26,8 +26,7 @@ srcdir=@srcdir@/..
  36. # You can specify a different executable on the make command line,
  37. # e.g. "make EMACS=../src/emacs ...".
  38. -EMACS = ../src/emacs
  39. -
  40. +EMACS = "${QEMU} ../src/emacs"
  41. # Command line flags for Emacs. This must include --multibyte,
  42. # otherwise some files will not compile.
  43. Index: emacs-23.1/Makefile.in
  44. ===================================================================
  45. --- emacs-23.1.orig/Makefile.in
  46. +++ emacs-23.1/Makefile.in
  47. @@ -336,7 +336,7 @@ lib-src lisp: Makefile FRC
  48. # all preloaded elisp files, and only then dump the actual src/emacs, which
  49. # is not wrong, but is overkill in 99.99% of the cases.
  50. src: Makefile FRC
  51. - boot=bootstrap-emacs$(EXEEXT); \
  52. + boot=${QEMU} bootstrap-emacs$(EXEEXT); \
  53. if [ ! -x "src/$$boot" ]; then \
  54. cd $@; $(MAKE) all $(MFLAGS) \
  55. CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
  56. Index: emacs-23.1/src/Makefile.in
  57. ===================================================================
  58. --- emacs-23.1.orig/src/Makefile.in
  59. +++ emacs-23.1/src/Makefile.in
  60. @@ -497,7 +497,7 @@
  61. this with the shell''s ``for'' construct.
  62. Note that some people do not have '.' in their paths, so we must
  63. use ./prefix-args. */
  64. -#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
  65. +#define YMF_PASS_LDFLAGS(flags) `${QEMU} ./prefix-args -Xlinker flags`
  66. #else
  67. #define YMF_PASS_LDFLAGS(flags) flags
  68. #endif
  69. @@ -895,9 +895,9 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(L
  70. #endif
  71. #ifdef HAVE_SHM
  72. -RUN_TEMACS = `/bin/pwd`/temacs -nl
  73. +RUN_TEMACS = ${QEMU} temacs -nl
  74. #else
  75. -RUN_TEMACS = `/bin/pwd`/temacs
  76. +RUN_TEMACS = ${QEMU} temacs
  77. #endif
  78. all: emacs${EXEEXT} OTHER_FILES
  79. @@ -912,7 +912,7 @@ emacs${EXEEXT}: temacs${EXEEXT} ${etc}DO
  80. @: bootstrap-emacs, so let us replace it.
  81. -ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
  82. #endif /* ! defined (CANNOT_DUMP) */
  83. - -./emacs -q -batch -f list-load-path-shadows
  84. + -${QEMU} ./emacs -q -batch -f list-load-path-shadows
  85. /* We run make-docfile twice because the command line may get too long
  86. on some systems. */
  87. @@ -929,8 +929,8 @@ emacs${EXEEXT}: temacs${EXEEXT} ${etc}DO
  88. only in order to reduce the command line length. --Stef */
  89. ${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${lisp} ${SOME_MACHINE_LISP}
  90. -rm -f ${etc}DOC
  91. - ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
  92. - ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
  93. + ${QEMU}${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
  94. + ${QEMU} ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
  95. ${libsrc}make-docfile${EXEEXT}:
  96. cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}