mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/e2fsprogs/et-dietlibc.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. This patch "workarounds" table base computation problems using the dietlibc awk.
  20. This modification is imperfect and dietlibc/awk should be fully reviewed, since
  21. the error table base is different when this is used. This affects the distributions
  22. ABI, but as dietlibc already is a HUGE ABI change, this is not issue, yet.
  23. (However this only happens on soem platforms like SPARC, x86 and PowerPC also mis-
  24. comput the base, but in another way ...)
  25. - Rene Rebe <rene@exactcode.de>
  26. diff -ur e2fsprogs-1.34-orig/lib/et/et_c.awk e2fsprogs-1.34/lib/et/et_c.awk
  27. --- e2fsprogs-1.34-orig/lib/et/et_c.awk 2003-05-06 05:07:31.000000000 +0200
  28. +++ e2fsprogs-1.34/lib/et/et_c.awk 2004-06-10 09:18:40.820000000 +0200
  29. @@ -89,7 +89,7 @@
  30. tab_base_high = (tab_base_high * 256) + \
  31. int(tab_base_low / mod_base)
  32. tab_base_low = tab_base_low % mod_base
  33. - if (tab_base_low < 0) {
  34. + if (tab_base_low <= 0) {
  35. # Work around stupid bug in the ARM libm
  36. tab_base_low = tab_base_low + mod_base
  37. }
  38. diff -ur e2fsprogs-1.34-orig/lib/et/et_h.awk e2fsprogs-1.34/lib/et/et_h.awk
  39. --- e2fsprogs-1.34-orig/lib/et/et_h.awk 2003-05-06 05:07:31.000000000 +0200
  40. +++ e2fsprogs-1.34/lib/et/et_h.awk 2004-06-10 09:15:58.010000000 +0200
  41. @@ -89,7 +89,7 @@
  42. tab_base_high = (tab_base_high * 256) + \
  43. int(tab_base_low / mod_base)
  44. tab_base_low = tab_base_low % mod_base
  45. - if (tab_base_low < 0) {
  46. + if (tab_base_low <= 0) {
  47. # Work around stupid bug in the ARM libm
  48. tab_base_low = tab_base_low + mod_base
  49. }