pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/mit-krb5 mit-krb5: mmap -Werror=incompatible-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/05aa3ebd2fbc
branches:  trunk
changeset: 310470:05aa3ebd2fbc
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Jul 16 10:26:40 2018 +0000

description:
mit-krb5: mmap -Werror=incompatible-pointer-types fixes.

diffstat:

 security/mit-krb5/distinfo                         |   4 ++-
 security/mit-krb5/patches/patch-lib_kdb_kdb__log.c |  27 ++++++++++++++++++++++
 security/mit-krb5/patches/patch-slave_kproplog.c   |  15 ++++++++++++
 3 files changed, 45 insertions(+), 1 deletions(-)

diffs (73 lines):

diff -r 3a9dafe028c0 -r 05aa3ebd2fbc security/mit-krb5/distinfo
--- a/security/mit-krb5/distinfo        Mon Jul 16 07:57:38 2018 +0000
+++ b/security/mit-krb5/distinfo        Mon Jul 16 10:26:40 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.64 2018/06/15 20:46:01 tez Exp $
+$NetBSD: distinfo,v 1.65 2018/07/16 10:26:40 jperkin Exp $
 
 SHA1 (krb5-1.16.1.tar.gz) = 8353f2d900a7d52499c7c2605d5e295f71dd5e67
 RMD160 (krb5-1.16.1.tar.gz) = 26a423032841a67974d377ad65d7361b51aa7058
@@ -21,11 +21,13 @@
 SHA1 (patch-kadmin_cli_ss_wrapper.c) = e32e6180f8d508cb2eb18489ce2fef0a1ad0f51d
 SHA1 (patch-lib_apputils_Makefile.in) = 085004041a2bb8c4bb3074c2e71e71f22f4f06d7
 SHA1 (patch-lib_apputils_udppktinfo.c) = 47ac861181faebfe5f95c28be329ce917ece872c
+SHA1 (patch-lib_kdb_kdb__log.c) = 87052d7940db0f5a41ffce250c19c0b338b37d60
 SHA1 (patch-lib_krb5_asn.1_asn1buf.h) = 74d7d172ec4c8d7f68a093befc6b40c99b119e37
 SHA1 (patch-lib_krb5_ccache_Makefile.in) = 330ae21ec3b290ae16478c2c49a138acac5bf2fd
 SHA1 (patch-plugins_kdb_db2_Makefile.in) = f374fc5915b735075fbb751ef736f4ce54abc289
 SHA1 (patch-plugins_kdb_db2_libdb2_Makefile.in) = b4b7e8e4192b5e5318f1e42c49315789619f3ae9
 SHA1 (patch-plugins_preauth_otp_Makefile.in) = 8c779e3b37cab4138f300f4a09325387092c79f8
 SHA1 (patch-plugins_preauth_pkinit_Makefile.in) = c778366d5bd1cae85424643a582013101fc9632d
+SHA1 (patch-slave_kproplog.c) = a238c8740aeb5e4068775148f03a8692bd514423
 SHA1 (patch-util_k5ev_verto-k5ev.c) = 8f074ddccbaaa03576f0302437aed3aaad1b738d
 SHA1 (patch-util_ss_Makefile.in) = 5ca0bf7295a8f4c1d8e59097863940f88d224ee7
diff -r 3a9dafe028c0 -r 05aa3ebd2fbc security/mit-krb5/patches/patch-lib_kdb_kdb__log.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mit-krb5/patches/patch-lib_kdb_kdb__log.c        Mon Jul 16 10:26:40 2018 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-lib_kdb_kdb__log.c,v 1.1 2018/07/16 10:26:40 jperkin Exp $
+
+Fix mmap/munmap -Werror=incompatible-pointer-types
+
+--- lib/kdb/kdb_log.c.orig     2018-05-03 14:34:47.000000000 +0000
++++ lib/kdb/kdb_log.c
+@@ -489,7 +489,7 @@ ulog_map(krb5_context context, const cha
+             return errno;
+     }
+ 
+-    ulog = mmap(0, MAXLOGLEN, PROT_READ | PROT_WRITE, MAP_SHARED, ulogfd, 0);
++    ulog = (kdb_hlog_t *)mmap(0, MAXLOGLEN, PROT_READ | PROT_WRITE, MAP_SHARED, ulogfd, 0);
+     if (ulog == MAP_FAILED) {
+         /* Can't map update log file to memory. */
+         close(ulogfd);
+@@ -681,7 +681,11 @@ ulog_fini(krb5_context context)
+     if (log_ctx == NULL)
+         return;
+     if (log_ctx->ulog != NULL)
++#ifdef __sun
++        munmap((caddr_t)log_ctx->ulog, MAXLOGLEN);
++#else
+         munmap(log_ctx->ulog, MAXLOGLEN);
++#endif
+     free(log_ctx);
+     context->kdblog_context = NULL;
+ }
diff -r 3a9dafe028c0 -r 05aa3ebd2fbc security/mit-krb5/patches/patch-slave_kproplog.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mit-krb5/patches/patch-slave_kproplog.c  Mon Jul 16 10:26:40 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-slave_kproplog.c,v 1.1 2018/07/16 10:26:40 jperkin Exp $
+
+Fix mmap -Werror=incompatible-pointer-types.
+
+--- slave/kproplog.c.orig      2018-05-03 14:34:47.000000000 +0000
++++ slave/kproplog.c
+@@ -429,7 +429,7 @@ map_ulog(const char *filename)
+         return NULL;
+     if (fstat(fd, &st) < 0)
+         return NULL;
+-    ulog = mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
++    ulog = (kdb_hlog_t *)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
+     return (ulog == MAP_FAILED) ? NULL : ulog;
+ }
+ 



Home | Main Index | Thread Index | Old Index