make-3.81-tests-lang.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Fix from upstream for running tests when LC_ALL is set to non-C
  2. http://bugs.gentoo.org/149147
  3. Index: make/tests/run_make_tests.pl
  4. ===================================================================
  5. RCS file: /cvsroot/make/make/tests/run_make_tests.pl,v
  6. retrieving revision 1.22
  7. retrieving revision 1.23
  8. diff -u -p -r1.22 -r1.23
  9. --- make/tests/run_make_tests.pl 8 Mar 2006 20:15:09 -0000 1.22
  10. +++ make/tests/run_make_tests.pl 1 Oct 2006 05:38:38 -0000 1.23
  11. @@ -228,11 +228,6 @@ sub set_more_defaults
  12. local($string);
  13. local($index);
  14. - # Make sure we're in the C locale for those systems that support it,
  15. - # so sorting, etc. is predictable.
  16. - #
  17. - $ENV{LANG} = 'C';
  18. -
  19. # find the type of the port. We do this up front to have a single
  20. # point of change if it needs to be tweaked.
  21. #
  22. Index: make/tests/test_driver.pl
  23. ===================================================================
  24. RCS file: /cvsroot/make/make/tests/test_driver.pl,v
  25. retrieving revision 1.19
  26. retrieving revision 1.20
  27. diff -u -p -r1.19 -r1.20
  28. --- make/tests/test_driver.pl 10 Mar 2006 02:20:45 -0000 1.19
  29. +++ make/tests/test_driver.pl 1 Oct 2006 05:38:38 -0000 1.20
  30. @@ -78,9 +78,9 @@ sub resetENV
  31. sub toplevel
  32. {
  33. # Pull in benign variables from the user's environment
  34. - #
  35. +
  36. foreach (# UNIX-specific things
  37. - 'TZ', 'LANG', 'TMPDIR', 'HOME', 'USER', 'LOGNAME', 'PATH',
  38. + 'TZ', 'TMPDIR', 'HOME', 'USER', 'LOGNAME', 'PATH',
  39. # Purify things
  40. 'PURIFYOPTIONS',
  41. # Windows NT-specific stuff
  42. @@ -92,6 +92,10 @@ sub toplevel
  43. $makeENV{$_} = $ENV{$_} if $ENV{$_};
  44. }
  45. + # Make sure our compares are not foiled by locale differences
  46. +
  47. + $makeENV{LC_ALL} = 'C';
  48. +
  49. # Replace the environment with the new one
  50. #
  51. %origENV = %ENV;