[Bug 247940] Introduce gssapi=.. in DEFAULT_VERSIONS like for ssl=...

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Apr 2024 15:54:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247940

--- Comment #26 from Michael Osipov <michaelo@FreeBSD.org> ---
There is a problem with the patch. mail/dovecot was likely a bad example
neither after not before the match "make debug-krb" work.

I have also patched ftp/curl and I see:
root@deblndw011x:/var/poudriere/ports/default-head/ftp/curl (main *%=)
# make debug-krb
make: "/var/poudriere/ports/default-head/Mk/Uses/gssapi.mk" line 110: Unknown
directive "GSSAPI"
make: "/var/poudriere/ports/default-head/Mk/Uses/gssapi.mk" line 153: Unknown
directive "GSSAPI"
make: "/var/poudriere/ports/default-head/Mk/Uses/gssapi.mk" line 160: Unknown
directive "GSSAPI"
make: Fatal errors encountered -- cannot continue
make: stopped in /var/poudriere/ports/default-head/ftp/curl

after removing the dangling GSSAPI_PROVIDER I am able to call (gssapi=mit):
root@deblndw011x:/var/poudriere/ports/default-head/ftp/curl (main *%=)
# make debug-krb
cc -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -o /tmp/debug-krb.x -I"/usr/local/include"  -lkrb5
-lgssapi_krb5 -L"/usr/local/lib" -Wl,-rpath,/usr/local/lib  /tmp/debug-krb.c &&
 ldd /tmp/debug-krb.x;  /bin/rm -f /tmp/debug-krb.x
/tmp/debug-krb.x:
        libkrb5.so.3.3 => /usr/local/lib/libkrb5.so.3.3 (0x3071b77d5000)
        libgssapi_krb5.so.2.2 => /usr/local/lib/libgssapi_krb5.so.2.2
(0x3071b7d90000)
        libc.so.7 => /lib/libc.so.7 (0x3071b92fb000)
        libk5crypto.so.3.1 => /usr/local/lib/libk5crypto.so.3.1
(0x3071b8057000)
        libcom_err.so.3.0 => /usr/local/lib/libcom_err.so.3.0 (0x3071b8465000)
        libkrb5support.so.0.1 => /usr/local/lib/libkrb5support.so.0.1
(0x3071ba5bb000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x3071bb43d000)
        [vdso] (0x7ffffffff000)
PREFIX: /usr/local
GSSAPIBASEDIR: /usr/local
GSSAPIINCDIR: /usr/local/include
GSSAPILIBDIR: /usr/local/lib
GSSAPILIBS: -lkrb5 -lgssapi_krb5
GSSAPICPPFLAGS: -I/usr/local/include
GSSAPILDFLAGS: -L/usr/local/lib
GSSAPI_PROJECT: mit
GSSAPI_PROVIDER: mit
GSSAPI_CONFIGURE_ARGS: CFLAGS=-I/usr/local/include -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  
LDFLAGS=-L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/lib
-fstack-protector-strong   LIBS=-lkrb5 -lgssapi_krb5 -lkrb5 -lgssapi_krb5
-L/usr/local/lib  KRB5CONFIG=/usr/local/bin/krb5-config
KRB5CONFIG: /usr/local/bin/krb5-config
CFLAGS: -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing
LDFLAGS:  -L/usr/local/lib -L/usr/lib -L/usr/lib -fstack-protector-strong
LDADD:

Please double check

-- 
You are receiving this mail because:
You are on the CC list for the bug.