summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-09-25 00:29:08 +0000
committerMike Frysinger <vapier@gentoo.org>2008-09-25 00:29:08 +0000
commitfccb135d115baae40f26f89edebb12f7535ef35a (patch)
tree3b1c8e2e5b159296d093e466f5f9fa47b538a706 /app-arch/zip/files/zip-3.0-no-crypt.patch
parentMake sure we pull in latest autoconf-wrapper #238368 by Josef Reidinger. (diff)
downloadhistorical-fccb135d115baae40f26f89edebb12f7535ef35a.tar.gz
historical-fccb135d115baae40f26f89edebb12f7535ef35a.tar.bz2
historical-fccb135d115baae40f26f89edebb12f7535ef35a.zip
Fix building with USE=-crypt #238398 by Nils Larsson.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.2 x86_64
Diffstat (limited to 'app-arch/zip/files/zip-3.0-no-crypt.patch')
-rw-r--r--app-arch/zip/files/zip-3.0-no-crypt.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/app-arch/zip/files/zip-3.0-no-crypt.patch b/app-arch/zip/files/zip-3.0-no-crypt.patch
new file mode 100644
index 000000000000..2858b51ec2c9
--- /dev/null
+++ b/app-arch/zip/files/zip-3.0-no-crypt.patch
@@ -0,0 +1,57 @@
+fix building when NO_CRYPT is used
+
+forward ported from zip-2.32
+
+http://bugs.gentoo.org/238398
+
+--- zip.c
++++ zip.c
+@@ -3452,6 +3452,9 @@ char **argv; /* command line tokens */
+
+ /* Key not yet specified. If needed, get/verify it now. */
+ if (key_needed) {
++#if !CRYPT
++ ZIPERR(ZE_PARMS, "encryption not supported");
++#else /* CRYPT */
+ if ((key = malloc(IZ_PWLEN+1)) == NULL) {
+ ZIPERR(ZE_MEM, "was getting encryption password");
+ }
+@@ -3478,6 +3481,7 @@ char **argv; /* command line tokens */
+ if (r) {
+ ZIPERR(ZE_PARMS, "password verification failed");
+ }
++#endif
+ }
+ if (key) {
+ /* if -P "" could get here */
+--- zipcloak.c
++++ zipcloak.c
+@@ -744,6 +744,28 @@ struct option_struct far options[] = {
+
+ int main OF((void));
+
++void zipmessage_nl(a, nl)
++ZCONST char *a;
++int nl;
++{
++}
++
++void zipmessage(a, b)
++ZCONST char *a, *b;
++{
++}
++
++int set_filetype(out_path)
++ char *out_path;
++{
++}
++
++int rename_split(temp_name, out_path)
++ char *temp_name;
++ char *out_path;
++{
++}
++
+ void zipwarn(msg1, msg2)
+ ZCONST char *msg1, *msg2;
+ {