pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-kerberos Fix build with Heimdal and unrest...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b78dc7c366b
branches:  trunk
changeset: 770871:2b78dc7c366b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Dec 10 22:42:35 2021 +0000

description:
Fix build with Heimdal and unrestrict again.

diffstat:

 security/py-kerberos/Makefile                          |   6 ++--
 security/py-kerberos/distinfo                          |  10 +++---
 security/py-kerberos/patches/patch-src_kerberosbasic.h |  10 ++++--
 security/py-kerberos/patches/patch-src_kerberosgss.c   |  27 ++++++++++++++++--
 security/py-kerberos/patches/patch-src_kerberosgss.h   |  10 ++++--
 security/py-kerberos/patches/patch-src_kerberospw.h    |  10 ++++--
 6 files changed, 53 insertions(+), 20 deletions(-)

diffs (164 lines):

diff -r 778a739d558f -r 2b78dc7c366b security/py-kerberos/Makefile
--- a/security/py-kerberos/Makefile     Fri Dec 10 19:00:35 2021 +0000
+++ b/security/py-kerberos/Makefile     Fri Dec 10 22:42:35 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2021/10/21 07:46:38 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2021/12/10 22:42:35 joerg Exp $
 
 DISTNAME=      kerberos-1.3.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -11,8 +11,8 @@
 COMMENT=       Python Kerberos implementation
 LICENSE=       apache-2.0
 
-# uses krb5_free_keytab_entry_contents, which only mit-krb5 provides
-KRB5_ACCEPTED= mit-krb5
+# When updating, try to build with the following:
+#CFLAGS+=      -Werror=implicit-function-declaration
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/krb5.buildlink3.mk"
diff -r 778a739d558f -r 2b78dc7c366b security/py-kerberos/distinfo
--- a/security/py-kerberos/distinfo     Fri Dec 10 19:00:35 2021 +0000
+++ b/security/py-kerberos/distinfo     Fri Dec 10 22:42:35 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 11:17:46 nia Exp $
+$NetBSD: distinfo,v 1.8 2021/12/10 22:42:35 joerg Exp $
 
 BLAKE2s (kerberos-1.3.1.tar.gz) = 87120c28fc13c67a6b30623755f18c459cb1ccf0faf57284ef8cc99ed5374cc2
 SHA512 (kerberos-1.3.1.tar.gz) = 63608c6ee94bcade567de19bea5e139039b336e181a319184666a0d1a11b1b6cd10cebf7bab52adc67502788c1632ff36a2534de37b4d01a5a32d9003aa74c6e
 Size (kerberos-1.3.1.tar.gz) = 19126 bytes
 SHA1 (patch-setup.py) = a9dbfbba526c9c82f2c3180e3469fc5040362ffe
-SHA1 (patch-src_kerberosbasic.h) = 7afb1da96ef6ecfcfa619ad8e6235e81d1cf87e9
-SHA1 (patch-src_kerberosgss.c) = 8207233909e0342da5f9440184621ac1f5b7476d
-SHA1 (patch-src_kerberosgss.h) = e142a4bfc60e7cf0b944f1df461c806b14dbfb15
-SHA1 (patch-src_kerberospw.h) = fc856dc69a0fd9b0bcba4fd29dacf731de3be308
+SHA1 (patch-src_kerberosbasic.h) = 4a8dea49295958709d8db9b272bb65f4a99baad1
+SHA1 (patch-src_kerberosgss.c) = e2e41001a1ef7a50a23aac7884a1985a1794a9eb
+SHA1 (patch-src_kerberosgss.h) = bedf261df0906057b692ad2265fbdc2b488b7932
+SHA1 (patch-src_kerberospw.h) = 6d2ac5d9ab2970427a0906a68e557057779d5d0c
diff -r 778a739d558f -r 2b78dc7c366b security/py-kerberos/patches/patch-src_kerberosbasic.h
--- a/security/py-kerberos/patches/patch-src_kerberosbasic.h    Fri Dec 10 19:00:35 2021 +0000
+++ b/security/py-kerberos/patches/patch-src_kerberosbasic.h    Fri Dec 10 22:42:35 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_kerberosbasic.h,v 1.1 2016/06/09 02:06:18 markd Exp $
+$NetBSD: patch-src_kerberosbasic.h,v 1.2 2021/12/10 22:42:35 joerg Exp $
 
 Support heimdal
 
---- src/kerberosbasic.h.orig   2016-01-25 17:51:33.000000000 +0000
+--- src/kerberosbasic.h.orig   2021-01-07 23:03:04.000000000 +0000
 +++ src/kerberosbasic.h
-@@ -14,9 +14,15 @@
+@@ -14,11 +14,19 @@
   * limitations under the License.
   **/
  
@@ -18,5 +18,9 @@
  #include <gssapi/gssapi_krb5.h>
 +#endif
  
++#ifndef HEIMDAL
  #define krb5_get_err_text(context,code) error_message(code)
++#endif
  
+ int authenticate_user_krb5pwd(
+     const char *user, const char *pswd, const char *service,
diff -r 778a739d558f -r 2b78dc7c366b security/py-kerberos/patches/patch-src_kerberosgss.c
--- a/security/py-kerberos/patches/patch-src_kerberosgss.c      Fri Dec 10 19:00:35 2021 +0000
+++ b/security/py-kerberos/patches/patch-src_kerberosgss.c      Fri Dec 10 22:42:35 2021 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-src_kerberosgss.c,v 1.1 2016/06/09 02:06:18 markd Exp $
+$NetBSD: patch-src_kerberosgss.c,v 1.2 2021/12/10 22:42:35 joerg Exp $
 
 Support heimdal
 
---- src/kerberosgss.c.orig     2016-01-25 17:51:33.000000000 +0000
+--- src/kerberosgss.c.orig     2021-01-07 23:03:04.000000000 +0000
 +++ src/kerberosgss.c
 @@ -43,7 +43,7 @@ char* server_principal_details(const cha
      int code;
@@ -31,7 +31,28 @@
      }
      
      while ((code = krb5_kt_next_entry(kcontext, kt, &entry, &cursor)) == 0) {
-@@ -115,9 +115,8 @@ char* server_principal_details(const cha
+@@ -99,12 +99,20 @@ char* server_principal_details(const cha
+             }
+             strcpy(result, pname);
+             krb5_free_unparsed_name(kcontext, pname);
++#ifdef HEIMDAL
++            krb5_kt_free_entry(kcontext, &entry);
++#else
+             krb5_free_keytab_entry_contents(kcontext, &entry);
++#endif
+             break;
+         }
+         
+         krb5_free_unparsed_name(kcontext, pname);
++#ifdef HEIMDAL
++        krb5_kt_free_entry(kcontext, &entry);
++#else
+         krb5_free_keytab_entry_contents(kcontext, &entry);
++#endif
+     }
+     
+     if (result == NULL) {
+@@ -115,9 +123,8 @@ char* server_principal_details(const cha
      }
      
  end:
diff -r 778a739d558f -r 2b78dc7c366b security/py-kerberos/patches/patch-src_kerberosgss.h
--- a/security/py-kerberos/patches/patch-src_kerberosgss.h      Fri Dec 10 19:00:35 2021 +0000
+++ b/security/py-kerberos/patches/patch-src_kerberosgss.h      Fri Dec 10 22:42:35 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_kerberosgss.h,v 1.1 2016/06/09 02:06:18 markd Exp $
+$NetBSD: patch-src_kerberosgss.h,v 1.2 2021/12/10 22:42:35 joerg Exp $
 
 Support heimdal
 
---- src/kerberosgss.h.orig     2016-01-25 17:51:33.000000000 +0000
+--- src/kerberosgss.h.orig     2021-01-07 23:03:04.000000000 +0000
 +++ src/kerberosgss.h
-@@ -14,9 +14,16 @@
+@@ -14,11 +14,20 @@
   * limitations under the License.
   **/
  
@@ -19,5 +19,9 @@
  #include <gssapi/gssapi_krb5.h>
 +#endif
  
++#ifndef HEIMDAL
  #define krb5_get_err_text(context,code) error_message(code)
++#endif
  
+ #define AUTH_GSS_ERROR      -1
+ #define AUTH_GSS_COMPLETE    1
diff -r 778a739d558f -r 2b78dc7c366b security/py-kerberos/patches/patch-src_kerberospw.h
--- a/security/py-kerberos/patches/patch-src_kerberospw.h       Fri Dec 10 19:00:35 2021 +0000
+++ b/security/py-kerberos/patches/patch-src_kerberospw.h       Fri Dec 10 22:42:35 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_kerberospw.h,v 1.1 2016/06/09 02:06:18 markd Exp $
+$NetBSD: patch-src_kerberospw.h,v 1.2 2021/12/10 22:42:35 joerg Exp $
 
 Support heimdal
 
---- src/kerberospw.h.orig      2015-03-26 21:53:18.000000000 +0000
+--- src/kerberospw.h.orig      2021-01-07 23:03:04.000000000 +0000
 +++ src/kerberospw.h
-@@ -15,9 +15,15 @@
+@@ -15,11 +15,19 @@
   *
   **/
  
@@ -18,5 +18,9 @@
  #include <gssapi/gssapi_krb5.h>
 +#endif
  
++#ifndef HEIMDAL
  #define krb5_get_err_text(context,code) error_message(code)
++#endif
  
+ int change_user_krb5pwd(
+     const char *user, const char* oldpswd, const char *newpswd



Home | Main Index | Thread Index | Old Index