From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752545AbeFEVAj (ORCPT ); Tue, 5 Jun 2018 17:00:39 -0400 Received: from mx1.yrkesakademin.fi ([85.134.45.194]:10728 "EHLO mx1.yrkesakademin.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbeFEVAi (ORCPT ); Tue, 5 Jun 2018 17:00:38 -0400 Subject: Re: python errors in tools/testing/selftests/tc-testing - IGNORE From: Thomas Backlund To: Linus Torvalds , CC: Linux Kernel Mailing List References: <11f16994-d704-10e3-e4f7-a490b6ae1fad@mageia.org> Message-ID: Date: Wed, 6 Jun 2018 00:00:49 +0259 MIME-Version: 1.0 In-Reply-To: <11f16994-d704-10e3-e4f7-a490b6ae1fad@mageia.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-WatchGuard-Spam-ID: str=0001.0A0C0206.5B16F9F6.000C,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-WatchGuard-Spam-Score: 0, clean; 0, virus threat unknown X-WatchGuard-Mail-Client-IP: 85.134.45.194 X-WatchGuard-Mail-From: tmb@mageia.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 2018-06-05 kl. 23:10, skrev Thomas Backlund: > Compiling > /usr/src/kernel-linus-4.17.0-1.mga7/tools/testing/selftests/tc-testing/plugin-lib/rootPlugin.py > ... >   File > "/usr/src/kernel-linus-4.17.0-1.mga7/tools/testing/selftests/tc-testing/plugin-lib/rootPlugin.py", > line 18 >     print('This script must be run with root privileges', file=sys.stderr) >                                                               ^ > SyntaxError: invalid syntax > > > Caused by: > > commit f6926e85eee9be08d05170af3a2266b8d7f9cdef > Author: Brenda J. Butler > Date:   Wed Feb 14 14:08:55 2018 -0500 > >     tools: tc-testing: rootPlugin > >     Move the functionality that checks for root permissions into a plugin. > > > > and: > > Compiling > /usr/src/kernel-linus-4.17.0-1.mga7/tools/testing/selftests/tc-testing/tdc.py > ... >   File > "/usr/src/kernel-linus-4.17.0-1.mga7/tools/testing/selftests/tc-testing/tdc.py", > line 167 >     print('', file=sys.stderr) >                   ^ > SyntaxError: invalid syntax > > > Caused by: > > commit 93707cbabcc8baf2b2b5f4a99c1f08ee83eb7abd > Author: Brenda J. Butler > Date:   Wed Feb 14 14:08:54 2018 -0500 > >     tools: tc-testing: Introduce plugin architecture > > > > > > And this system has: > > $ python3 -V > Python 3.5.3 > > $ python -V > Python 2.7.15 > This one on the other hand seems to be a toolchain issue... rpmbuild calls out to /usr/lib/rpm/brp-python-bytecompile /usr/bin/python which basically in this case seems to try to parse python3 code with python2 and it falls over... So I've disabled bytecompiling on kernel builds until I can check the toolchain behaviour... -- Thomas