Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] Do not enable optimizations by default to work-around pycparser issue
Date: Sat, 02 Sep 2017 17:46:08
Message-Id: 20170902174601.7789-1-mgorny@gentoo.org
1 dev-python/pycparser-2.18+ exposes a design flaw in dev-python/ply that
2 makes it unable to work with -OO code. Remove the optimizations from
3 Portage shebangs to prevent triggering the issue until we find a proper
4 solution for it.
5
6 Bug: https://bugs.gentoo.org/628386
7 ---
8 bin/clean_locks | 2 +-
9 bin/dispatch-conf | 2 +-
10 bin/ebuild | 2 +-
11 bin/emaint | 2 +-
12 bin/env-update | 2 +-
13 bin/portageq | 2 +-
14 tabcheck.py | 2 +-
15 7 files changed, 7 insertions(+), 7 deletions(-)
16
17 diff --git a/bin/clean_locks b/bin/clean_locks
18 index 13af06197..fb245972f 100755
19 --- a/bin/clean_locks
20 +++ b/bin/clean_locks
21 @@ -1,4 +1,4 @@
22 -#!/usr/bin/python -bO
23 +#!/usr/bin/python -b
24 # Copyright 1999-2014 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26
27 diff --git a/bin/dispatch-conf b/bin/dispatch-conf
28 index 099c37f57..49e7774bf 100755
29 --- a/bin/dispatch-conf
30 +++ b/bin/dispatch-conf
31 @@ -1,4 +1,4 @@
32 -#!/usr/bin/python -bO
33 +#!/usr/bin/python -b
34 # Copyright 1999-2017 Gentoo Foundation
35 # Distributed under the terms of the GNU General Public License v2
36
37 diff --git a/bin/ebuild b/bin/ebuild
38 index 7930b41dd..bda746f78 100755
39 --- a/bin/ebuild
40 +++ b/bin/ebuild
41 @@ -1,4 +1,4 @@
42 -#!/usr/bin/python -bO
43 +#!/usr/bin/python -b
44 # Copyright 1999-2015 Gentoo Foundation
45 # Distributed under the terms of the GNU General Public License v2
46
47 diff --git a/bin/emaint b/bin/emaint
48 index a634c0ead..08e75851a 100755
49 --- a/bin/emaint
50 +++ b/bin/emaint
51 @@ -1,4 +1,4 @@
52 -#!/usr/bin/python -bO
53 +#!/usr/bin/python -b
54 # Copyright 2005-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56
57 diff --git a/bin/env-update b/bin/env-update
58 index c43459bd7..03fc5849f 100755
59 --- a/bin/env-update
60 +++ b/bin/env-update
61 @@ -1,4 +1,4 @@
62 -#!/usr/bin/python -bO
63 +#!/usr/bin/python -b
64 # Copyright 1999-2014 Gentoo Foundation
65 # Distributed under the terms of the GNU General Public License v2
66
67 diff --git a/bin/portageq b/bin/portageq
68 index 06c8e0e57..0ac124fde 100755
69 --- a/bin/portageq
70 +++ b/bin/portageq
71 @@ -1,4 +1,4 @@
72 -#!/usr/bin/python -bO
73 +#!/usr/bin/python -b
74 # Copyright 1999-2016 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76
77 diff --git a/tabcheck.py b/tabcheck.py
78 index 2d45cdead..a28ad93d9 100755
79 --- a/tabcheck.py
80 +++ b/tabcheck.py
81 @@ -1,4 +1,4 @@
82 -#!/usr/bin/python -bO
83 +#!/usr/bin/python -b
84
85 import tabnanny,sys
86
87 --
88 2.14.1

Replies