emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH, RFC] etags/ctags v22.0.92 break Linux kernel `make TAGS/tags


From: Francesco Potorti`
Subject: Re: [PATCH, RFC] etags/ctags v22.0.92 break Linux kernel `make TAGS/tags`
Date: Thu, 28 Dec 2006 01:10:26 +0100

>The bug only appears if some `make *config` has succeeded.  Try:
>
>       make allnoconfig
>       make TAGS
>
>I have verified that the above shows the bug with 2.6.18 Linux.

Okay, I found out why and corrected it.  Please try it yourself and let
me know.  Thank you for finding this bug.

This is the relevant Changelog entry:

2006-12-28  Francesco Potortì  <address@hidden>

        * etags.c (readline): When creating a relative file name from a
        #line directive, leave the file name alone.  The previous
        behaviour was to make it relative to the tags file directory,
        under the hypothesis that the #line directive file name was
        relative to the directory of the tagged file.  That hypothesis is
        wrong with Cpp and Lex.

and this is the patch:

@@ -6285,7 +6285,7 @@ readline (lbp, stream)
                  name = lbp->buffer + start;
                  *endp = '\0';
                  canonicalize_filename (name); /* for DOS */
-                 taggedabsname = absolute_filename (name, curfdp->infabsdir);
+                 taggedabsname = absolute_filename (name, tagfiledir);
                  if (filename_is_absolute (name)
                      || filename_is_absolute (curfdp->infname))
                    taggedfname = savestr (taggedabsname);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]