coreutils-7.4-rename-m4-fix.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Commit 7fcb389fb4cd5ba26e330fef991ffdc05392f289 from gnulib, to fix
  2. the rename bugs detection macros.
  3. ---
  4. m4/rename.m4 | 4 ++--
  5. 1 file changed, 2 insertions(+), 2 deletions(-)
  6. Index: coreutils-7.4/m4/rename.m4
  7. ===================================================================
  8. --- coreutils-7.4.orig/m4/rename.m4
  9. +++ coreutils-7.4/m4/rename.m4
  10. @@ -51,12 +51,12 @@
  11. AC_LIBOBJ([rename])
  12. AC_DEFINE([rename], [rpl_rename],
  13. [Define to rpl_rename if the replacement function should be used.])
  14. - if test $gl_cv_func_rename_trailing_slash_bug; then
  15. + if test $gl_cv_func_rename_trailing_slash_bug = yes; then
  16. AC_DEFINE([RENAME_TRAILING_SLASH_BUG], [1],
  17. [Define if rename does not work for source file names with a trailing
  18. slash, like the one from SunOS 4.1.1_U1.])
  19. fi
  20. - if test $gl_cv_func_rename_dest_exists_bug; then
  21. + if test $gl_cv_func_rename_dest_exists_bug = yes; then
  22. AC_DEFINE([RENAME_DEST_EXISTS_BUG], [1],
  23. [Define if rename does not work when the destination file exists,
  24. as on Windows.])
  25. Index: coreutils-7.4/configure
  26. ===================================================================
  27. --- coreutils-7.4.orig/configure
  28. +++ coreutils-7.4/configure
  29. @@ -28698,12 +28698,12 @@ $as_echo "$gl_cv_func_rename_dest_exists
  30. $as_echo "#define rename rpl_rename" >>confdefs.h
  31. - if test $gl_cv_func_rename_trailing_slash_bug; then
  32. + if test $gl_cv_func_rename_trailing_slash_bug = yes; then
  33. $as_echo "#define RENAME_TRAILING_SLASH_BUG 1" >>confdefs.h
  34. fi
  35. - if test $gl_cv_func_rename_dest_exists_bug; then
  36. + if test $gl_cv_func_rename_dest_exists_bug = yes; then
  37. $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h