summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-08-05 14:50:29 +0000
committerhe <he@pkgsrc.org>2022-08-05 14:50:29 +0000
commitf023c0b7b4a2402cf5a65a7bae485377a34ae2be (patch)
treec13fde01edcaa746acc40b3305aa7bf7656227cd /net
parentd972fbd7a3bf1e8bc404d03ef988095634d2848d (diff)
downloadpkgsrc-f023c0b7b4a2402cf5a65a7bae485377a34ae2be.tar.gz
net/libnipper: make dependence on signed chars explicit.
This allows this package to build on NetBSD/powerpc. On signed-char platforms this should not cause any code change, so no revision bump.
Diffstat (limited to 'net')
-rw-r--r--net/libnipper/distinfo3
-rw-r--r--net/libnipper/patches/patch-device_crypto_crypt-base64.cpp16
2 files changed, 18 insertions, 1 deletions
diff --git a/net/libnipper/distinfo b/net/libnipper/distinfo
index bfd4dcf0a43..f737a178159 100644
--- a/net/libnipper/distinfo
+++ b/net/libnipper/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 11:05:55 nia Exp $
+$NetBSD: distinfo,v 1.9 2022/08/05 14:50:29 he Exp $
BLAKE2s (libnipper-0.12.1.tgz) = 404ebb10447d4fcc1b924fcba281879a15d32b30e83a4bab32bf389c1618521d
SHA512 (libnipper-0.12.1.tgz) = ba1c53c6c90781e8fb200129e7dabe07a6e8245c24b07dc801e7a81fbe22c03b17241eea09d1a376484c71491af99a17f5a9739ab0f308a5ef8bc9383804d17e
@@ -6,4 +6,5 @@ Size (libnipper-0.12.1.tgz) = 450651 bytes
SHA1 (patch-aa) = c4d245196cd901b9f11826bd163df701e1b447a2
SHA1 (patch-ab) = 02fe2e79e77a4da0513091610726d1aa655f7637
SHA1 (patch-device_common_misc.cpp) = cb1b3947fdeb1c962b786f1345b430a7f2fcbbef
+SHA1 (patch-device_crypto_crypt-base64.cpp) = 29e2895c740313dd1aba349f745b045419fe7a42
SHA1 (patch-report_report-text.cpp) = e686920acc8fa665eb65e69977421e7d50b459df
diff --git a/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp b/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp
new file mode 100644
index 00000000000..0de489f932d
--- /dev/null
+++ b/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-device_crypto_crypt-base64.cpp,v 1.1 2022/08/05 14:50:29 he Exp $
+
+Make dependence on signed chars explicit, to allow build
+on NetBSD/powerpc where chars are unsigned unless qualified.
+
+--- device/crypto/crypto-base64.cpp.orig 2008-09-05 20:01:47.000000000 +0000
++++ device/crypto/crypto-base64.cpp
+@@ -36,7 +36,7 @@
+
+ // See RFC3548 for details of Base64 Encode / Decode standards
+
+-static const char base64string[] = {62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
++static const signed char base64string[] = {62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
+
+
+ // Base64 character check