Skip to content

Commit

Permalink
Remove profile Tcl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greghudson committed Jun 3, 2021
1 parent ea99c4d commit 4e186b2
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 4,305 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -qq
sudo apt-get install -y bison gettext keyutils ldap-utils libcmocka-dev libldap2-dev libkeyutils-dev libresolv-wrapper libsasl2-dev libssl-dev python3-kdcproxy python3-pip slapd tcl-dev tcsh
sudo apt-get install -y bison gettext keyutils ldap-utils libcmocka-dev libldap2-dev libkeyutils-dev libresolv-wrapper libsasl2-dev libssl-dev python3-kdcproxy python3-pip slapd tcsh
pip3 install pyrad
- name: Build
env:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ local.properties
/src/util/profile/modtest.conf
/src/util/profile/prof_err.[ch]
/src/util/profile/profile.h
/src/util/profile/profile_tcl
/src/util/profile/test?.ini
/src/util/profile/test_include_dir/
/src/util/profile/test_load
Expand Down
11 changes: 0 additions & 11 deletions doc/build/options2configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ Most commonly used options
library or fails to pass the tests in ``src/tests/resolv``, you
will need to use this option.

**-**\ **-with-tcl=**\ *TCLPATH*
Some of the unit-tests in the build tree rely upon using a program
in Tcl. The directory specified by *TCLPATH* specifies where the
Tcl header file (TCLPATH/include/tcl.h) as well as where the Tcl
library (TCLPATH/lib) should be found.

**-**\ **-enable-dns-for-realm**
Enable the use of DNS to look up a host's Kerberos realm,
if the information is not provided in
Expand Down Expand Up @@ -332,11 +326,6 @@ Optional packages
**-**\ **-with-lmdb**
Compile LMDB database backend module.

**-**\ **-with-tcl=**\ *path*
Specifies that *path* is the location of a Tcl installation.
Tcl is needed for some of the tests run by 'make check'; such tests
will be skipped if this option is not set.

**-**\ **-with-vague-errors**
Do not send helpful errors to client. For example, if the KDC
should return only vague error codes to clients.
Expand Down
10 changes: 0 additions & 10 deletions doc/notice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -950,16 +950,6 @@ The following notice applies to ``src/util/profile/argv_parse.c`` and

-------------------

The following notice applies to SWIG-generated code in
``src/util/profile/profile_tcl.c``:

Copyright |copy| 1999-2000, The University of Chicago

This file may be freely redistributed without license or fee provided
this copyright message remains intact.

-------------------

The following notice applies to portiions of ``src/lib/rpc`` and
``src/include/gssrpc``:

Expand Down
1 change: 0 additions & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ OTHEREXCLUDES = \
util/et/com_err.h \
util/profile/prof_int.h \
util/profile/profile.hin \
util/profile/profile_tcl.c \
util/support/fnmatch.c \
util/verto \
util/k5ev
Expand Down
230 changes: 0 additions & 230 deletions src/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -762,236 +762,6 @@ AC_DEFUN(KRB5_AC_REGEX_FUNCS,[
AC_CHECK_FUNCS(re_comp re_exec regexec)
AC_REQUIRE([KRB5_AC_NEED_LIBGEN])dnl
])dnl
dnl
dnl AC_KRB5_TCL_FIND_CONFIG (uses tcl_dir)
dnl
AC_DEFUN(AC_KRB5_TCL_FIND_CONFIG,[
AC_REQUIRE([KRB5_LIB_AUX])dnl
AC_MSG_CHECKING(for tclConfig.sh)
dnl On Debian, we might be given --with-tcl=/usr, or tclsh might
dnl point us to /usr/lib/tcl8.4; either way, we need to find
dnl /usr/lib/tcl8.4/tclConfig.sh.
dnl On NetBSD, we might be given --with-tcl=/usr/pkg, or tclsh
dnl might point us to /usr/pkg/lib/tcl8.4; we need to find
dnl /usr/pkg/lib/tclConfig.sh.
if test -r "$tcl_dir/lib/tclConfig.sh" ; then
tcl_conf="$tcl_dir/lib/tclConfig.sh"
elif test -r "$tcl_dir/tclConfig.sh" ; then
tcl_conf="$tcl_dir/tclConfig.sh"
elif test -r "$tcl_dir/../tclConfig.sh" ; then
tcl_conf="$tcl_dir/../tclConfig.sh"
else
tcl_conf=
lib="$tcl_dir/lib"
changequote(<<,>>)dnl
for d in "$lib" "$lib"/tcl7.[0-9] "$lib"/tcl8.[0-9] ; do
if test -r "$d/tclConfig.sh" ; then
tcl_conf="$tcl_conf $d/tclConfig.sh"
fi
done
changequote([,])dnl
fi
if test -n "$tcl_conf" ; then
AC_MSG_RESULT($tcl_conf)
else
AC_MSG_RESULT(not found)
fi
tcl_ok_conf=
tcl_vers_maj=
tcl_vers_min=
old_CPPFLAGS=$CPPFLAGS
old_LIBS=$LIBS
old_LDFLAGS=$LDFLAGS
if test -n "$tcl_conf" ; then
for file in $tcl_conf ; do
TCL_MAJOR_VERSION=x ; TCL_MINOR_VERSION=x
AC_MSG_CHECKING(Tcl info in $file)
. $file
v=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION
if test -z "$tcl_vers_maj" \
|| test "$tcl_vers_maj" -lt "$TCL_MAJOR_VERSION" \
|| test "$tcl_vers_maj" = "$TCL_MAJOR_VERSION" -a "$tcl_vers_min" -lt "$TCL_MINOR_VERSION" ; then
for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
CPPFLAGS="$old_CPPFLAGS -I$incdir"
break
fi
done
LIBS="$old_LIBS `eval echo x $TCL_LIB_SPEC $TCL_LIBS | sed 's/^x//'`"
LDFLAGS="$old_LDFLAGS $TCL_LD_FLAGS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <tcl.h>
]],
[[Tcl_CreateInterp();]])],
tcl_ok_conf=$file
tcl_vers_maj=$TCL_MAJOR_VERSION
tcl_vers_min=$TCL_MINOR_VERSION
AC_MSG_RESULT($v - working),
AC_MSG_RESULT($v - compilation failed)
)
else
AC_MSG_RESULT(older version $v)
fi
done
fi
CPPFLAGS=$old_CPPFLAGS
LIBS=$old_LIBS
LDFLAGS=$old_LDFLAGS
tcl_header=no
tcl_lib=no
if test -n "$tcl_ok_conf" ; then
. $tcl_ok_conf
TCL_INCLUDES=
for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
if test "$incdir" != "/usr/include" ; then
TCL_INCLUDES=-I$incdir
fi
break
fi
done
# Need eval because the first-level expansion could reference
# variables like ${TCL_DBGX}.
eval TCL_LIBS='"'$TCL_LIB_SPEC $TCL_LIBS $TCL_DL_LIBS'"'
TCL_LIBPATH="-L$TCL_EXEC_PREFIX/lib"
TCL_RPATH=":$TCL_EXEC_PREFIX/lib"
if test "$DEPLIBEXT" != "$SHLIBEXT" && test -n "$RPATH_FLAG"; then
TCL_MAYBE_RPATH='$(RPATH_FLAG)'"$TCL_EXEC_PREFIX/lib$RPATH_TAIL"
else
TCL_MAYBE_RPATH=
fi
CPPFLAGS="$old_CPPFLAGS $TCL_INCLUDES"
AC_CHECK_HEADER(tcl.h,AC_DEFINE(HAVE_TCL_H,1,[Define if tcl.h is available]) tcl_header=yes)
if test $tcl_header=no; then
AC_CHECK_HEADER(tcl/tcl.h,AC_DEFINE(HAVE_TCL_TCL_H,1,[Define if tcl/tcl.h is available]) tcl_header=yes)
fi
CPPFLAGS="$old_CPPFLAGS"
tcl_lib=yes
else
# If we read a tclConfig.sh file, it probably set this.
TCL_LIBS=
fi
AC_SUBST(TCL_INCLUDES)
AC_SUBST(TCL_LIBS)
AC_SUBST(TCL_LIBPATH)
AC_SUBST(TCL_RPATH)
AC_SUBST(TCL_MAYBE_RPATH)
])dnl
dnl
dnl AC_KRB5_TCL_TRYOLD
dnl attempt to use old search algorithm for locating tcl
dnl
AC_DEFUN(AC_KRB5_TCL_TRYOLD, [
AC_REQUIRE([KRB5_AC_FIND_DLOPEN])
AC_MSG_WARN([trying old tcl search code])
if test "$with_tcl" != yes -a "$with_tcl" != no; then
TCL_INCLUDES=-I$with_tcl/include
TCL_LIBPATH=-L$with_tcl/lib
TCL_RPATH=:$with_tcl/lib
fi
if test "$with_tcl" != no ; then
krb5_save_CPPFLAGS="$CPPFLAGS"
krb5_save_LDFLAGS="$LDFLAGS"
CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"
LDFLAGS="$LDFLAGS $TCL_LIBPATH"
tcl_header=no
AC_CHECK_HEADER(tcl.h,AC_DEFINE(HAVE_TCL_H,1,[Define if tcl.h found]) tcl_header=yes)
if test $tcl_header=no; then
AC_CHECK_HEADER(tcl/tcl.h,AC_DEFINE(HAVE_TCL_TCL_H,1,[Define if tcl/tcl.h found]) tcl_header=yes)
fi
if test $tcl_header = yes ; then
tcl_lib=no
if test $tcl_lib = no; then
AC_CHECK_LIB(tcl8.0, Tcl_CreateCommand,
TCL_LIBS="$TCL_LIBS -ltcl8.0 -lm $DL_LIB $LIBS"
tcl_lib=yes,,-lm $DL_LIB)
fi
if test $tcl_lib = no; then
AC_CHECK_LIB(tcl7.6, Tcl_CreateCommand,
TCL_LIBS="$TCL_LIBS -ltcl7.6 -lm $DL_LIB $LIBS"
tcl_lib=yes,,-lm $DL_LIB)
fi
if test $tcl_lib = no; then
AC_CHECK_LIB(tcl7.5, Tcl_CreateCommand,
TCL_LIBS="$TCL_LIBS -ltcl7.5 -lm $DL_LIB $LIBS"
tcl_lib=yes,,-lm $DL_LIB)
fi
if test $tcl_lib = no ; then
AC_CHECK_LIB(tcl, Tcl_CreateCommand,
TCL_LIBS="$TCL_LIBS -ltcl -lm $DL_LIB $LIBS"
tcl_lib=yes,,-lm $DL_LIB)
fi
if test $tcl_lib = no ; then
AC_MSG_WARN("tcl.h found but not library")
fi
else
AC_MSG_WARN(Could not find Tcl which is needed for the kadm5 tests)
TCL_LIBS=
fi
CPPFLAGS="$krb5_save_CPPFLAGS"
LDFLAGS="$krb5_save_LDFLAGS"
AC_SUBST(TCL_INCLUDES)
AC_SUBST(TCL_LIBS)
AC_SUBST(TCL_LIBPATH)
AC_SUBST(TCL_RPATH)
else
AC_MSG_RESULT("Not looking for Tcl library")
fi
])dnl
dnl
dnl AC_KRB5_TCL - determine if the TCL library is present on system
dnl
AC_DEFUN(AC_KRB5_TCL,[
TCL_INCLUDES=
TCL_LIBPATH=
TCL_RPATH=
TCL_LIBS=
TCL_WITH=
tcl_dir=
AC_ARG_WITH(tcl,
[ --with-tcl=path where Tcl resides], , with_tcl=try)
if test "$with_tcl" = no ; then
true
elif test "$with_tcl" = yes -o "$with_tcl" = try ; then
tcl_dir=/usr
if test ! -r /usr/lib/tclConfig.sh; then
cat >> conftest <<\EOF
puts "tcl_dir=$tcl_library"
EOF
if tclsh conftest >conftest.out 2>/dev/null; then
if grep tcl_dir= conftest.out >/dev/null 2>&1; then
t=`sed s/tcl_dir=// conftest.out`
tcl_dir=$t
fi
fi # tclsh ran script okay
rm -f conftest conftest.out
fi # no /usr/lib/tclConfig.sh
else
tcl_dir=$with_tcl
fi
if test "$with_tcl" != no ; then
AC_KRB5_TCL_FIND_CONFIG
if test $tcl_lib = no ; then
if test "$with_tcl" != try ; then
AC_KRB5_TCL_TRYOLD
else
AC_MSG_WARN(Could not find Tcl which is needed for some tests)
fi
fi
fi
# If "yes" or pathname, error out if not found.
if test "$with_tcl" != no -a "$with_tcl" != try ; then
if test "$tcl_header $tcl_lib" != "yes yes" ; then
AC_MSG_ERROR(Could not find Tcl)
fi
fi
])dnl

dnl
dnl WITH_HESIOD
dnl
Expand Down
8 changes: 0 additions & 8 deletions src/config/pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,6 @@ RUN_VARS=@KRB5_RUN_VARS@
RUN_TEST=$(RUN_SETUP) KRB5_CONFIG=$(top_srcdir)/config-files/krb5.conf \
LC_ALL=C $(VALGRIND)

#
# variables for --with-tcl=
TCL_LIBS = @TCL_LIBS@
TCL_LIBPATH = @TCL_LIBPATH@
TCL_RPATH = @TCL_RPATH@
TCL_MAYBE_RPATH = @TCL_MAYBE_RPATH@
TCL_INCLUDES = @TCL_INCLUDES@

# Crypto and PRNG back-end selections
CRYPTO_IMPL = @CRYPTO_IMPL@
PRNG_ALG = @PRNG_ALG@
Expand Down
8 changes: 0 additions & 8 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ fi
# configuration options.

KRB5_LIB_AUX
AC_KRB5_TCL
AC_ARG_ENABLE([athena],
[ --enable-athena build with MIT Project Athena configuration],,)

Expand Down Expand Up @@ -924,13 +923,6 @@ AC_CHECK_TYPES([struct rt_msghdr], , , [
AC_CHECK_SIZEOF([size_t])
AC_CHECK_TYPES([__int128_t, __uint128_t])

# stuff for util/profile

# AC_KRB5_TCL already done
DO_TCL=
test "$TCL_LIBS" != "" && DO_TCL=ok
AC_SUBST(DO_TCL)

# types libdb2 wants

AC_CHECK_TYPES([ssize_t, u_char, u_int, u_long, u_int8_t, u_int16_t, u_int32_t, int8_t, int16_t, int32_t])
Expand Down

0 comments on commit 4e186b2

Please sign in to comment.