dev-python/pycparser-2.18+ exposes a design flaw in dev-python/ply that makes it unable to work with -OO code. Remove the optimizations from Portage shebangs to prevent triggering the issue until we find a proper solution for it.
Bug: https://bugs.gentoo.org/628386 --- bin/clean_locks | 2 +- bin/dispatch-conf | 2 +- bin/ebuild | 2 +- bin/emaint | 2 +- bin/env-update | 2 +- bin/portageq | 2 +- tabcheck.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/clean_locks b/bin/clean_locks index 13af06197..fb245972f 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 099c37f57..49e7774bf 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/bin/ebuild b/bin/ebuild index 7930b41dd..bda746f78 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/bin/emaint b/bin/emaint index a634c0ead..08e75851a 100755 --- a/bin/emaint +++ b/bin/emaint @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b # Copyright 2005-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/bin/env-update b/bin/env-update index c43459bd7..03fc5849f 100755 --- a/bin/env-update +++ b/bin/env-update @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/bin/portageq b/bin/portageq index 06c8e0e57..0ac124fde 100755 --- a/bin/portageq +++ b/bin/portageq @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b # Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/tabcheck.py b/tabcheck.py index 2d45cdead..a28ad93d9 100755 --- a/tabcheck.py +++ b/tabcheck.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -bO +#!/usr/bin/python -b import tabnanny,sys -- 2.14.1