From b5689564051dc2d6b10e352246fcd6175cbef343 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 16 Feb 2017 14:59:32 +0100 Subject: [PATCH 1/3] bpo-28787: Fix out of tree --with-dtrace builds --- Makefile.pre.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.pre.in b/Makefile.pre.in index 1ba52e7c23abc8..09118cc37feed7 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -872,6 +872,7 @@ Python/frozen.o: $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib_externa # follow our naming conventions. dtrace(1) uses the output filename to generate # an include guard, so we can't use a pipeline to transform its output. Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d + @$(MKDIR_P) Include $(DTRACE) $(DFLAGS) -o $@ -h -s $< : sed in-place edit with POSIX-only tools sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp From 8de6a09de4d303f9d218da62ebe5f5afd202487c Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Tue, 9 May 2017 15:23:29 +0200 Subject: [PATCH 2/3] Unsilence directory creation --- Makefile.pre.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 09118cc37feed7..6e11bfb7ff3d03 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -872,7 +872,7 @@ Python/frozen.o: $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib_externa # follow our naming conventions. dtrace(1) uses the output filename to generate # an include guard, so we can't use a pipeline to transform its output. Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d - @$(MKDIR_P) Include + $(MKDIR_P) Include $(DTRACE) $(DFLAGS) -o $@ -h -s $< : sed in-place edit with POSIX-only tools sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp From fea9af639f3c81e50c9c221f5a730c3e65eb66bf Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Tue, 9 May 2017 15:30:34 +0200 Subject: [PATCH 3/3] Add Misc/NEWS and Misc/ACKS entries --- Misc/ACKS | 1 + Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Misc/ACKS b/Misc/ACKS index 6f80ab749ad2b9..3c4155e54817ec 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1487,6 +1487,7 @@ Daniel Stokes Michael Stone Serhiy Storchaka Ken Stox +Charalampos Stratakis Dan Stromberg Donald Stufft Daniel Stutzbach diff --git a/Misc/NEWS b/Misc/NEWS index b9348880b4fc3e..5f720db5c2aea0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -1039,6 +1039,9 @@ Documentation Build ----- +- bpo-28787: Fix out-of-tree builds of Python when configured with + ``--with--dtrace``. + - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``, ``make install`` and some other make targets when configured with ``--enable-optimizations``.