[issue27229] In tree cross-build fails copying Include/graminit.h to itself

Martin Panter report at bugs.python.org
Sun Jun 5 21:20:20 EDT 2016


Martin Panter added the comment:

I was a little concerned that Alex’s patch used “test A -ef B”, which is not specified by Posix. But it is apparently widely supported (and consider we would only need it for cross compilation). Anyway, I was going to suggest test "$(srcdir)" == "." instead, but maybe Xavier’s solution is slightly better again.

I say go with vpath.patch, perhaps with a brief comment explaining that the cp + mv dance avoids copying the file onto itself when doing an in-tree build.

----------
stage:  -> commit review
versions: +Python 2.7, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27229>
_______________________________________


More information about the Python-bugs-list mailing list