diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-09-20 12:32:55 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-09-20 12:32:55 +0000 |
commit | c086b74fd1de8e145266c2d412f0f4f55cc42823 (patch) | |
tree | ebe232fac96367de71f4001a856b36b9e25219e4 | |
parent | removed old versions (diff) | |
download | gentoo-2-c086b74fd1de8e145266c2d412f0f4f55cc42823.tar.gz gentoo-2-c086b74fd1de8e145266c2d412f0f4f55cc42823.tar.bz2 gentoo-2-c086b74fd1de8e145266c2d412f0f4f55cc42823.zip |
Fix patch to work on non-glibc systems, inttypes seems to be needed there, too.
(Portage version: 2.0.52-r1)
-rw-r--r-- | app-arch/bsdsfv/ChangeLog | 6 | ||||
-rw-r--r-- | app-arch/bsdsfv/files/bsdsfv-1.18-64bit.patch | 20 |
2 files changed, 14 insertions, 12 deletions
diff --git a/app-arch/bsdsfv/ChangeLog b/app-arch/bsdsfv/ChangeLog index 6a76ac5795dc..3da8668904d3 100644 --- a/app-arch/bsdsfv/ChangeLog +++ b/app-arch/bsdsfv/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-arch/bsdsfv # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/bsdsfv/ChangeLog,v 1.17 2005/09/19 17:53:01 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/bsdsfv/ChangeLog,v 1.18 2005/09/20 12:32:55 flameeyes Exp $ + + 20 Sep 2005; Diego Pettenò <flameeyes@gentoo.org> + files/bsdsfv-1.18-64bit.patch: + Fix patch to work on non-glibc systems, inttypes seems to be needed there, too. *bsdsfv-1.18-r1 (19 Sep 2005) diff --git a/app-arch/bsdsfv/files/bsdsfv-1.18-64bit.patch b/app-arch/bsdsfv/files/bsdsfv-1.18-64bit.patch index 651b419ed6fe..d55b42d01b86 100644 --- a/app-arch/bsdsfv/files/bsdsfv-1.18-64bit.patch +++ b/app-arch/bsdsfv/files/bsdsfv-1.18-64bit.patch @@ -2,15 +2,13 @@ Index: bsdsfv/bsdsfv.c =================================================================== --- bsdsfv.orig/bsdsfv.c +++ bsdsfv/bsdsfv.c -@@ -60,9 +60,13 @@ typedef struct sfvtable { +@@ -59,10 +59,10 @@ typedef struct sfvtable { + #include <sys/stat.h> #include <sys/mman.h> #include <dirent.h> - -+#ifdef __GLIBC__ +#include <inttypes.h> -+#endif -+ +- -long -UpdateCRC(unsigned long CRC, const char *buffer, long count) +int32_t @@ -18,7 +16,7 @@ Index: bsdsfv/bsdsfv.c { /* * Note: if you want to know how CRC32-checking works, I -@@ -70,7 +74,7 @@ UpdateCRC(unsigned long CRC, const char +@@ -70,7 +70,7 @@ UpdateCRC(unsigned long CRC, const char * There is not much you can change in this function, so * if you need a CRC32-check yourself, feel free to rip. */ @@ -27,7 +25,7 @@ Index: bsdsfv/bsdsfv.c 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, -@@ -175,13 +179,13 @@ UpdateCRC(unsigned long CRC, const char +@@ -175,13 +175,13 @@ UpdateCRC(unsigned long CRC, const char @@ -45,7 +43,7 @@ Index: bsdsfv/bsdsfv.c /* * Note: different buffer sizes may result in noticable -@@ -306,7 +310,7 @@ main(int argc, char *argv[]) +@@ -306,7 +306,7 @@ main(int argc, char *argv[]) FILE *missingfile; DIR *dirp; struct dirent *dp; @@ -54,7 +52,7 @@ Index: bsdsfv/bsdsfv.c int cnt; int dothisone; char cfname[FNAMELEN]; -@@ -487,8 +491,8 @@ main(int argc, char *argv[]) +@@ -487,8 +487,8 @@ main(int argc, char *argv[]) printf("Adding file: %s ... ", cfname); fflush(stdout); mycrc = GetFileCRC(cfname); @@ -65,7 +63,7 @@ Index: bsdsfv/bsdsfv.c // uncomment next 2 lines to // convert filename to upper case, for whatever reason -@@ -516,7 +520,7 @@ main(int argc, char *argv[]) +@@ -516,7 +516,7 @@ main(int argc, char *argv[]) printf("Testing %s ... ", cfname); fflush(stdout); mycrc = GetFileCRC(cfname); @@ -74,7 +72,7 @@ Index: bsdsfv/bsdsfv.c fflush(stdout); sfvfile = fopen(sfvname, "rt"); -@@ -675,7 +679,7 @@ main(int argc, char *argv[]) +@@ -675,7 +675,7 @@ main(int argc, char *argv[]) mycrc = GetFileCRC(dp->d_name); |