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

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/gzip/no_basename.patch
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
That's not a nice but working patch to let gzip compile with glibc.
- Clifford
diff -urN gzip-1.2.4a-orig/gzip.c gzip-1.2.4a/gzip.c
--- gzip-1.2.4a-orig/gzip.c 1993-08-19 15:39:43.000000000 +0200
+++ gzip-1.2.4a/gzip.c 2004-11-19 01:20:54.656587992 +0100
@@ -53,6 +53,7 @@
#include <signal.h>
#include <sys/stat.h>
#include <errno.h>
+#include <libgen.h>
#include "tailor.h"
#include "gzip.h"
diff -urN gzip-1.2.4a-orig/gzip.h gzip-1.2.4a/gzip.h
--- gzip-1.2.4a-orig/gzip.h 1993-08-13 14:35:33.000000000 +0200
+++ gzip-1.2.4a/gzip.h 2004-11-19 01:20:15.383558400 +0100
@@ -301,7 +301,7 @@
extern void flush_window OF((void));
extern void write_buf OF((int fd, voidp buf, unsigned cnt));
extern char *strlwr OF((char *s));
-extern char *basename OF((char *fname));
+extern char *Xbasename OF((char *fname));
extern void make_simple_name OF((char *name));
extern char *add_envopt OF((int *argcp, char ***argvp, char *env));
extern void error OF((char *m));
diff -urN gzip-1.2.4a-orig/util.c gzip-1.2.4a/util.c
--- gzip-1.2.4a-orig/util.c 1993-08-13 14:35:40.000000000 +0200
+++ gzip-1.2.4a/util.c 2004-11-19 01:20:15.384558248 +0100
@@ -178,7 +178,7 @@
* any version suffix). For systems with file names that are not
* case sensitive, force the base name to lower case.
*/
-char *basename(fname)
+char *Xbasename(fname)
char *fname;
{
char *p;
diff -urN gzip-1.2.4a-orig/zip.c gzip-1.2.4a/zip.c
--- gzip-1.2.4a-orig/zip.c 1993-08-13 14:35:40.000000000 +0200
+++ gzip-1.2.4a/zip.c 2004-11-19 01:21:21.653483840 +0100
@@ -10,6 +10,7 @@
#include <ctype.h>
#include <sys/types.h>
+#include <libgen.h>
#include "tailor.h"
#include "gzip.h"