[krbdev.mit.edu #1364] make depend requires use of Gnu sed under Irix
Ezra Peisach
epeisach at MIT.EDU
Fri Feb 28 20:02:20 EST 2003
The problem is in depgen.sed. The output script is missing all of the
gcc stuff...
Here is the .depfix2.sed file with the irix sed...
s; \.\./\.\./\.\./src/lib/krb4/\.\./\.\./; $(SRCTOP)/;g
s; \.\./\.\./\.\./src/lib/krb4/\.\./\.\./; $(SRCTOP)/;g
s; \.\./\.\./\.\./src/lib/\.\./; $(SRCTOP)/;g
s; \.\./\.\./\.\./src/; $(SRCTOP)/;g
# Now try to produce pathnames relative to $(srcdir).
s; $(SRCTOP)/lib/krb4/; $(srcdir)/;g
s; $(SRCTOP)/lib/; $(srcdir)/../;g
# Now substitute for BUILDTOP:
s; \.\./\.\./; $(BUILDTOP)/;g
# end of sed code generated by depgen.sed
---------------------------------------------------------
If I use gnu sed - the top of the file is....
# This file is automatically generated by depgen.sed, do not edit it.
#
# Parameters used to generate this instance:
#
# SRCTOP = ../../../src/lib/krb4/../..
# thisdir = lib/krb4
# srcdir = ../../../src/lib/krb4
# BUILDTOP = ../..
# libgcc file name = /dusr1/people/epeisach/Swr/lib/gcc-lib/mips-sgi-irix6.5/3.2.2/libgcc.a
#
# First, remove redundant leading "//" and "./" ...
s;///*;/;g
s; \./; ;g
# Remove gcc's include files resulting from "fixincludes";
# they're essentially system include files.
s;/dusr1/people/epeisach/Swr/lib/gcc-lib/mips-sgi-irix6\.5/3\.2\.2/include/[^ ]* ;;g
s;/dusr1/people/epeisach/Swr/lib/gcc-lib/mips-sgi-irix6\.5/3\.2\.2/include/[^ ]*$;;g
# Recognize $(SRCTOP) and make it a variable reference.
# (Is this step needed, given the substitutions below?)
s; \.\./\.\./\.\./src/lib/krb4/\.\./\.\./; $(SRCTOP)/;g
# Now make $(srcdir) variable references, unless followed by "/../".
s; \.\./\.\./\.\./src/lib/krb4 /; $(srcdir);g
s; $(srcdir)/../; \.\./\.\./\.\./src/lib/krb4 /../;
# Recognize variants of $(SRCTOP).
s; \.\./\.\./\.\./src/lib/krb4/\.\./\.\./; $(SRCTOP)/;g
s; \.\./\.\./\.\./src/lib/\.\./; $(SRCTOP)/;g
s; \.\./\.\./\.\./src/; $(SRCTOP)/;g
# Now try to produce pathnames relative to $(srcdir).
s; $(SRCTOP)/lib/krb4/; $(srcdir)/;g
s; $(SRCTOP)/lib/; $(srcdir)/../;g
# Now substitute for BUILDTOP:
s; \.\./\.\./; $(BUILDTOP)/;g
# end of sed code generated by depgen.sed
More information about the krb5-bugs
mailing list