OpenSDE Packages Database (without history before r20070)
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.

85 lines
2.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_findutils.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. The getline stuff should be made in a more clean way ... perhups it will be
  18. then upstreamable ... who knows ;)
  19. putw and getw could also be put in a __dietlibc__ conditional ...
  20. --- ./locate/code.c.orig 2005-06-07 18:18:41.000000000 -0400
  21. +++ ./locate/code.c 2005-10-31 13:37:17.000000000 -0300
  22. @@ -210,7 +210,11 @@
  23. if (diffcount < -LOCATEDB_OLD_OFFSET || diffcount > LOCATEDB_OLD_OFFSET)
  24. {
  25. putc (LOCATEDB_OLD_ESCAPE, stdout);
  26. - putw (diffcount + LOCATEDB_OLD_OFFSET, stdout);
  27. + {
  28. + int a = diffcount + LOCATEDB_OLD_OFFSET;
  29. + fwrite(&a,sizeof(a),1,stdout);
  30. + }
  31. +// putw (diffcount + LOCATEDB_OLD_OFFSET, stdout);
  32. }
  33. else
  34. putc (diffcount + LOCATEDB_OLD_OFFSET, stdout);
  35. --- ./locate/locate.c.orig 2005-06-12 17:25:31.000000000 -0400
  36. +++ ./locate/locate.c 2005-10-31 15:25:35.000000000 -0300
  37. @@ -475,7 +475,11 @@
  38. /* Get the offset in the path where this path info starts. */
  39. if (procdata->c == LOCATEDB_OLD_ESCAPE)
  40. - procdata->count += getw (procdata->fp) - LOCATEDB_OLD_OFFSET;
  41. + {
  42. + int a;
  43. + fread(&a,sizeof(a),1,procdata->fp);
  44. + procdata->count += a - LOCATEDB_OLD_OFFSET;
  45. + }
  46. else
  47. procdata->count += procdata->c - LOCATEDB_OLD_OFFSET;
  48. --- ./gnulib/lib/getline.c.orig 2005-05-17 04:41:00.000000000 -0400
  49. +++ ./gnulib/lib/getline.c 2005-10-31 15:26:27.000000000 -0300
  50. @@ -25,6 +25,7 @@
  51. #include "getline.h"
  52. +#if 0
  53. #if ! (defined __GNU_LIBRARY__ && HAVE_GETDELIM)
  54. # include "getndelim2.h"
  55. @@ -36,6 +37,7 @@
  56. stream);
  57. }
  58. #endif
  59. +#endif
  60. ssize_t
  61. getline (char **lineptr, size_t *linesize, FILE *stream)
  62. --- ./gnulib/lib/getline.h.orig 2005-05-17 04:41:00.000000000 -0400
  63. +++ ./gnulib/lib/getline.h 2005-10-31 15:27:00.000000000 -0300
  64. @@ -29,10 +29,12 @@
  65. /* glibc2 has these functions declared in <stdio.h>. Avoid redeclarations. */
  66. # if __GLIBC__ < 2
  67. +/*
  68. extern ssize_t getline (char **_lineptr, size_t *_linesize, FILE *_stream);
  69. extern ssize_t getdelim (char **_lineptr, size_t *_linesize, int _delimiter,
  70. FILE *_stream);
  71. +*/
  72. # endif