summaryrefslogtreecommitdiff
path: root/debian/patches/profiled-build.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-01 17:44:24 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-01 17:44:24 +0300
commitc089c4500b0b78acf03ee5405ad250a84b0dfa66 (patch)
tree23870848d194569aff6e0e4e41bc7907960b1af1 /debian/patches/profiled-build.diff
parent377002e7300431b68f3548d9fd2c7f99cf883939 (diff)
downloadpython3.7-debian.tar.gz
Import python3.7 (3.7.5-2)debian/3.7.5-2debian
Diffstat (limited to 'debian/patches/profiled-build.diff')
-rw-r--r--debian/patches/profiled-build.diff8
1 files changed, 3 insertions, 5 deletions
diff --git a/debian/patches/profiled-build.diff b/debian/patches/profiled-build.diff
index 1eb203b..b4e67c5 100644
--- a/debian/patches/profiled-build.diff
+++ b/debian/patches/profiled-build.diff
@@ -1,18 +1,16 @@
# DP: Ignore errors in the profile task.
-Index: b/Makefile.pre.in
-===================================================================
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
-@@ -467,6 +467,16 @@ build_all_generate_profile:
+@@ -504,6 +504,16 @@ build_all_generate_profile:
run_profile_task:
- : # FIXME: can't run for a cross build
+ @ # FIXME: can't run for a cross build
$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
+ task="$(PROFILE_TASK)"; \
+ case "$$task" in \
+ *-s\ *) \
+ $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $$task; \
-+ while [ -f $(srcdir)/build/pynexttest ]; do \
++ while [ -f $(abs_builddir)/build/pynexttest ]; do \
+ $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $$task; \
+ done;; \
+ *) \