summaryrefslogtreecommitdiffstats
path: root/src/util/gss-kernel-lib
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-11-11 04:04:58 +0000
committerGreg Hudson <ghudson@mit.edu>2011-11-11 04:04:58 +0000
commit6aff398f9eead4c619d20a55e0c72459b7e1ef51 (patch)
tree44efc2c04531167de12bf657d135a3b95eb46cde /src/util/gss-kernel-lib
parent22a961b76a635708458a4798e560e81daf9b57ac (diff)
downloadkrb5-6aff398f9eead4c619d20a55e0c72459b7e1ef51.tar.gz
krb5-6aff398f9eead4c619d20a55e0c72459b7e1ef51.tar.xz
krb5-6aff398f9eead4c619d20a55e0c72459b7e1ef51.zip
Fix com_err.h dependencies in gss-kernel-lib
make check was failing in util/gss-kernel-lib due to dependencies when the build is configured with --with-system-et, because depfix.pl wasn't smart enough to substitute the dependency on com_err.h in the current directory. Make depfix.pl smarter, and adjust COM_ERR_DEPS to be com_err.h in gss-kernel-lib when building with the bundled com_err. ticket: 7014 target_version: 1.10 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25468 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/gss-kernel-lib')
-rw-r--r--src/util/gss-kernel-lib/Makefile.in12
-rw-r--r--src/util/gss-kernel-lib/deps85
2 files changed, 51 insertions, 46 deletions
diff --git a/src/util/gss-kernel-lib/Makefile.in b/src/util/gss-kernel-lib/Makefile.in
index f0f2f5360..aa1f74ec2 100644
--- a/src/util/gss-kernel-lib/Makefile.in
+++ b/src/util/gss-kernel-lib/Makefile.in
@@ -47,6 +47,12 @@ OBJS= \
util_set.o \
util_ordering.o
+# COM_ERR_DEPS is COM_ERR_DEPS-k5 when we use the bundled com_err, and
+# empty otherwise. Normally COM_ERR_DEPS-k5 is from the central
+# include directory in the build tree, but here we only take headers
+# from the current directory, so we need to redefine it.
+COM_ERR_DEPS-k5 = com_err.h
+
HEADERS= \
gssapi/gssapi.h \
gssapi/gssapi_krb5.h \
@@ -77,11 +83,7 @@ HEADERS= \
krb5/preauth_plugin.h \
krb5/authdata_plugin.h \
profile.h \
- $(MAYBE_COMERR_@COM_ERR_VERSION@)
-
-MAYBE_COMERR_k5 = com_err.h
-MAYBE_COMERR_sys =
-MAYBE_COMERR_intlsys =
+ $(COM_ERR_DEPS)
check-pytests:: t_kgss_user t_kgss_kernel
$(RUNPYTEST) $(srcdir)/t_kgss.py $(PYTESTFLAGS)
diff --git a/src/util/gss-kernel-lib/deps b/src/util/gss-kernel-lib/deps
index b5f52d83d..06475bf1a 100644
--- a/src/util/gss-kernel-lib/deps
+++ b/src/util/gss-kernel-lib/deps
@@ -1,15 +1,16 @@
#
# Generated makefile dependencies follow.
#
-$(OUTPRE)k5seal.$(OBJEXT): autoconf.h com_err.h gssapi/gssapi.h \
- gssapi/gssapi_alloc.h gssapi/gssapi_ext.h gssapi/gssapi_krb5.h \
- gssapiP_generic.h gssapiP_krb5.h gssapi_err_generic.h \
- gssapi_err_krb5.h gssapi_generic.h k5-buf.h k5-err.h \
- k5-gmt_mktime.h k5-int-pkinit.h k5-int.h k5-platform.h \
- k5-plugin.h k5-thread.h k5-trace.h k5seal.c krb5.h \
- krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
- osconf.h port-sockets.h profile.h socket-utils.h
-$(OUTPRE)k5sealiov.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)k5seal.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
+ gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
+ gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
+ gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
+ k5-buf.h k5-err.h k5-gmt_mktime.h k5-int-pkinit.h k5-int.h \
+ k5-platform.h k5-plugin.h k5-thread.h k5-trace.h k5seal.c \
+ krb5.h krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h \
+ krb5/preauth_plugin.h osconf.h port-sockets.h profile.h \
+ socket-utils.h
+$(OUTPRE)k5sealiov.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -18,15 +19,16 @@ $(OUTPRE)k5sealiov.$(OBJEXT): autoconf.h com_err.h \
krb5.h krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h \
krb5/preauth_plugin.h osconf.h port-sockets.h profile.h \
socket-utils.h
-$(OUTPRE)k5unseal.$(OBJEXT): autoconf.h com_err.h gssapi/gssapi.h \
- gssapi/gssapi_alloc.h gssapi/gssapi_ext.h gssapi/gssapi_krb5.h \
- gssapiP_generic.h gssapiP_krb5.h gssapi_err_generic.h \
- gssapi_err_krb5.h gssapi_generic.h k5-buf.h k5-err.h \
- k5-gmt_mktime.h k5-int-pkinit.h k5-int.h k5-platform.h \
- k5-plugin.h k5-thread.h k5-trace.h k5unseal.c krb5.h \
- krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
- osconf.h port-sockets.h profile.h socket-utils.h
-$(OUTPRE)k5unsealiov.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)k5unseal.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
+ gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
+ gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
+ gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
+ k5-buf.h k5-err.h k5-gmt_mktime.h k5-int-pkinit.h k5-int.h \
+ k5-platform.h k5-plugin.h k5-thread.h k5-trace.h k5unseal.c \
+ krb5.h krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h \
+ krb5/preauth_plugin.h osconf.h port-sockets.h profile.h \
+ socket-utils.h
+$(OUTPRE)k5unsealiov.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -35,15 +37,16 @@ $(OUTPRE)k5unsealiov.$(OBJEXT): autoconf.h com_err.h \
krb5.h krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h \
krb5/preauth_plugin.h osconf.h port-sockets.h profile.h \
socket-utils.h
-$(OUTPRE)k5sealv3.$(OBJEXT): autoconf.h com_err.h gssapi/gssapi.h \
- gssapi/gssapi_alloc.h gssapi/gssapi_ext.h gssapi/gssapi_krb5.h \
- gssapiP_generic.h gssapiP_krb5.h gssapi_err_generic.h \
- gssapi_err_krb5.h gssapi_generic.h k5-buf.h k5-err.h \
- k5-gmt_mktime.h k5-int-pkinit.h k5-int.h k5-platform.h \
- k5-plugin.h k5-thread.h k5-trace.h k5sealv3.c krb5.h \
- krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
- osconf.h port-sockets.h profile.h socket-utils.h
-$(OUTPRE)k5sealv3iov.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)k5sealv3.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
+ gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
+ gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
+ gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
+ k5-buf.h k5-err.h k5-gmt_mktime.h k5-int-pkinit.h k5-int.h \
+ k5-platform.h k5-plugin.h k5-thread.h k5-trace.h k5sealv3.c \
+ krb5.h krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h \
+ krb5/preauth_plugin.h osconf.h port-sockets.h profile.h \
+ socket-utils.h
+$(OUTPRE)k5sealv3iov.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -52,7 +55,7 @@ $(OUTPRE)k5sealv3iov.$(OBJEXT): autoconf.h com_err.h \
krb5.h krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h \
krb5/preauth_plugin.h osconf.h port-sockets.h profile.h \
socket-utils.h
-$(OUTPRE)util_cksum.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)util_cksum.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -60,7 +63,7 @@ $(OUTPRE)util_cksum.$(OBJEXT): autoconf.h com_err.h \
k5-platform.h k5-plugin.h k5-thread.h k5-trace.h krb5.h \
krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
osconf.h port-sockets.h profile.h socket-utils.h util_cksum.c
-$(OUTPRE)util_crypt.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)util_crypt.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -68,7 +71,7 @@ $(OUTPRE)util_crypt.$(OBJEXT): autoconf.h com_err.h \
k5-platform.h k5-plugin.h k5-thread.h k5-trace.h krb5.h \
krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
osconf.h port-sockets.h profile.h socket-utils.h util_crypt.c
-$(OUTPRE)util_seqnum.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)util_seqnum.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -76,7 +79,7 @@ $(OUTPRE)util_seqnum.$(OBJEXT): autoconf.h com_err.h \
k5-platform.h k5-plugin.h k5-thread.h k5-trace.h krb5.h \
krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
osconf.h port-sockets.h profile.h socket-utils.h util_seqnum.c
-$(OUTPRE)util_seed.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)util_seed.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -84,19 +87,19 @@ $(OUTPRE)util_seed.$(OBJEXT): autoconf.h com_err.h \
k5-platform.h k5-plugin.h k5-thread.h k5-trace.h krb5.h \
krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
osconf.h port-sockets.h profile.h socket-utils.h util_seed.c
-$(OUTPRE)util_token.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)util_token.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapiP_generic.h gssapi_err_generic.h gssapi_generic.h \
k5-buf.h k5-platform.h k5-thread.h util_token.c
-$(OUTPRE)util_set.$(OBJEXT): autoconf.h com_err.h gssapi/gssapi.h \
- gssapi/gssapi_alloc.h gssapi/gssapi_ext.h gssapiP_generic.h \
- gssapi_err_generic.h gssapi_generic.h k5-buf.h k5-platform.h \
- k5-thread.h util_set.c
-$(OUTPRE)util_ordering.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)util_set.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
+ gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
+ gssapiP_generic.h gssapi_err_generic.h gssapi_generic.h \
+ k5-buf.h k5-platform.h k5-thread.h util_set.c
+$(OUTPRE)util_ordering.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapiP_generic.h gssapi_err_generic.h gssapi_generic.h \
k5-buf.h k5-platform.h k5-thread.h util_ordering.c
-$(OUTPRE)kernel_gss.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)kernel_gss.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \
@@ -105,21 +108,21 @@ $(OUTPRE)kernel_gss.$(OBJEXT): autoconf.h com_err.h \
kernel_gss.h krb5.h krb5/authdata_plugin.h krb5/krb5.h \
krb5/plugin.h krb5/preauth_plugin.h osconf.h port-sockets.h \
profile.h socket-utils.h
-$(OUTPRE)t_kgss_common.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)t_kgss_common.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_ext.h gssapi/gssapi_krb5.h \
k5-buf.h k5-err.h k5-gmt_mktime.h k5-int-pkinit.h k5-int.h \
k5-platform.h k5-plugin.h k5-thread.h k5-trace.h krb5.h \
krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
osconf.h port-sockets.h profile.h socket-utils.h t_kgss_common.c \
t_kgss_common.h
-$(OUTPRE)t_kgss_user.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)t_kgss_user.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_ext.h gssapi/gssapi_krb5.h \
k5-buf.h k5-err.h k5-gmt_mktime.h k5-int-pkinit.h k5-int.h \
k5-platform.h k5-plugin.h k5-thread.h k5-trace.h krb5.h \
krb5/authdata_plugin.h krb5/krb5.h krb5/plugin.h krb5/preauth_plugin.h \
osconf.h port-sockets.h profile.h socket-utils.h t_kgss_common.h \
t_kgss_user.c
-$(OUTPRE)t_kgss_kernel.$(OBJEXT): autoconf.h com_err.h \
+$(OUTPRE)t_kgss_kernel.$(OBJEXT): $(COM_ERR_DEPS) autoconf.h \
gssapi/gssapi.h gssapi/gssapi_alloc.h gssapi/gssapi_ext.h \
gssapi/gssapi_krb5.h gssapiP_generic.h gssapiP_krb5.h \
gssapi_err_generic.h gssapi_err_krb5.h gssapi_generic.h \