lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 6 Jun 2018 00:00:49 +0259
From:   Thomas Backlund <tmb@...eia.org>
To:     Linus Torvalds <torvalds@...ux-foundation.org>, <bjb@...atatu.com>
CC:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: python errors in tools/testing/selftests/tc-testing - IGNORE

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@...atatu.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@...atatu.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ