krb5: remove libedit from the bootstrap tools

libedit breaks the bootstrap on MacOS and Linux.

Activate libedit only for the regular build not for the bootstrap
tools

While here fix the definition of the dependency chain between
libkrb5ss and libedit (and libtinfow) via src.libnames.mk

Remove a local patch to find the readline compatible header and
find them via proper CFLAGS.
This commit is contained in:
Baptiste Daroussin
2025-07-29 17:49:44 +02:00
parent 2bc355c018
commit 7b68893ffa
8 changed files with 12 additions and 12 deletions
-2
View File
@@ -2627,8 +2627,6 @@ _kerberos5_bootstrap_tools= \
krb5/util/compile_et \ krb5/util/compile_et \
krb5/util/support \ krb5/util/support \
krb5/util/et \ krb5/util/et \
lib/ncurses/tinfo \
lib/libedit \
krb5/util/ss \ krb5/util/ss \
krb5/util/profile \ krb5/util/profile \
krb5/util/verto krb5/util/verto
-4
View File
@@ -14,9 +14,6 @@
#include <termios.h> #include <termios.h>
#include <sys/param.h> #include <sys/param.h>
#ifdef __FreeBSD__
#include <edit/readline/readline.h>
#else
#if defined(HAVE_LIBEDIT) #if defined(HAVE_LIBEDIT)
#include <editline/readline.h> #include <editline/readline.h>
#elif defined(HAVE_READLINE) #elif defined(HAVE_READLINE)
@@ -25,7 +22,6 @@
#else #else
#define NO_READLINE #define NO_READLINE
#endif #endif
#endif
static ss_data *current_info; static ss_data *current_info;
static jmp_buf listen_jmpb; static jmp_buf listen_jmpb;
+1 -1
View File
@@ -260,7 +260,7 @@
#define HAVE_LIBCRYPTO 1 #define HAVE_LIBCRYPTO 1
/* Define if building with libedit. */ /* Define if building with libedit. */
#define HAVE_LIBEDIT 1 /* #undef HAVE_LIBEDIT */
/* Define to 1 if you have the `nsl' library (-lnsl). */ /* Define to 1 if you have the `nsl' library (-lnsl). */
/* #undef HAVE_LIBNSL */ /* #undef HAVE_LIBNSL */
+2 -2
View File
@@ -9,8 +9,8 @@
PROG= kadmin PROG= kadmin
LIBADD= kadmin_common edit kadm5clnt_mit gssrpc gssapi_krb5 krb5 k5crypto \ LIBADD= kadmin_common kadm5clnt_mit gssrpc gssapi_krb5 krb5 k5crypto \
com_err krb5ss krb5profile krb5support tinfow sys com_err krb5ss krb5profile krb5support sys
SRCS= keytab.c SRCS= keytab.c
+1 -1
View File
@@ -9,7 +9,7 @@
PROG= ktutil PROG= ktutil
LIBADD= edit krb5 k5crypto com_err krb5profile krb5support krb5ss tinfow sys LIBADD= krb5 k5crypto com_err krb5profile krb5support krb5ss sys
SRCS= ktutil.c \ SRCS= ktutil.c \
ktutil_ct.c \ ktutil_ct.c \
+2 -2
View File
@@ -11,8 +11,8 @@ PACKAGE= kerberos-kdc
PROG= kadmin.local PROG= kadmin.local
LIBADD= kadmin_common edit kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 \ LIBADD= kadmin_common kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 \
k5crypto com_err krb5profile krb5support krb5ss tinfow sys k5crypto com_err krb5profile krb5support krb5ss sys
SRCS= keytab_local.c SRCS= keytab_local.c
+5
View File
@@ -47,6 +47,11 @@ CFLAGS+=-I${KRB5_DIR}/util/ss \
-I${.OBJDIR:H} \ -I${.OBJDIR:H} \
-I${.OBJDIR} -I${.OBJDIR}
.if !defined(BOOTSTRAPPING)
CFLAGS+= -DHAVE_READLINE=1 \
-I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit
.endif
GEN= std_rqs.c ${GEN_SS_ERR_C} ${GEN_SS_ERR_H} GEN= std_rqs.c ${GEN_SS_ERR_C} ${GEN_SS_ERR_H}
GEN_SCRIPTS= ct_c.awk ct_c.sed mk_cmds GEN_SCRIPTS= ct_c.awk ct_c.sed mk_cmds
GEN_SS_ERR_C= ${GEN_SS_ERR:S/.et$/.c/} GEN_SS_ERR_C= ${GEN_SS_ERR:S/.et$/.c/}
+1
View File
@@ -487,6 +487,7 @@ _DP_be= zfs spl nvpair zfsbootenv
_DP_netmap= _DP_netmap=
_DP_ifconfig= m _DP_ifconfig= m
_DP_pfctl= nv _DP_pfctl= nv
_DP_krb5ss= edit
# OFED support # OFED support
.if ${MK_OFED} != "no" .if ${MK_OFED} != "no"