140-don-t-quote-SHELL-in-Makefile.am.patch 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. From 879578d3f4dc9bc42aa433b1fb6b584564f83617 Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cotequeiroz@gmail.com>
  3. Date: Wed, 21 Jul 2021 13:38:24 -0300
  4. Subject: librecmc: don't quote $(SHELL) in Makefile.am
  5. This allows to use SHELL="env bash" to get a controlled enviroment.
  6. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
  7. --- a/Makefile.am
  8. +++ b/Makefile.am
  9. @@ -46,7 +46,7 @@ EXTRA_LTLIBRARIES =
  10. # Using 'cd' in backquotes may print the directory name, use this instead:
  11. lt__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  12. -git_version_gen = '$(SHELL)' '$(aux_dir)/git-version-gen' '--fallback' '$(VERSION)' '.tarball-version'
  13. +git_version_gen = $(SHELL) '$(aux_dir)/git-version-gen' '--fallback' '$(VERSION)' '.tarball-version'
  14. rebuild = rebuild=:; revision=`$(lt__cd) $(srcdir) && $(git_version_gen) | $(SED) 's|-.*$$||'`
  15. @@ -306,7 +306,7 @@ libtool: $(ltmain_sh) $(config_status) $
  16. if test 0 = '$(AM_DEFAULT_VERBOSITY)' && test 1 != '$(V)'; \
  17. then echo " GEN " $@; \
  18. else echo '$(SHELL) $(top_builddir)/config.status "$@"'; fi; \
  19. - cd '$(top_builddir)' && '$(SHELL)' ./config.status '$@'; \
  20. + cd '$(top_builddir)' && $(SHELL) ./config.status '$@'; \
  21. fi
  22. @@ -789,13 +789,13 @@ testsuite_deps_uninstalled = $(testsuite
  23. # Hook the test suite into the check rule
  24. check-local: $(testsuite_deps_uninstalled)
  25. $(AM_V_at)$(CD_TESTDIR); \
  26. - CONFIG_SHELL='$(SHELL)' '$(SHELL)' "$$abs_srcdir/$(TESTSUITE)" \
  27. + CONFIG_SHELL=$(SHELL) $(SHELL) "$$abs_srcdir/$(TESTSUITE)" \
  28. $(TESTS_ENVIRONMENT) $(BUILDCHECK_ENVIRONMENT) $(TESTSUITEFLAGS)
  29. # Run the test suite on the *installed* tree.
  30. installcheck-local: $(testsuite_deps)
  31. $(AM_V_at)$(CD_TESTDIR); \
  32. - CONFIG_SHELL='$(SHELL)' '$(SHELL)' "$$abs_srcdir/$(TESTSUITE)" \
  33. + CONFIG_SHELL=$(SHELL) $(SHELL) "$$abs_srcdir/$(TESTSUITE)" \
  34. $(TESTS_ENVIRONMENT) $(INSTALLCHECK_ENVIRONMENT) $(TESTSUITEFLAGS) \
  35. AUTOTEST_PATH='$(exec_prefix)/bin'
  36. @@ -807,7 +807,7 @@ check-noninteractive-old:
  37. .PHONY: check-noninteractive-new
  38. check-noninteractive-new: $(testsuite_deps_uninstalled)
  39. $(AM_V_at)$(CD_TESTDIR); \
  40. - CONFIG_SHELL='$(SHELL)' '$(SHELL)' "$$abs_srcdir/$(TESTSUITE)" \
  41. + CONFIG_SHELL=$(SHELL) $(SHELL) "$$abs_srcdir/$(TESTSUITE)" \
  42. $(TESTS_ENVIRONMENT) $(BUILDCHECK_ENVIRONMENT) \
  43. -k '!interactive' INNER_TESTSUITEFLAGS=',!interactive' \
  44. $(TESTSUITEFLAGS)
  45. @@ -816,7 +816,7 @@ check-noninteractive-new: $(testsuite_de
  46. .PHONY: check-interactive
  47. check-interactive: $(testsuite_deps_uninstalled)
  48. $(AM_V_at)$(CD_TESTDIR); \
  49. - CONFIG_SHELL='$(SHELL)' '$(SHELL)' "$$abs_srcdir/$(TESTSUITE)" \
  50. + CONFIG_SHELL=$(SHELL) $(SHELL) "$$abs_srcdir/$(TESTSUITE)" \
  51. $(TESTS_ENVIRONMENT) $(BUILDCHECK_ENVIRONMENT) \
  52. -k interactive -k recursive INNER_TESTSUITEFLAGS=',interactive' \
  53. $(TESTSUITEFLAGS)
  54. @@ -828,7 +828,7 @@ check-noninteractive: check-noninteracti
  55. clean-local:
  56. -$(CD_TESTDIR); \
  57. test -f "$$abs_srcdir/$(TESTSUITE)" && \
  58. - '$(SHELL)' "$$abs_srcdir/$(TESTSUITE)" --clean
  59. + $(SHELL) "$$abs_srcdir/$(TESTSUITE)" --clean
  60. ## An empty target to depend on when a rule needs to always run
  61. ## whenever it is visited.