From: Thomas Backlund <tmb@mageia.org>
To: Linus Torvalds <torvalds@linux-foundation.org>, <bjb@mojatatu.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: python errors in tools/testing/selftests/tc-testing - IGNORE
Date: Wed, 6 Jun 2018 00:00:49 +0259 [thread overview]
Message-ID: <bcc1f7da-7500-fffb-7314-8bd747303caf@mageia.org> (raw)
In-Reply-To: <11f16994-d704-10e3-e4f7-a490b6ae1fad@mageia.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 <bjb@mojatatu.com>
> 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 <bjb@mojatatu.com>
> 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
prev parent reply other threads:[~2018-06-05 21:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-03 21:58 Linux 4.17 Linus Torvalds
2018-06-05 17:53 ` building in 32bit chroot on x86_64 host broken (was: Linux 4.17) Thomas Backlund
2018-06-05 18:11 ` Linus Torvalds
2018-06-05 18:24 ` building in 32bit chroot on x86_64 host broken Thomas Backlund
2018-06-05 18:38 ` Linus Torvalds
2018-06-05 18:51 ` Thomas Backlund
2018-06-05 19:13 ` Linus Torvalds
2018-06-05 19:36 ` Thomas Backlund
2018-06-06 1:37 ` Masahiro Yamada
2018-06-06 1:54 ` Linus Torvalds
2018-06-06 2:19 ` Linus Torvalds
2018-06-06 3:31 ` Masahiro Yamada
2018-06-07 19:36 ` Thomas Backlund
2018-06-07 19:40 ` Linus Torvalds
2018-06-07 19:49 ` Thomas Backlund
2018-06-09 12:16 ` Masahiro Yamada
2018-06-08 9:12 ` Michal Kubecek
2018-06-09 12:23 ` Masahiro Yamada
2018-06-09 16:49 ` Theodore Y. Ts'o
2018-06-05 18:12 ` building in 32bit chroot on x86_64 host broken - IGNORE Thomas Backlund
2018-06-05 20:10 ` python errors in tools/testing/selftests/tc-testing (was: Linux 4.17) Thomas Backlund
2018-06-05 21:01 ` Thomas Backlund [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bcc1f7da-7500-fffb-7314-8bd747303caf@mageia.org \
--to=tmb@mageia.org \
--cc=bjb@mojatatu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®