[3130] in Kerberos-V5-bugs
krb5-build/767: Makefile VPATH problem in lib/rpc and lib/kadm5
daemon@ATHENA.MIT.EDU (donn@u.washington.edu)
Wed Oct 6 16:36:29 1999
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, donn@u.washington.edu
Message-Id: <199910062035.NAA13459@saul8.u.washington.edu>
Date: Wed, 6 Oct 1999 13:35:10 -0700 (PDT)
From: donn@u.washington.edu
Reply-To: donn@u.washington.edu
To: krb5-bugs@MIT.EDU
>Number: 767
>Category: krb5-build
>Synopsis: VPATH expands dependency vars, full path doesn't work in cp
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tlyu
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Wed Oct 06 16:36:01 EDT 1999
>Last-Modified:
>Originator: Donn Cave
>Organization:
University Computing Services
University of Washington
>Release: krb5-1.1
>Environment:
System: OSF1 saul8 V4.0 878 alpha
Machine: alpha
>Description:
Makefiles in lib/rpc and lib/kadm5 copy include files from source
directory. This is done in a context where these include files are
dependencies, and with make on Digital UNIX 4.0, the names evaluate
to their full path per VPATH, in the body of the rule. When the
rule attempts to copy these files from srcdir to ., it fails because
the resulting cp command doesn't account for this full path.
>How-To-Repeat:
Build on Digital UNIX, specify separate --srcdir.
>Fix:
(This is surely not the only remedy.)
*** lib/rpc/Makefile.in.dist Thu Sep 23 15:44:11 1999
--- lib/rpc/Makefile.in Wed Oct 6 13:19:40 1999
***************
*** 187,192 ****
--- 187,193 ----
includes:: $(SRC_HDRS) $(BUILD_HDRS)
if [ -d $(HDRDIR) ]; then :; else mkdir -p $(HDRDIR); fi
for i in $(SRC_HDRS) ; do \
+ i=`basename $$i`; \
if cmp $(srcdir)/$$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \
else \
(set -x; $(RM) $(HDRDIR)/$$i; \
***************
*** 194,199 ****
--- 195,201 ----
fi ; \
done
for i in $(BUILD_HDRS) ; do \
+ i=`basename $$i`; \
if cmp $$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \
else \
(set -x; $(RM) $(HDRDIR)/$$i; \
>Audit-Trail:
>Unformatted: