fix-make-warnings.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. 2015-08-09 Mike Frysinger <vapier@gentoo.org>
  2. * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
  3. * scripts/sysd-rules.awk: Likewise.
  4. ---
  5. nptl/tst-cancel-wrappers.sh | 2 +-
  6. scripts/sysd-rules.awk | 2 +-
  7. 2 files changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/nptl/tst-cancel-wrappers.sh b/nptl/tst-cancel-wrappers.sh
  9. index b2d8302..d492a54 100644
  10. --- a/nptl/tst-cancel-wrappers.sh
  11. +++ b/nptl/tst-cancel-wrappers.sh
  12. @@ -74,7 +74,7 @@ C["__xpg_sigpause"]=1
  13. seen=""
  14. seen_enable=""
  15. seen_disable=""
  16. - object=gensub(/^.*\[(.*)\]:$/,"\\1","",$0)
  17. + object=gensub(/^.*\[(.*)\]:$/, "\\1", 1, $0)
  18. next
  19. }
  20. {
  21. diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk
  22. index cc14334..cebc9d3 100644
  23. --- a/scripts/sysd-rules.awk
  24. +++ b/scripts/sysd-rules.awk
  25. @@ -53,7 +53,7 @@ BEGIN {
  26. if (target_pattern == "%") {
  27. command_suffix = "";
  28. } else {
  29. - prefix = gensub(/%/, "", "", target_pattern);
  30. + prefix = gensub(/%/, "", 1, target_pattern);
  31. command_suffix = " $(" prefix "CPPFLAGS)";
  32. }
  33. target = "$(objpfx)" target_pattern o ":";
  34. diff --git a/Makerules b/Makerules
  35. --- a/Makerules
  36. +++ b/Makerules
  37. @@ -718,7 +718,7 @@ verbose :=
  38. endif # not -s
  39. ARFLAGS := r$(verbose)
  40. -CREATE_ARFLAGS := cru$(verbose)
  41. +CREATE_ARFLAGS := cruU$(verbose)
  42. # This makes all the object files in the parent library archive.
  43. --
  44. 2.4.4