GNU C Library master sources branch master updated. glibc-2.24-488-g2de9d74
siddhesh@sourceware.org
siddhesh@sourceware.org
Sat Dec 17 19:07:00 GMT 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 2de9d74fde42227c3265ec96416e6c8b4db910fa (commit)
from 3fdf17926c09fd403dd499005650e148774f1018 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2de9d74fde42227c3265ec96416e6c8b4db910fa
commit 2de9d74fde42227c3265ec96416e6c8b4db910fa
Author: Martin Galvan <omgalvan.86@gmail.com>
Date: Sun Dec 18 00:33:43 2016 +0530
Add -B to python invocation to avoid generating pyc files
Without -B, python invocations may result in generation of pyc files
for modules within the source tree, which does not work well when the
source tree is read-only.
2016-12-17 Martin Galvan <martingalvan@sourceware.org>
* Rules (python-flags, python-invoke): New.
($(test-printers-out)): Use $(python-flags).
diff --git a/Rules b/Rules
index 9e02eb7..fe18ce5 100644
--- a/Rules
+++ b/Rules
@@ -260,6 +260,12 @@ ifneq "$(strip $(tests-printers))" ""
# inside Makeconfig.
PYTHON := python
+# Invoke Python using -B to avoid generating .pyc files on the source dir,
+# so that we can keep it read-only.
+python-flags := -B
+
+python-invoke := $(PYTHON) $(python-flags)
+
# Static pattern rule for building the test programs for the pretty printers.
$(tests-printers-programs): %: %.o $(tests-printers-libs) \
$(sort $(filter $(common-objpfx)lib%,$(link-libc-static-tests))) \
@@ -277,7 +283,7 @@ py-env := PYTHONPATH=$(py-const-dir):$(..)scripts:$${PYTHONPATH}
$(tests-printers-out): $(objpfx)%.out: $(objpfx)% %.py %.c $(pretty-printers) \
$(..)scripts/test_printers_common.py
$(test-wrapper-env) $(py-env) \
- $(PYTHON) $*.py $*.c $(objpfx)$* $(pretty-printers) > $@; \
+ $(python-invoke) $*.py $*.c $(objpfx)$* $(pretty-printers) > $@; \
$(evaluate-test)
endif
-----------------------------------------------------------------------
Summary of changes:
Rules | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources
More information about the Glibc-cvs
mailing list