Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: /, bin/
Date: Sat, 02 Sep 2017 21:38:04
Message-Id: 1504388264.232a45d02e526ac4bdb4c5806432ff4b58d8cdc7.mgorny@gentoo
1 commit: 232a45d02e526ac4bdb4c5806432ff4b58d8cdc7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 2 17:40:17 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 2 21:37:44 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=232a45d0
7
8 Do not enable optimizations by default to work-around pycparser issue
9
10 dev-python/pycparser-2.18+ exposes a design flaw in dev-python/ply that
11 makes it unable to work with -OO code. Given that Gentoo compiles its
12 Python packages with -OO and both -O and -OO use the same files for
13 Python < 3.5, using -O in Portage implicitly means -OO for those
14 implementations.
15
16 Remove the optimizations from Portage shebangs to prevent triggering the
17 issue until we find a proper solution for it.
18
19 Bug: https://bugs.gentoo.org/628386
20 Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
21
22 bin/clean_locks | 2 +-
23 bin/dispatch-conf | 2 +-
24 bin/ebuild | 2 +-
25 bin/emaint | 2 +-
26 bin/env-update | 2 +-
27 bin/portageq | 2 +-
28 tabcheck.py | 2 +-
29 7 files changed, 7 insertions(+), 7 deletions(-)
30
31 diff --git a/bin/clean_locks b/bin/clean_locks
32 index 13af06197..fb245972f 100755
33 --- a/bin/clean_locks
34 +++ b/bin/clean_locks
35 @@ -1,4 +1,4 @@
36 -#!/usr/bin/python -bO
37 +#!/usr/bin/python -b
38 # Copyright 1999-2014 Gentoo Foundation
39 # Distributed under the terms of the GNU General Public License v2
40
41
42 diff --git a/bin/dispatch-conf b/bin/dispatch-conf
43 index 099c37f57..49e7774bf 100755
44 --- a/bin/dispatch-conf
45 +++ b/bin/dispatch-conf
46 @@ -1,4 +1,4 @@
47 -#!/usr/bin/python -bO
48 +#!/usr/bin/python -b
49 # Copyright 1999-2017 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51
52
53 diff --git a/bin/ebuild b/bin/ebuild
54 index 7930b41dd..bda746f78 100755
55 --- a/bin/ebuild
56 +++ b/bin/ebuild
57 @@ -1,4 +1,4 @@
58 -#!/usr/bin/python -bO
59 +#!/usr/bin/python -b
60 # Copyright 1999-2015 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62
63
64 diff --git a/bin/emaint b/bin/emaint
65 index a634c0ead..08e75851a 100755
66 --- a/bin/emaint
67 +++ b/bin/emaint
68 @@ -1,4 +1,4 @@
69 -#!/usr/bin/python -bO
70 +#!/usr/bin/python -b
71 # Copyright 2005-2014 Gentoo Foundation
72 # Distributed under the terms of the GNU General Public License v2
73
74
75 diff --git a/bin/env-update b/bin/env-update
76 index c43459bd7..03fc5849f 100755
77 --- a/bin/env-update
78 +++ b/bin/env-update
79 @@ -1,4 +1,4 @@
80 -#!/usr/bin/python -bO
81 +#!/usr/bin/python -b
82 # Copyright 1999-2014 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84
85
86 diff --git a/bin/portageq b/bin/portageq
87 index 06c8e0e57..0ac124fde 100755
88 --- a/bin/portageq
89 +++ b/bin/portageq
90 @@ -1,4 +1,4 @@
91 -#!/usr/bin/python -bO
92 +#!/usr/bin/python -b
93 # Copyright 1999-2016 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95
96
97 diff --git a/tabcheck.py b/tabcheck.py
98 index 2d45cdead..a28ad93d9 100755
99 --- a/tabcheck.py
100 +++ b/tabcheck.py
101 @@ -1,4 +1,4 @@
102 -#!/usr/bin/python -bO
103 +#!/usr/bin/python -b
104
105 import tabnanny,sys