From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21107 invoked by alias); 12 Dec 2016 20:55:06 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 21087 invoked by uid 89); 12 Dec 2016 20:55:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=pyc X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qt0-f193.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=RlixnchT2Y2G1+LnOXqWtMtGQVgYnEoHc8tWRBczqmw=; b=FWWa10ESuZjEkhCX7ijunrML0ifG3+yIt+Y42U/FKzbTyD1KnsB3u0E1ng/k1tooau 9Gee/dGysV/CDGcEfuZGUn/9buhOflNYmdC9QcoBuZA/jjFMehKXrInc9HpltWIimMx3 bsTkqyig1dLmbS0bic/LoxZUfwJ2h/ZaoQ/lyeEgxS75FR5tknRlYPaaokxL5nQR2bHb UxeCQYbLtT2Hitu5njiDsfi0HEbsA4ga6mAZNRqrIOezXHn7JfPBnH3hUbsSqxDjQq/r gVnfd2EwpfFKOk3ksXWmf7kxbOB1BXs2OnEvhOb9v5ySsH6gGkYXzFyGzv0VWD08JJCP Xk7w== X-Gm-Message-State: AKaTC03W9mbUizzG8mRucGEbF6c7Y6XQPykwELVChkrlIhdjNETw4TEcQUZWSE7C9R8sxA== X-Received: by 10.237.37.23 with SMTP id v23mr79989839qtc.168.1481576094359; Mon, 12 Dec 2016 12:54:54 -0800 (PST) From: Martin Galvan To: libc-alpha@sourceware.org, siddhesh@sourceware.org, joseph@codesourcery.com Subject: Re: [PATCH v11] Add pretty printers for the NPTL lock types Date: Mon, 12 Dec 2016 20:55:00 -0000 Message-Id: <1481576088-15304-1-git-send-email-omgalvan.86@gmail.com> In-Reply-To: References: X-SW-Source: 2016-12/txt/msg00423.txt.bz2 Ok, I smoke-tested this natively on Ubuntu (AMD64) and it works fine. Could you please test it for cross-builds as well? I'm attaching the patch here; please let me know if a separate thread is required. Thanks! ChangeLog: 2016-12-12 Martin Galvan * Rules (python-flags, python-invoke): New. ($(test-printers-out)): Use $(python-flags). --- Rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Rules b/Rules index de58a64..a7f845b 100644 --- a/Rules +++ b/Rules @@ -257,6 +257,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))) \ @@ -274,7 +280,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 -- 2.7.4