krb5 commit [krb5-1.14]: Use fixed rcache directory when cross-compiling

Tom Yu tlyu at mit.edu
Mon Oct 26 16:09:01 EDT 2015


https://github.com/krb5/krb5/commit/b32e0380cd37f90a009e4655a29d9fe7c6375fcb
commit b32e0380cd37f90a009e4655a29d9fe7c6375fcb
Author: Paul Fertser <fercerpav at gmail.com>
Date:   Mon Oct 19 14:46:14 2015 -0400

    Use fixed rcache directory when cross-compiling
    
    When cross-compiling, looking at what directories are present on the
    build machine makes no sense.  Default to /var/tmp instead.
    
    [ghudson at mit.edu: use /var/tmp instead of /tmp; adjust commit message]
    
    (cherry picked from commit db2acb6b06e469c6c12476bec68acc7964626523)
    
    ticket: 8254
    version_fixed: 1.14
    status: resolved

 src/configure.in |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index fd06dcb..b2a8675 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -757,11 +757,15 @@ AC_CHECK_TYPE(time_t, long)
 AC_MSG_CHECKING([for replay cache directory])
 AC_CACHE_VAL(krb5_cv_sys_rcdir,
 [
-for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
-	test -d $t_dir || continue
-	krb5_cv_sys_rcdir=$t_dir
-	break
-done])
+if test $cross_compiling = yes; then
+	krb5_cv_sys_rcdir=/var/tmp
+else
+	for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
+		test -d $t_dir || continue
+		krb5_cv_sys_rcdir=$t_dir
+		break
+	done
+fi])
 AC_MSG_RESULT($krb5_cv_sys_rcdir)
 KRB5_RCTMPDIR=$krb5_cv_sys_rcdir
 AC_SUBST(KRB5_RCTMPDIR)


More information about the cvs-krb5 mailing list