1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

sysutils/gnome-control-center: Unbreak build with base Heimdal Kerberos

This commit is contained in:
Neel Chauhan 2022-03-26 20:32:35 -07:00
parent d5aa89e6df
commit 6ff5aee61e
3 changed files with 27 additions and 2 deletions

View File

@ -8,7 +8,7 @@ MASTER_SITES= GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
DIST_SUBDIR= gnome
MAINTAINER= gnome@FreeBSD.org
COMMENT= Control center for GNOME 3 project
COMMENT= Control center for the GNOME desktop
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING

View File

@ -0,0 +1,25 @@
Fix for Heimdal (versus MIT).
Index: panels/user-accounts/cc-realm-manager.c
--- panels/user-accounts/cc-realm-manager.c.orig
+++ panels/user-accounts/cc-realm-manager.c
@@ -22,7 +22,7 @@
#include "cc-realm-manager.h"
-#include <krb5/krb5.h>
+#include <krb5.h>
#include <glib.h>
#include <glib/gi18n.h>
@@ -637,8 +637,10 @@ login_perform_kinit (krb5_context k5,
code = krb5_get_init_creds_opt_alloc (k5, &opts);
g_return_val_if_fail (code == 0, code);
+#ifdef HAVE_KRB5_GET_INIT_CREDS_OPT_SET_OUT_CCACHE
code = krb5_get_init_creds_opt_set_out_ccache (k5, opts, ccache);
g_return_val_if_fail (code == 0, code);
+#endif
code = krb5_get_init_creds_password (k5, &creds, principal,
(char *)password,

View File

@ -1,3 +1,3 @@
Configuration tools tightly integrated within the GNOME 3 desktop.
Configuration tools tightly integrated within the GNOME desktop.
WWW: https://www.gnome.org/