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.

79 lines
2.5 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/dietlibc/pkg_patch/pkg_grep.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 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. --- ./src/grep.c.orig Wed May 1 13:26:08 2002
  20. +++ ./src/grep.c Wed May 1 13:26:40 2002
  21. @@ -377,10 +377,10 @@
  22. }
  23. if (mmapsize
  24. - && (mmap ((caddr_t) readbuf, mmapsize,
  25. + && (mmap ((void *) readbuf, mmapsize,
  26. PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED,
  27. bufdesc, bufoffset)
  28. - != (caddr_t) -1))
  29. + != (void *) -1))
  30. {
  31. /* Do not bother to use madvise with MADV_SEQUENTIAL or
  32. MADV_WILLNEED on the mmapped memory. One might think it
  33. --- ./src/dfa.c.orig Wed May 1 13:46:24 2002
  34. +++ ./src/dfa.c Wed May 1 13:46:33 2002
  35. @@ -18,6 +18,10 @@
  36. /* Written June, 1988 by Mike Haertel
  37. Modified July, 1988 by Arthur David Olson to assist BMG speedups */
  38. +/* Uh! What a hack .. */
  39. +#define _LIBINTL_H
  40. +#define _(Str) (Str)
  41. +
  42. #ifdef HAVE_CONFIG_H
  43. #include <config.h>
  44. #endif
  45. --- ./configure.orig Wed May 1 13:20:49 2002
  46. +++ ./configure Wed May 1 13:39:50 2002
  47. @@ -7,6 +7,18 @@
  48. # This configure script is free software; the Free Software Foundation
  49. # gives unlimited permission to copy, distribute and modify it.
  50. +# disable some headers
  51. +#
  52. +ac_cv_header_wchar_h=no
  53. +ac_cv_header_wctype_h=no
  54. +ac_cv_header_utmpx_h=no
  55. +ac_cv_header_sys_statfs_h=no
  56. +ac_cv_header_libintl_h=no
  57. +
  58. +# disable some functions
  59. +#
  60. +ac_cv_func_dcgettext=no
  61. +
  62. if expr a : '\(a\)' >/dev/null 2>&1; then
  63. as_expr=expr
  64. else
  65. --- grep-2.5.1/Makefile.in~ Tue Mar 26 17:09:34 2002
  66. +++ grep-2.5.1/Makefile.in Thu Aug 21 00:57:55 2003
  67. @@ -97,7 +97,7 @@
  68. AUTOMAKE_OPTIONS = no-dependencies
  69. -SUBDIRS = intl po lib doc src tests m4 vms bootstrap
  70. +SUBDIRS = intl po lib src tests m4 vms bootstrap
  71. EXTRA_DIST = TODO README README-alpha PATCHES.AC PATCHES.AM