commit ce2735c

hovercats  ·  2024-02-22 17:02:18 +0000 UTC
parent 646df8b
zip: import. needed for yt-dlp
9 files changed,  +95, -0
+15, -0
 1@@ -0,0 +1,15 @@
 2+#!/bin/sh -e
 3+
 4+for p in *.patch; do
 5+    patch -p1 < "$p"
 6+done
 7+
 8+make \
 9+    prefix=/ \
10+    CC="$CC -static $LDFLAGS $CFLAGS $CXXFLAGS" \
11+    -f unix/Makefile generic
12+
13+make \
14+    prefix="$1/" \
15+    MANDIR="$1/share/man/man1" \
16+    -f unix/Makefile install
+5, -0
1@@ -0,0 +1,5 @@
2+c622bb4295213bc6d94e42a6da58d8bdb32fc6d8f7f37aa078238c31b05c9d9176
3+7c6b1596061daff3d5b0d2b1b2a7d3f133b9912f99f88d1f732d5d1d1ce0b21566
4+2ff1a790bfbe5c70e375ab04a5e2005684cba7c8ce689b419ad4e5a3b882aebfec
5+c0172d5b8405edd064e03d4f6f313215bb3097274ac9dbbb3415f96c633aec02a9
6+a7cf9503e06edcf9e16597345bffd6c9b697fa5c47430653ab756fb5a4c44f7e69
+1, -0
1@@ -0,0 +1 @@
2+#bzip2
+12, -0
 1@@ -0,0 +1,12 @@
 2+diff -up zip30/util.c.currdir zip30/util.c
 3+--- zip30/util.c.currdir	2009-11-16 12:42:17.783961701 +0100
 4++++ zip30/util.c	2009-11-16 12:42:58.185960707 +0100
 5+@@ -493,6 +493,8 @@ int cs;                 /* force case-se
 6+ /* Compare the sh pattern p with the string s and return true if they match,
 7+    false if they don't or if there is a syntax error in the pattern. */
 8+ {
 9++  while (s[0] == '.' && s[1] == '/') 
10++    s += 2;                /* strip redundant leading "./" sections */
11+   return recmatch(p, s, cs) == 1;
12+ }
13+ 
+20, -0
 1@@ -0,0 +1,20 @@
 2+diff -up zip30/crc_i386.S.exec_shield zip30/crc_i386.S
 3+--- zip30/crc_i386.S.exec_shield	2009-11-13 18:37:45.000000000 +0100
 4++++ zip30/crc_i386.S	2009-11-13 18:39:54.435390166 +0100
 5+@@ -302,3 +302,6 @@ _crc32:                         /* ulg c
 6+ #endif /* i386 || _i386 || _I386 || __i386 */
 7+ 
 8+ #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */
 9++
10++.section .note.GNU-stack, "", @progbits
11++.previous
12+diff -up zip30/match.S.exec_shield zip30/match.S
13+--- zip30/match.S.exec_shield	2005-01-28 10:40:14.000000000 +0100
14++++ zip30/match.S	2009-11-13 18:39:48.570389058 +0100
15+@@ -405,3 +405,6 @@ L__return:
16+ #endif /* i386 || _I386 || _i386 || __i386  */
17+ 
18+ #endif /* !USE_ZLIB */
19++
20++.section .note.GNU-stack, "", @progbits
21++.previous
+20, -0
 1@@ -0,0 +1,20 @@
 2+--- a/zip.c	
 3++++ a/zip.c	
 4+@@ -1028,7 +1028,7 @@ local void help_extended()
 5+ 
 6+   for (i = 0; i < sizeof(text)/sizeof(char *); i++)
 7+   {
 8+-    printf(text[i]);
 9++    printf("%s", text[i]);
10+     putchar('\n');
11+   }
12+ #ifdef DOS
13+@@ -1225,7 +1225,7 @@ local void version_info()
14+             CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
15+   for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
16+   {
17+-    printf(cryptnote[i]);
18++    printf("%s", cryptnote[i]);
19+     putchar('\n');
20+   }
21+   ++i;  /* crypt support means there IS at least one compilation option */
+16, -0
 1@@ -0,0 +1,16 @@
 2+From: Christian Spieler
 3+Subject: zipnote.c: Close in_file instead of undefined file x
 4+Bug-Debian: http://bugs.debian.org/628594
 5+X-Debian-version: 3.0-4
 6+
 7+--- a/zipnote.c
 8++++ b/zipnote.c
 9+@@ -661,7 +661,7 @@
10+     if ((r = zipcopy(z)) != ZE_OK)
11+       ziperr(r, "was copying an entry");
12+   }
13+-  fclose(x);
14++  fclose(in_file);
15+ 
16+   /* Write central directory and end of central directory with new comments */
17+   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */
+5, -0
1@@ -0,0 +1,5 @@
2+https://downloads.sourceforge.net/infozip/zip30.tar.gz
3+patches/zip-3.0-currdir.patch
4+patches/zip-3.0-exec-shield.patch
5+patches/zip-3.0-format-security.patch
6+patches/zipnote.patch
+1, -0
1@@ -0,0 +1 @@
2+3.0 2