Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/mbedtls mbedtls: attempt to fix build on SunOS
details: https://anonhg.NetBSD.org/pkgsrc/rev/94c3402e4527
branches: trunk
changeset: 433468:94c3402e4527
user: nia <nia%pkgsrc.org@localhost>
date: Tue Jun 02 15:07:59 2020 +0000
description:
mbedtls: attempt to fix build on SunOS
diffstat:
security/mbedtls/distinfo | 4 +-
security/mbedtls/patches/patch-programs_aes_aescrypt2.c | 16 ++++++++++
security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c | 16 ++++++++++
3 files changed, 35 insertions(+), 1 deletions(-)
diffs (54 lines):
diff -r 3702627129a7 -r 94c3402e4527 security/mbedtls/distinfo
--- a/security/mbedtls/distinfo Tue Jun 02 15:04:27 2020 +0000
+++ b/security/mbedtls/distinfo Tue Jun 02 15:07:59 2020 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.9 2020/04/18 14:21:56 nia Exp $
+$NetBSD: distinfo,v 1.10 2020/06/02 15:07:59 nia Exp $
SHA1 (mbedtls-2.16.6-apache.tgz) = 3cb5b681597a5bd798d31038c129c0dc911d8a2c
RMD160 (mbedtls-2.16.6-apache.tgz) = da5ede944292874afdb24a8fe21c643b34255206
SHA512 (mbedtls-2.16.6-apache.tgz) = a0c48b694d7bc70256d26c44bfb2ac802428560b02e50fe2e47762bc595e2c7b8fac934badb3452acb01d8a54386eafae0ff2894320d24ab7554f1c8e6cb4bcf
Size (mbedtls-2.16.6-apache.tgz) = 2699220 bytes
SHA1 (patch-library_net__sockets.c) = cd8f9cf84947800eb73d004847789626511ceb35
+SHA1 (patch-programs_aes_aescrypt2.c) = 216cc7cb0b5530897ea5ca194128b8928def5f16
+SHA1 (patch-programs_aes_crypt__and__hash.c) = 3c2d72abf89d5e29d434abb6d745c0d086496556
diff -r 3702627129a7 -r 94c3402e4527 security/mbedtls/patches/patch-programs_aes_aescrypt2.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls/patches/patch-programs_aes_aescrypt2.c Tue Jun 02 15:07:59 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-programs_aes_aescrypt2.c,v 1.1 2020/06/02 15:07:59 nia Exp $
+
+Not actually so harmless on SunOS, which requires at least 200112L
+when compiling c99.
+
+--- programs/aes/aescrypt2.c.orig 2020-04-09 13:12:23.000000000 +0000
++++ programs/aes/aescrypt2.c
+@@ -22,7 +22,7 @@
+ /* Enable definition of fileno() even when compiling with -std=c99. Must be
+ * set before config.h, which pulls in glibc's features.h indirectly.
+ * Harmless on other platforms. */
+-#define _POSIX_C_SOURCE 1
++#define _POSIX_C_SOURCE 200112L
+
+ #if !defined(MBEDTLS_CONFIG_FILE)
+ #include "mbedtls/config.h"
diff -r 3702627129a7 -r 94c3402e4527 security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c Tue Jun 02 15:07:59 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-programs_aes_crypt__and__hash.c,v 1.1 2020/06/02 15:07:59 nia Exp $
+
+Not actually so harmless on SunOS, which requires at least 200112L
+when compiling c99.
+
+--- programs/aes/crypt_and_hash.c.orig 2020-04-09 13:12:23.000000000 +0000
++++ programs/aes/crypt_and_hash.c
+@@ -23,7 +23,7 @@
+ /* Enable definition of fileno() even when compiling with -std=c99. Must be
+ * set before config.h, which pulls in glibc's features.h indirectly.
+ * Harmless on other platforms. */
+-#define _POSIX_C_SOURCE 1
++#define _POSIX_C_SOURCE 200112L
+
+ #if !defined(MBEDTLS_CONFIG_FILE)
+ #include "mbedtls/config.h"
Home |
Main Index |
Thread Index |
Old Index