[krbdev.mit.edu #8254] [PATCH] configure: use appropriate default for krb5_cv_sys_rcdir when cross-compiling
Paul Fertser via RT
rt-comment at krbdev.mit.edu
Mon Sep 28 10:14:22 EDT 2015
When cross-compiling, looking at what directories are present on the
build machine makes no sense. Default to the temporary directory as
mandated by the FHS instead.
Signed-off-by: Paul Fertser <fercerpav at gmail.com>
---
Hello,
Please consider this to be a bug-report. The problem was discovered
when using this library with OpenWrt (as my build Debian machine has
/var/tmp but OpenWrt target doesn't).
src/configure.in | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/configure.in b/src/configure.in
index fd06dcb..f1fedb9 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=/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)
--
2.1.4
More information about the krb5-bugs
mailing list