Hey folks, > I've looked over your report and baffling patch. > This is really strange, and I don't have much to add. > > It seems like it might be related to the pathsubst rules in > src/doc/Makefile.in. > But I don't see the build directory getting used there.
Oh ho ho, this is fun! So, curiously, I can't reproduce this outside of reprotest (with a build path variation). Hm yes I don't immediately see how the pathsubst rules might be doing this in practice either. Another interesting candidate might be the doxy.py apparatus: 103 # Use doxygen to generate API documentation, translate it into RST 104 # format, and then create a composite of $(docsrc)'s RST and the 105 # generated files in rst_composite. Used by the html and substhtml targets. 106 composite: Doxyfile $(docsrc)/version.py 107 rm -rf doxy rst_apiref rst_composite 108 $(DOXYGEN) 109 (cwd=`pwd`; cd $(docsrc)/tools && \ 110 $(PYTHON) doxy.py -i $$cwd/doxy/xml -o $$cwd/rst_apiref) It is of course feasible that this parser (or one of its dependencies) has a bug. Two other drive-thru suggestions: * configgen.py has a bunch of global search-replaces that might be misfiring. There's also a potentially suspicious newline snarfing code that could conceivably be buggy as well: # replace \ by \\, replace " by \", and ' ' by a newline with end string # and start string at next line docC = [] for line in split_doc: if (line.strip() != "<br/>"): docC.append(line.strip().replace('\\', '\\\\'). replace('"', '\\"').replace("<br>", "")) * Memory corruption due to undefined behaviour somewhere in some parser. (Sam, we often call this a "docbook-to-man issue", not because the problem lies there, but due to the classic/notorious reproducible bug #842635 in that package.) Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-