integ/python/python-2.7.5/centos/meta_patches/0003-Make-Python-Faster.patch
slin14 61ab0029fe de-fuzz python patches
When do Centos 7.5 upgraded, some patches didn't resolve and cause
the fuzzy in the line numbers of the patches. And it may cause
.orig file is created when do patch. And this .orig file will lead
to rpm packaging failure due to the unexpected and unpackaged .orig
file.

Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611

Solution:
  Safest solution is to de-fuzz our patches.

Story: 2003389
Task: 26755

Change-Id: Iaf55ba860a02ea096b7cfbfd9b810cc51de18580
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-09-28 07:41:08 +08:00

43 lines
1.1 KiB
Diff

From 089860dac0d15120466dc7d9e38041dbaae505eb Mon Sep 17 00:00:00 2001
From: Al Bailey <Al.Bailey@windriver.com>
Date: Wed, 28 Mar 2018 08:26:56 -0500
Subject: [PATCH] Make Python Faster
---
SPECS/python.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/SPECS/python.spec b/SPECS/python.spec
index 94adb05..36289ea 100644
--- a/SPECS/python.spec
+++ b/SPECS/python.spec
@@ -1259,6 +1259,8 @@ Patch305: 00305-CVE-2016-2183.patch
# above:
Patch5000: 05000-autotool-intermediates.patch
+Patch9000: Rollup-optimization-commits.patch
+
# ======================================================
# Additional metadata, and subpackages
# ======================================================
@@ -1670,6 +1672,7 @@ find -name "*~" |xargs rm -f
%patch5000 -p0 -b .autotool-intermediates
%endif
+%patch9000 -p1
# ======================================================
# Configuring and building the code:
@@ -1800,7 +1803,7 @@ BuildPython debug \
BuildPython optimized \
python \
python%{pybasever} \
- "" \
+ "--enable-optimizations --with-computed-gotos" \
true
--
2.7.4