Re: git: 054a5739b086 - main - security/pecl-krb5: Fix build on FreeBSD 15+
- In reply to: Palle Girgensohn : "git: 054a5739b086 - main - security/pecl-krb5: Fix build on FreeBSD 15+"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Oct 2025 11:45:02 UTC
Hello!
Better solution is allow to build with base mit krb5 if available.
========
diff --git a/security/pecl-krb5/Makefile b/security/pecl-krb5/Makefile
index 3ce381d52f..cb8bcc51e1 100644
--- a/security/pecl-krb5/Makefile
+++ b/security/pecl-krb5/Makefile
@@ -9,8 +9,14 @@ WWW= https://pecl.php.net/package/krb5
LICENSE= BSD3CLAUSE
-USES= php:pecl gssapi:mit
+USES= php:pecl
-CONFIGURE_ARGS= --with-krb5config=${LOCALBASE}/bin/krb5-config
+.if exists(/usr/libdata/pkgconfig/mit-krb5.pc)
+USES+= gssapi:base
+.else
+USES+= gssapi:mit
+.endif
+
+CONFIGURE_ARGS= --with-krb5config=${KRB5CONFIG}
.include <bsd.port.mk>
========
--
Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team
(fluffy@FreeBSD.org, https://t.me/FluffyBSD)
> On среда, окт. 22, 2025 at 12:30 PM, Palle Girgensohn <girgen@FreeBSD.org (mailto:girgen@FreeBSD.org)> wrote:
> The branch main has been updated by girgen:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=054a5739b086a82c2ca4038ddc3cbf33eff82b99
>
> commit 054a5739b086a82c2ca4038ddc3cbf33eff82b99
> Author: Palle Girgensohn <girgen@FreeBSD.org>
> AuthorDate: 2025-10-22 09:28:03 +0000
> Commit: Palle Girgensohn <girgen@FreeBSD.org>
> CommitDate: 2025-10-22 09:29:57 +0000
>
> security/pecl-krb5: Fix build on FreeBSD 15+
>
> The libkrb5support.so was added to the heimdal base in 15, so the
> explicit krb5 dependency didn't work. Use the gssapi USES mechanism
> instead.
> ---
> security/pecl-krb5/Makefile | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/security/pecl-krb5/Makefile b/security/pecl-krb5/Makefile
> index 84ca24082319..3ce381d52f1b 100644
> --- a/security/pecl-krb5/Makefile
> +++ b/security/pecl-krb5/Makefile
> @@ -1,5 +1,6 @@
> PORTNAME= krb5
> PORTVERSION= 1.2.4
> +PORTREVISION= 1
> CATEGORIES= security pear
>
> MAINTAINER= girgen@FreeBSD.org
> @@ -8,9 +9,7 @@ WWW= https://pecl.php.net/package/krb5
>
> LICENSE= BSD3CLAUSE
>
> -LIB_DEPENDS= libkrb5support.so:security/krb5
> -
> -USES= php:pecl
> +USES= php:pecl gssapi:mit
>
> CONFIGURE_ARGS= --with-krb5config=${LOCALBASE}/bin/krb5-config
>
>