pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libnipper net/libnipper: make dependence on signed...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ddd590b3e85
branches:  trunk
changeset: 382805:4ddd590b3e85
user:      he <he%pkgsrc.org@localhost>
date:      Fri Aug 05 14:50:29 2022 +0000

description:
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:

 net/libnipper/distinfo                                     |   3 +-
 net/libnipper/patches/patch-device_crypto_crypt-base64.cpp |  16 ++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 1665f4e59367 -r 4ddd590b3e85 net/libnipper/distinfo
--- a/net/libnipper/distinfo    Fri Aug 05 14:34:12 2022 +0000
+++ b/net/libnipper/distinfo    Fri Aug 05 14:50:29 2022 +0000
@@ -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 @@
 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 -r 1665f4e59367 -r 4ddd590b3e85 net/libnipper/patches/patch-device_crypto_crypt-base64.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp        Fri Aug 05 14:50:29 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index