[gcc-python-plugin] 0.13-1
dmalcolm
dmalcolm at fedoraproject.org
Wed Oct 1 15:53:19 UTC 2014
commit f3acaab951da5439a55d6c85274cea3408427dec
Author: David Malcolm <dmalcolm at redhat.com>
Date: Wed Oct 1 10:01:17 2014 -0400
0.13-1
* Wed Oct 1 2014 David Malcolm <dmalcolm at redhat.com> - 0.13-1
- 0.13; drop patches 1-7, add requirements on python-lxml and
python3-lxml
- update to python 3.4
- add fixes for python 3.4 (patch 1) and arm (patch 2)
.gitignore | 1 +
arm-fixes.patch | 17 ++++++++
fix-3.3.0-iter-kwargs.patch | 51 ------------------------
fix-gc.patch | 37 -----------------
fix-graph-ordering.patch | 38 ------------------
fix-python-3.4-failures.patch | 14 +++++++
fix-test-plugin-sys-basename.patch | 12 ------
gcc-python-plugin-0.11-failing-tests.patch | 28 -------------
gcc-python-plugin.spec | 59 ++++++++++------------------
skip-failing-tests.patch | 18 --------
sources | 2 +-
use-signed-char.patch | 21 ----------
12 files changed, 54 insertions(+), 244 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 66f562e..4da908d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/gcc-python-plugin-0.9.tar.gz
/gcc-python-plugin-0.11.tar.gz
/gcc-python-plugin-0.12.tar.gz
+/gcc-python-plugin-0.13.tar.gz
diff --git a/arm-fixes.patch b/arm-fixes.patch
new file mode 100644
index 0000000..9c407fe
--- /dev/null
+++ b/arm-fixes.patch
@@ -0,0 +1,17 @@
+diff -up gcc-python-plugin-0.13/run-test-suite.py.arm-fixes gcc-python-plugin-0.13/run-test-suite.py
+--- gcc-python-plugin-0.13/run-test-suite.py.arm-fixes 2014-10-01 11:19:37.223370569 -0400
++++ gcc-python-plugin-0.13/run-test-suite.py 2014-10-01 11:21:50.673303529 -0400
+@@ -664,6 +664,13 @@ if sys.version_info[0] == 3 and sys.vers
+ exclude_test('tests/plugin/callgraph')
+ exclude_test('tests/plugin/rtl')
+
++# Tests failing on armv7hl with gcc-4.9.1-11.fc22
++for test in ('''
++ tests/cpychecker/absinterp/array-range/fully-checked-on-stack
++ tests/cpychecker/refcounts/PyArg_UnpackTuple/missing-initialization
++'''.split()):
++ exclude_test(test)
++
+ def run_one_test(testdir):
+ try:
+ sys.stdout.write('%s: ' % testdir)
diff --git a/fix-python-3.4-failures.patch b/fix-python-3.4-failures.patch
new file mode 100644
index 0000000..5834b26
--- /dev/null
+++ b/fix-python-3.4-failures.patch
@@ -0,0 +1,14 @@
+diff -up gcc-python-plugin-0.13/run-test-suite.py.fix-python-3.4-failures gcc-python-plugin-0.13/run-test-suite.py
+--- gcc-python-plugin-0.13/run-test-suite.py.fix-python-3.4-failures 2014-09-30 15:19:21.000000000 -0400
++++ gcc-python-plugin-0.13/run-test-suite.py 2014-10-01 10:46:07.559560206 -0400
+@@ -659,6 +659,10 @@ if GCC_VERSION == 4006:
+ # repr() for gcc.CaseLabelExpr and gcc.GimpleLabel
+ exclude_test('tests/plugin/switch')
+
++# Tests failing due to repr changes in Python 3.4+
++if sys.version_info[0] == 3 and sys.version_info[1] >= 4:
++ exclude_test('tests/plugin/callgraph')
++ exclude_test('tests/plugin/rtl')
+
+ def run_one_test(testdir):
+ try:
diff --git a/gcc-python-plugin.spec b/gcc-python-plugin.spec
index d1080c4..cf90d7e 100644
--- a/gcc-python-plugin.spec
+++ b/gcc-python-plugin.spec
@@ -38,46 +38,20 @@
%global with_hard_gcc_version_requirement 1
-%global python3_debug_config python3.3dm-config
+%global python3_debug_config python3.4dm-config
Name: gcc-python-plugin
-Version: 0.12
-Release: 20%{?dist}
+Version: 0.13
+Release: 1%{?dist}
Summary: GCC plugin that embeds Python
Group: Development/Languages
License: GPLv3+
URL: https://fedorahosted.org/gcc-python-plugin/
Source0: https://fedorahosted.org/releases/g/c/gcc-python-plugin/gcc-python-plugin-%{version}.tar.gz
-
-# Temporary fix for FTBFS:
-# https://fedorahosted.org/gcc-python-plugin/ticket/42
-Patch1: gcc-python-plugin-0.11-failing-tests.patch
-
-# Fix for 3.3.0 incompatibility
-# Taken from upstream commit f6ec7e2462357dfcbd1f65625ac939d4e815ce05
-Patch2: fix-3.3.0-iter-kwargs.patch
-
-# tests/plugin/sys/script.py expects the plugin basename to just be
-# "python". Fix it up to allow the 4 builds we do
-# Taken from upstream commit a292074efee5c291d93a076af860e3ec3b10791f
-Patch3: fix-test-plugin-sys-basename.patch
-
-# Fix for a couple of testsuite failures with Python 3, taken from upstream
-# commit 58dca113481e9d392d599b871480765d551edd9c
-Patch4: fix-graph-ordering.patch
-
-# Fix for GC crash, taken from upstream
-# commit d26a81efedbb7efec8aaef4bb4e01f354fe6a681
-Patch5: fix-gc.patch
-
-# Use -fsigned-char when running selftests, taken from upstream
-# commit 2f208bbd41d8ec6f1988f8b66fbdfc48175543b8
-Patch6: use-signed-char.patch
-
-# Skip some more failing tests
-Patch7: skip-failing-tests.patch
+Patch1: fix-python-3.4-failures.patch
+Patch2: arm-fixes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -107,6 +81,10 @@ BuildRequires: python-sphinx
BuildRequires: python-pygments
BuildRequires: python3-pygments
+# lxml is used when running the selftests:
+BuildRequires: python-lxml
+BuildRequires: python3-lxml
+
%global gcc_plugins_dir %(gcc --print-file-name=plugin)
%description
@@ -128,6 +106,7 @@ Requires: gcc
%package -n gcc-python2-plugin
Summary: GCC plugin embedding Python 2
Group: Development/Languages
+Requires: python-lxml
Requires: python-six
Requires: python-pygments
%if %{with_hard_gcc_version_requirement}
@@ -143,6 +122,7 @@ GCC plugin embedding Python 2
%package -n gcc-python3-plugin
Summary: GCC plugin embedding Python 3
Group: Development/Languages
+Requires: python3-lxml
Requires: python3-six
Requires: python3-pygments
%if %{with_hard_gcc_version_requirement}
@@ -158,6 +138,7 @@ GCC plugin embedding Python 3
%package -n gcc-python2-debug-plugin
Summary: GCC plugin embedding Python 2 debug build
Group: Development/Languages
+Requires: python-lxml
Requires: python-six
Requires: python-pygments
%if %{with_hard_gcc_version_requirement}
@@ -173,6 +154,7 @@ GCC plugin embedding debug build of Python 2
%package -n gcc-python3-debug-plugin
Summary: GCC plugin embedding Python 3 debug build
Group: Development/Languages
+Requires: python3-lxml
Requires: python3-six
Requires: python3-pygments
%if %{with_hard_gcc_version_requirement}
@@ -196,13 +178,8 @@ This package contains API documentation for the GCC Python plugin
%prep
%setup -q
-%patch1 -p1 -b .failing-tests
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
+%patch1 -p1 -b .fix-python-3.4-failures
+%patch2 -p1 -b .arm-fixes.patch
# We will be building the plugin 4 times, each time against a different
# Python runtime
@@ -468,6 +445,12 @@ CheckPlugin \
%doc examples
%changelog
+* Wed Oct 1 2014 David Malcolm <dmalcolm at redhat.com> - 0.13-1
+- 0.13; drop patches 1-7, add requirements on python-lxml and
+python3-lxml
+- update to python 3.4
+- add fixes for python 3.4 (patch 1) and arm (patch 2)
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/sources b/sources
index c421f54..cf3840c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0ecff018b65fea00ffa9075260031c44 gcc-python-plugin-0.12.tar.gz
+a25ee9b2cf046c2db65c0bc6d6204b5b gcc-python-plugin-0.13.tar.gz
More information about the scm-commits
mailing list