diff options
author | he <he@pkgsrc.org> | 2022-09-18 22:46:25 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2022-09-18 22:46:25 +0000 |
commit | 0ddcae1ded63bd3b4286d7ab385a3d7e8dd4c985 (patch) | |
tree | 5ca821b4bf13465c3bb01aae57ca1b780df9110d /net/delegate | |
parent | 6592d7bb81b09cdb330f829783e9c468c645e7e5 (diff) | |
download | pkgsrc-0ddcae1ded63bd3b4286d7ab385a3d7e8dd4c985.tar.gz |
net/delegate: fix the build by spreading some unsigned-ness.
Bump PKGREVISION.
Diffstat (limited to 'net/delegate')
-rw-r--r-- | net/delegate/Makefile | 4 | ||||
-rw-r--r-- | net/delegate/distinfo | 4 | ||||
-rw-r--r-- | net/delegate/patches/patch-mimekit_mimehead.c | 25 | ||||
-rw-r--r-- | net/delegate/patches/patch-rary_credhy.c | 64 |
4 files changed, 94 insertions, 3 deletions
diff --git a/net/delegate/Makefile b/net/delegate/Makefile index 0bb03f504e5..e290db9475d 100644 --- a/net/delegate/Makefile +++ b/net/delegate/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.47 2020/05/03 17:22:50 rillig Exp $ +# $NetBSD: Makefile,v 1.48 2022/09/18 22:46:25 he Exp $ DISTNAME= delegate9.9.1 PKGNAME= delegate-9.9.1 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= net MASTER_SITES= http://www.delegate.org/anonftp/DeleGate/ MASTER_SITES+= ftp://ftp.u-aizu.ac.jp/pub/net/DeleGate/delegate.org/ diff --git a/net/delegate/distinfo b/net/delegate/distinfo index e3248e2f900..13f5eb3c82f 100644 --- a/net/delegate/distinfo +++ b/net/delegate/distinfo @@ -1,8 +1,10 @@ -$NetBSD: distinfo,v 1.16 2021/10/26 11:05:30 nia Exp $ +$NetBSD: distinfo,v 1.17 2022/09/18 22:46:25 he Exp $ BLAKE2s (delegate9.9.1.tar.gz) = 5c2691c941b17c4d2fe359ab3b686848249e6e23f6e2480a181f6ea906f5933e SHA512 (delegate9.9.1.tar.gz) = 85e316de1eaef7f1e69ae767c6aba7e58a43dd8f41b508ce8dcb84a381829879f99be87b54440e339d5e0858c6ef87349223364a4d3ec786dba04af7111c87f4 Size (delegate9.9.1.tar.gz) = 1944670 bytes +SHA1 (patch-mimekit_mimehead.c) = 73f63930acd4eabb6854d96cf8792c5c33a09822 +SHA1 (patch-rary_credhy.c) = d4788506a9f177eeb2568091089ccb823813035b SHA1 (patch-rary_pstitle_c) = 3b30e698749b5ed6a9cc197b0ab6a1e013de2673 SHA1 (patch-resolvy_resconf_c) = d090d26542a3197fb48514652f3b421b6282a6cc SHA1 (patch-resolvy_resolv_c) = d903447c60f1c79b7bc596cba9d3c8070298a1e2 diff --git a/net/delegate/patches/patch-mimekit_mimehead.c b/net/delegate/patches/patch-mimekit_mimehead.c new file mode 100644 index 00000000000..dad3784c35f --- /dev/null +++ b/net/delegate/patches/patch-mimekit_mimehead.c @@ -0,0 +1,25 @@ +$NetBSD: patch-mimekit_mimehead.c,v 1.1 2022/09/18 22:46:25 he Exp $ + +Follow up spreading of unsigned-ness. + +--- ./mimekit/mimehead.c.orig 2009-01-13 02:14:09.000000000 +0000 ++++ ./mimekit/mimehead.c +@@ -879,7 +879,7 @@ int MIME_headerEncodeX(MimeConv *Mcv,FIL + static void DE_FPUTC1X(CHARx *CH,INOUT *Out) + { FILE *out; + int cset; +- int ch; ++ unsigned int ch; + + out = Out->out_file; + ch = CH->c_ch; +@@ -914,7 +914,8 @@ static void DE_FPUTC1(int ch,INOUT *io) + } + + static void dumpDECODER(CHARx *CH,INOUT *io) +-{ int i,ch; ++{ int i; ++ unsigned int ch; + CStr(sym,16); + + switch( ch = CH->c_ch ){ diff --git a/net/delegate/patches/patch-rary_credhy.c b/net/delegate/patches/patch-rary_credhy.c new file mode 100644 index 00000000000..b6c9f874ac3 --- /dev/null +++ b/net/delegate/patches/patch-rary_credhy.c @@ -0,0 +1,64 @@ +$NetBSD: patch-rary_credhy.c,v 1.1 2022/09/18 22:46:25 he Exp $ + +Fix build by spreading some "unsigned"ness. + +--- ./rary/credhy.c.orig 2008-11-14 01:12:53.000000000 +0000 ++++ ./rary/credhy.c +@@ -103,10 +103,10 @@ static int DH_Px; + * 2^255+1351 ... a prime number in 256 bits + * http://www.utm.edu/research/primes/lists/2small/200bit.html + */ +-static int Pt[] = { ++static unsigned int Pt[] = { + 103078511 + }; +-static int P0[] = { ++static unsigned int P0[] = { + 0x80000000,0x00000000,0x00000000,0x00000000, + 0x00000000,0x00000000,0x00000000,0x00000547 + }; +@@ -115,7 +115,7 @@ static int P0[] = { + * From RFC2409(IKE), RFC2539(DNSsec) + * 2^768 - 2^704 - 1 + 2^64 * { [2^638 pi] + 149686 } + */ +-static int P1[] = { ++static unsigned int P1[] = { + 0xFFFFFFFF,0xFFFFFFFF,0xC90FDAA2,0x2168C234, + 0xC4C6628B,0x80DC1CD1,0x29024E08,0x8A67CC74, + 0x020BBEA6,0x3B139B22,0x514A0879,0x8E3404DD, +@@ -128,7 +128,7 @@ static int P1[] = { + * From RFC2409, RFC2539 + * 2^1024 - 2^960 - 1 + 2^64 * { [2-894 pi] + 129093 } + */ +-static int P2[32] = { ++static unsigned int P2[32] = { + 0xFFFFFFFF,0xFFFFFFFF,0xC90FDAA2,0x2168C234, + 0xC4C6628B,0x80DC1CD1,0x29024E08,0x8A67CC74, + 0x020BBEA6,0x3B139B22,0x514A0879,0x8E3404DD, +@@ -142,7 +142,7 @@ static int P2[32] = { + /* + * From RFC3526 + */ +-static int P3[] ={ ++static unsigned int P3[] ={ + 0xFFFFFFFF,0xFFFFFFFF,0xC90FDAA2,0x2168C234, + 0xC4C6628B,0x80DC1CD1,0x29024E08,0x8A67CC74, + 0x020BBEA6,0x3B139B22,0x514A0879,0x8E3404DD, +@@ -159,7 +159,7 @@ static int P3[] ={ + + static struct { + int p_size; +- int *p_int; ++ unsigned int *p_int; + } PX[] = { + { sizeof(P0), P0 }, + { sizeof(P1), P1 }, +@@ -169,7 +169,7 @@ static struct { + }; + void DH_init(int grp){ + int i,k,s; +- int *p; ++ unsigned int *p; + + if( DH_G[LSI] == 2 ) + return; |