commit 3a9a1b70a2aec02ca82af7482cb428a711c967ca
Author: Jan Rękorajski <[email protected]>
Date:   Tue Nov 16 22:07:50 2021 +0100

    - partial fix for building with samba 4.15

 openchange.spec  |  2 ++
 samba-4.15.patch | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
---
diff --git a/openchange.spec b/openchange.spec
index bfd43cf..8c3b083 100644
--- a/openchange.spec
+++ b/openchange.spec
@@ -30,6 +30,7 @@ Patch8:               %{name}-libical.patch
 Patch9:                samba-4.11.patch
 Patch10:       samba-4.12.patch
 Patch11:       %{name}-nanomsg.patch
+Patch12:       samba-4.15.patch
 URL:           https://github.com/openchange
 BuildRequires: QtCore-devel >= 4.3.0
 BuildRequires: QtGui-devel >= 4.3.0
@@ -226,6 +227,7 @@ Wtyczka Nagiosa do sprawdzania usług Exchange/OpenChange.
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
 
 # no switch for verbose mode, enable manually :/
 %{__sed} -i -e 's/^    @\(\$(\(PIDL\|CC\|CXX\|MOC\)\)/ \1/' Makefile
diff --git a/samba-4.15.patch b/samba-4.15.patch
new file mode 100644
index 0000000..219ff14
--- /dev/null
+++ b/samba-4.15.patch
@@ -0,0 +1,41 @@
+--- openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c~     2015-05-16 
17:22:04.000000000 +0200
++++ openchange-openchange-2.3-VULCAN/libmapi/IProfAdmin.c      2021-11-16 
21:59:10.069774286 +0100
+@@ -753,7 +753,7 @@
+ _PUBLIC_ enum MAPISTATUS LoadProfile(struct mapi_context *mapi_ctx, 
+                                    struct mapi_profile *profile)
+ {
+-      enum credentials_use_kerberos use_krb = CRED_AUTO_USE_KERBEROS;
++      enum credentials_use_kerberos use_krb = CRED_USE_KERBEROS_DESIRED;
+ 
+       /* Sanity checks */
+       OPENCHANGE_RETVAL_IF(!mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
+@@ -777,9 +777,9 @@
+        * another API in the profile */
+       if (profile->kerberos) {
+               if (!strncmp(profile->kerberos, "yes", 3)) {
+-                      use_krb = CRED_MUST_USE_KERBEROS;
++                      use_krb = CRED_USE_KERBEROS_REQUIRED;
+               } else {
+-                      use_krb = CRED_DONT_USE_KERBEROS;
++                      use_krb = CRED_USE_KERBEROS_DISABLED;
+               }
+       }
+       /* additionally, don't set the username in the ccache if kerberos
+@@ -787,14 +787,14 @@
+        * credentials.  cli_credentials_guess probably gets the right
+        * thing anyway in the situations where kerberos is in use */
+       if (profile->username && *(profile->username)
+-          && use_krb != CRED_MUST_USE_KERBEROS) {
++          && use_krb != CRED_USE_KERBEROS_REQUIRED) {
+               cli_credentials_set_username(profile->credentials, 
profile->username, CRED_SPECIFIED);
+       }
+       if (profile->password && *(profile->password)) {
+               cli_credentials_set_password(profile->credentials, 
profile->password, CRED_SPECIFIED);
+       }
+-      if (use_krb != CRED_AUTO_USE_KERBEROS) {
+-              cli_credentials_set_kerberos_state(profile->credentials, 
use_krb);
++      if (use_krb != CRED_USE_KERBEROS_DESIRED) {
++              cli_credentials_set_kerberos_state(profile->credentials, 
use_krb, CRED_SPECIFIED);
+       }
+ 
+       return MAPI_E_SUCCESS;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openchange.git/commitdiff/3a9a1b70a2aec02ca82af7482cb428a711c967ca

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to