From: Tom Yu Date: Fri, 2 Dec 2011 21:20:18 +0000 (+0000) Subject: pull up r25468 from trunk X-Git-Tag: krb5-1.10-alpha2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=922bf66c30bfadd152e1abc2711b7b1a74694be8;p=krb5.git pull up r25468 from trunk ------------------------------------------------------------------------ r25468 | ghudson | 2011-11-10 23:04:58 -0500 (Thu, 10 Nov 2011) | 12 lines ticket: 7014 subject: Fix com_err.h dependencies in gss-kernel-lib target_version: 1.10 tags: pullup 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 version_fixed: 1.10 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-10@25502 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/depfix.pl b/src/util/depfix.pl index dd4989abd..4fc37890b 100644 --- a/src/util/depfix.pl +++ b/src/util/depfix.pl @@ -143,6 +143,10 @@ sub do_subs_2 { s;\$\(BUILDTOP\)/include/db-config.h \$\(BUILDTOP\)/include/db.h ;\$(DB_DEPS) ;g; s;\$\(BUILDTOP\)/include/verto-k5ev.h ;\$(VERTO_K5EV_DEPS) ;g; s;\$\(BUILDTOP\)/include/verto.h ;\$(VERTO_DEPS) ;g; + if ($thisdir eq "util/gss-kernel-lib") { + # Here com_err.h is used from the current directory. + s;com_err.h ;\$(COM_ERR_DEPS) ;g; + } $_ = &uniquify($_); 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 \