Date: Wed, 22 Oct 2025 14:45:02 +0300 From: Dima Panov <fluffy@FreeBSD.org> To: dev-commits-ports-all@FreeBSD.org, ports-committers@FreeBSD.org, dev-commits-ports-main@FreeBSD.org, Palle Girgensohn <girgen@FreeBSD.org> Subject: Re: git: 054a5739b086 - main - security/pecl-krb5: Fix build on FreeBSD 15+ Message-ID: <3b15aaf7-e26f-4e8a-ab5d-4e8d4cfd1d4d@Canary> In-Reply-To: <202510220930.59M9U1eC005569@gitrepo.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 > > [-- Attachment #2 --] <html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> </head> <body style="font-family:Helvetica;color:#000000;font-size:16px;" dir="auto"><div id="CanaryBody"> <div> Hello!</div><div><br></div><div>Better solution is allow to build with base mit krb5 if available. </div><div><br></div><div>========</div><div>diff --git a/security/pecl-krb5/Makefile b/security/pecl-krb5/Makefile<br>index 3ce381d52f..cb8bcc51e1 100644<br>--- a/security/pecl-krb5/Makefile<br>+++ b/security/pecl-krb5/Makefile<br>@@ -9,8 +9,14 @@ WWW= https://pecl.php.net/package/krb5<br><br> LICENSE= BSD3CLAUSE<br><br>-USES= php:pecl gssapi:mit<br>+USES= php:pecl<br><br>-CONFIGURE_ARGS= --with-krb5config=${LOCALBASE}/bin/krb5-config<br>+.if exists(/usr/libdata/pkgconfig/mit-krb5.pc)<br>+USES+= gssapi:base<br>+.else<br>+USES+= gssapi:mit<br>+.endif<br>+<br>+CONFIGURE_ARGS= --with-krb5config=${KRB5CONFIG}<br><br> .include <bsd.port.mk><br></div><div>========</div> <div><br></div> </div> <div id="CanarySig"> <div> <div style="font-family:Helvetica;"><div style="font-family:Helvetica;">--<br><div>Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team</div><div>(fluffy@FreeBSD.org, https://t.me/FluffyBSD)</div></div></div> <div><br></div> </div> </div> <div id="CanaryDropbox"> </div> <blockquote id="CanaryBlockquote"> <div> <div>On среда, окт. 22, 2025 at 12:30 PM, Palle Girgensohn <<a href="mailto:girgen@FreeBSD.org">girgen@FreeBSD.org</a>> wrote:<br></div> <div>The branch main has been updated by girgen: <br> <br>URL: https://cgit.FreeBSD.org/ports/commit/?id=054a5739b086a82c2ca4038ddc3cbf33eff82b99 <br> <br>commit 054a5739b086a82c2ca4038ddc3cbf33eff82b99 <br>Author: Palle Girgensohn <girgen@FreeBSD.org> <br>AuthorDate: 2025-10-22 09:28:03 +0000 <br>Commit: Palle Girgensohn <girgen@FreeBSD.org> <br>CommitDate: 2025-10-22 09:29:57 +0000 <br> <br> security/pecl-krb5: Fix build on FreeBSD 15+ <br> <br> The libkrb5support.so was added to the heimdal base in 15, so the <br> explicit krb5 dependency didn't work. Use the gssapi USES mechanism <br> instead. <br>--- <br> security/pecl-krb5/Makefile | 5 ++--- <br> 1 file changed, 2 insertions(+), 3 deletions(-) <br> <br>diff --git a/security/pecl-krb5/Makefile b/security/pecl-krb5/Makefile <br>index 84ca24082319..3ce381d52f1b 100644 <br>--- a/security/pecl-krb5/Makefile <br>+++ b/security/pecl-krb5/Makefile <br>@@ -1,5 +1,6 @@ <br> PORTNAME= krb5 <br> PORTVERSION= 1.2.4 <br>+PORTREVISION= 1 <br> CATEGORIES= security pear <br> <br> MAINTAINER= girgen@FreeBSD.org <br>@@ -8,9 +9,7 @@ WWW= https://pecl.php.net/package/krb5 <br> <br> LICENSE= BSD3CLAUSE <br> <br>-LIB_DEPENDS= libkrb5support.so:security/krb5 <br>- <br>-USES= php:pecl <br>+USES= php:pecl gssapi:mit <br> <br> CONFIGURE_ARGS= --with-krb5config=${LOCALBASE}/bin/krb5-config <br> <br> <br></div> </div> </blockquote> </body></html>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3b15aaf7-e26f-4e8a-ab5d-4e8d4cfd1d4d>
