wrong-path-fix.patch 995 B

123456789101112131415161718192021222324252627282930313233343536
  1. fix MakeMaker issues with using wrong SHELL/GREP
  2. A set of substitution is being processed to all target scripts with sed by
  3. replacing some key words with the detected values at configure time, this
  4. is exactly not compliant with cross compling, and will cause missing path
  5. errors at run time like:
  6. "/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory"
  7. Fixed by removing unneeded substitution and using real runtime paths
  8. instead.
  9. Signed-off-by: Ming Liu <ming.liu@windriver.com>
  10. Upstream-Status: Pending
  11. ---
  12. Makefile.am | 3 +--
  13. 1 file changed, 1 insertion(+), 2 deletions(-)
  14. diff --git a/Makefile.am b/Makefile.am
  15. index d4ecc3f..e4657d2 100644
  16. --- a/Makefile.am
  17. +++ b/Makefile.am
  18. @@ -82,8 +82,7 @@ SUFFIXES = .in
  19. .in:
  20. $(AM_V_GEN)rm -f $@-t $@ \
  21. && sed \
  22. - -e 's|/bin/sh|$(SHELL)|g' \
  23. - -e 's|[@]GREP@|$(GREP)|g' \
  24. + -e 's|[@]GREP@|$(base_bindir)/grep|g' \
  25. -e 's|[@]VERSION@|$(VERSION)|g' \
  26. $(srcdir)/$@.in >$@-t \
  27. && chmod a=rx $@-t \
  28. --
  29. 2.7.4