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.

70 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/gzip/no_basename.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 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. That's not a nice but working patch to let gzip compile with glibc.
  20. - Clifford
  21. diff -urN gzip-1.2.4a-orig/gzip.c gzip-1.2.4a/gzip.c
  22. --- gzip-1.2.4a-orig/gzip.c 1993-08-19 15:39:43.000000000 +0200
  23. +++ gzip-1.2.4a/gzip.c 2004-11-19 01:20:54.656587992 +0100
  24. @@ -53,6 +53,7 @@
  25. #include <signal.h>
  26. #include <sys/stat.h>
  27. #include <errno.h>
  28. +#include <libgen.h>
  29. #include "tailor.h"
  30. #include "gzip.h"
  31. diff -urN gzip-1.2.4a-orig/gzip.h gzip-1.2.4a/gzip.h
  32. --- gzip-1.2.4a-orig/gzip.h 1993-08-13 14:35:33.000000000 +0200
  33. +++ gzip-1.2.4a/gzip.h 2004-11-19 01:20:15.383558400 +0100
  34. @@ -301,7 +301,7 @@
  35. extern void flush_window OF((void));
  36. extern void write_buf OF((int fd, voidp buf, unsigned cnt));
  37. extern char *strlwr OF((char *s));
  38. -extern char *basename OF((char *fname));
  39. +extern char *Xbasename OF((char *fname));
  40. extern void make_simple_name OF((char *name));
  41. extern char *add_envopt OF((int *argcp, char ***argvp, char *env));
  42. extern void error OF((char *m));
  43. diff -urN gzip-1.2.4a-orig/util.c gzip-1.2.4a/util.c
  44. --- gzip-1.2.4a-orig/util.c 1993-08-13 14:35:40.000000000 +0200
  45. +++ gzip-1.2.4a/util.c 2004-11-19 01:20:15.384558248 +0100
  46. @@ -178,7 +178,7 @@
  47. * any version suffix). For systems with file names that are not
  48. * case sensitive, force the base name to lower case.
  49. */
  50. -char *basename(fname)
  51. +char *Xbasename(fname)
  52. char *fname;
  53. {
  54. char *p;
  55. diff -urN gzip-1.2.4a-orig/zip.c gzip-1.2.4a/zip.c
  56. --- gzip-1.2.4a-orig/zip.c 1993-08-13 14:35:40.000000000 +0200
  57. +++ gzip-1.2.4a/zip.c 2004-11-19 01:21:21.653483840 +0100
  58. @@ -10,6 +10,7 @@
  59. #include <ctype.h>
  60. #include <sys/types.h>
  61. +#include <libgen.h>
  62. #include "tailor.h"
  63. #include "gzip.h"