Date: Sun, 14 Sep 2025 21:52:48 -0700 From: Chris Torek <chris.torek@gmail.com> To: Mark Millard <marklmi@yahoo.com> Cc: Dennis Clarke <dclarke@blastwave.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: git is broken because curl is broken which stops me in my tracks Message-ID: <CAPx1Gvem8Jp=pJAyXC6Szv_m=k9yVqWQjP_t2TDdi1MOtwt5RQ@mail.gmail.com> In-Reply-To: <C547C236-5CAC-4366-BDF0-B4C9C786C603@yahoo.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
(libcurl requires a vanished "libkrb5.so.122")
I'm going to snip all the context, but I'll note that I got myself into the
same pickle and solved it by *temporarily* diking GSSAPI support entirely
out of libcurl, building and installing that, then building Git with the
resulting libcurl, then using Git to update the ports tree to pick up the
Mk/Uses/ updates.
To do that, go to /usr/ports/ftp/curl and hack out the GSSAPI selection.
It's probably better to just grab the actual fix from
commit d30d5dfae517a74a4a9e2a22e1cf110594bcb43d, which I've pasted below,
but whitespace will probably be messed-up. (gmail is not very
patch-friendly) That's not how I did it, but probably better...
Chris
commit d30d5dfae517a74a4a9e2a22e1cf110594bcb43d
Author: Lexi Winter <ivy@FreeBSD.org>
Date: Mon Aug 11 13:10:47 2025 +0100
Uses/gssapi.mk: Improve base Kerberos detection
We can't check for /usr/libexec/krb5kdc to determine if base uses
MIT Kerberos, because this is part of the kerberos-kdc package and
might not be installed. Instead, pick a pkgconfig file which is
only installed with MIT: /usr/libdata/pkgconfig/mit-krb5.pc.
Reviewed by: des, cy
Approved by: cy (ports)
Differential Revision: https://reviews.freebsd.org/D51841
diff --git a/Mk/Uses/gssapi.mk b/Mk/Uses/gssapi.mk
index 36fb72326868..b419a8fe27ff 100644
--- a/Mk/Uses/gssapi.mk
+++ b/Mk/Uses/gssapi.mk
@@ -86,7 +86,7 @@ _local:= ${_A}
. if ${SSL_DEFAULT} != base
IGNORE= You are using OpenSSL from ports and have selected GSSAPI
from base, please select another GSSAPI value
. endif
-. if exists(/usr/libexec/krb5kdc)
+. if exists(/usr/libdata/pkgconfig/mit-krb5.pc)
# Base has MIT KRB5 installed
KRB5_HOME?= /usr
GSSAPIBASEDIR= ${KRB5_HOME}
[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div>(libcurl requires a vanished "libkrb5.so.122")</div><div><br></div><div>I'm going to snip all the context, but I'll note that I got myself into the same pickle and solved it by *temporarily* diking GSSAPI support entirely out of libcurl, building and installing that, then building Git with the resulting libcurl, then using Git to update the ports tree to pick up the Mk/Uses/ updates.</div><div><br></div><div>To do that, go to /usr/ports/ftp/curl and hack out the GSSAPI selection.</div><div><br></div><div>It's probably better to just grab the actual fix from commit d30d5dfae517a74a4a9e2a22e1cf110594bcb43d, which I've pasted below, but whitespace will probably be messed-up. (gmail is not very patch-friendly) That's not how I did it, but probably better...</div><div><br></div><div>Chris</div><div><br></div><div>commit d30d5dfae517a74a4a9e2a22e1cf110594bcb43d<br>Author: Lexi Winter <ivy@FreeBSD.org><br>Date: Mon Aug 11 13:10:47 2025 +0100<br><br> Uses/<a href="http://gssapi.mk">gssapi.mk</a>: Improve base Kerberos detection<br> <br> We can't check for /usr/libexec/krb5kdc to determine if base uses<br> MIT Kerberos, because this is part of the kerberos-kdc package and<br> might not be installed. Instead, pick a pkgconfig file which is<br> only installed with MIT: /usr/libdata/pkgconfig/mit-krb5.pc.<br> <br> Reviewed by: des, cy<br> Approved by: cy (ports)<br> Differential Revision: <a href="https://reviews.freebsd.org/D51841">https://reviews.freebsd.org/D51841</a><br><br>diff --git a/Mk/Uses/<a href="http://gssapi.mk">gssapi.mk</a> b/Mk/Uses/<a href="http://gssapi.mk">gssapi.mk</a><br>index 36fb72326868..b419a8fe27ff 100644<br>--- a/Mk/Uses/<a href="http://gssapi.mk">gssapi.mk</a><br>+++ b/Mk/Uses/<a href="http://gssapi.mk">gssapi.mk</a><br>@@ -86,7 +86,7 @@ _local:= ${_A}<br> . if ${SSL_DEFAULT} != base<br> IGNORE= You are using OpenSSL from ports and have selected GSSAPI from base, please select another GSSAPI value<br> . endif<br>-. if exists(/usr/libexec/krb5kdc)<br>+. if exists(/usr/libdata/pkgconfig/mit-krb5.pc)<br> # Base has MIT KRB5 installed<br> KRB5_HOME?= /usr<br> GSSAPIBASEDIR= ${KRB5_HOME}<br><br></div></div></div>
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPx1Gvem8Jp=pJAyXC6Szv_m=k9yVqWQjP_t2TDdi1MOtwt5RQ>
