diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-09-02 19:40:17 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-09-02 23:37:44 +0200 |
commit | 232a45d02e526ac4bdb4c5806432ff4b58d8cdc7 (patch) | |
tree | d157a03c4b57183e5c59806602d07b29c6f2ec2a | |
parent | config/env_blacklist: add DOCS (bug 627106) (diff) | |
download | portage-232a45d02e526ac4bdb4c5806432ff4b58d8cdc7.tar.gz portage-232a45d02e526ac4bdb4c5806432ff4b58d8cdc7.tar.bz2 portage-232a45d02e526ac4bdb4c5806432ff4b58d8cdc7.zip |
Do not enable optimizations by default to work-around pycparser issue
dev-python/pycparser-2.18+ exposes a design flaw in dev-python/ply that
makes it unable to work with -OO code. Given that Gentoo compiles its
Python packages with -OO and both -O and -OO use the same files for
Python < 3.5, using -O in Portage implicitly means -OO for those
implementations.
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
Reviewed-by: Zac Medico <zmedico@gentoo.org>
-rwxr-xr-x | bin/clean_locks | 2 | ||||
-rwxr-xr-x | bin/dispatch-conf | 2 | ||||
-rwxr-xr-x | bin/ebuild | 2 | ||||
-rwxr-xr-x | bin/emaint | 2 | ||||
-rwxr-xr-x | bin/env-update | 2 | ||||
-rwxr-xr-x | bin/portageq | 2 | ||||
-rwxr-xr-x | 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 |