pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/mbedtls



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Jun  2 15:07:59 UTC 2020

Modified Files:
        pkgsrc/security/mbedtls: distinfo
Added Files:
        pkgsrc/security/mbedtls/patches: patch-programs_aes_aescrypt2.c
            patch-programs_aes_crypt__and__hash.c

Log Message:
mbedtls: attempt to fix build on SunOS


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/mbedtls/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c \
    pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/mbedtls/distinfo
diff -u pkgsrc/security/mbedtls/distinfo:1.9 pkgsrc/security/mbedtls/distinfo:1.10
--- pkgsrc/security/mbedtls/distinfo:1.9        Sat Apr 18 14:21:56 2020
+++ pkgsrc/security/mbedtls/distinfo    Tue Jun  2 15:07:59 2020
@@ -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

Added files:

Index: pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c
diff -u /dev/null pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c:1.1
--- /dev/null   Tue Jun  2 15:07:59 2020
+++ pkgsrc/security/mbedtls/patches/patch-programs_aes_aescrypt2.c      Tue Jun  2 15:07:59 2020
@@ -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"
Index: pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c
diff -u /dev/null pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c:1.1
--- /dev/null   Tue Jun  2 15:07:59 2020
+++ pkgsrc/security/mbedtls/patches/patch-programs_aes_crypt__and__hash.c       Tue Jun  2 15:07:59 2020
@@ -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