dev-python/kconfiglib: fix build with py2
authorTim Harder <radhermit@gentoo.org>
Thu, 18 Jul 2019 23:56:12 +0000 (17:56 -0600)
committerTim Harder <radhermit@gentoo.org>
Thu, 18 Jul 2019 23:57:10 +0000 (17:57 -0600)
Closes: https://bugs.gentoo.org/690182

Signed-off-by: Tim Harder <radhermit@gentoo.org>
dev-python/kconfiglib/files/kconfiglib-12.12.1-setup.patch [new file with mode: 0644]
dev-python/kconfiglib/kconfiglib-12.12.1.ebuild

diff --git a/dev-python/kconfiglib/files/kconfiglib-12.12.1-setup.patch b/dev-python/kconfiglib/files/kconfiglib-12.12.1-setup.patch
new file mode 100644 (file)
index 0000000..b5225e9
--- /dev/null
@@ -0,0 +1,16 @@
+Python2's ConfigParser module used by setuptools throws parsing errors when
+encountering tab characters.
+
+--- Kconfiglib-12.12.1/setup.cfg
++++ Kconfiglib-12.12.1/setup.cfg
+@@ -1,6 +1,6 @@
+ [bdist_wheel]
+-      # We support both Python 2 and Python 3
+-      universal = 1
++# We support both Python 2 and Python 3
++universal = 1
+ [metadata]
+-      # Include the license file in wheels
+-      license_file = LICENSE.txt
++# Include the license file in wheels
++license_file = LICENSE.txt
index 34529da5d919c2447b0a1387ef1fe544db120281..b1a5baccde7ca732b538d51569d8865ca9007089 100644 (file)
@@ -23,6 +23,8 @@ RDEPEND="${DEPEND}"
 
 S=${WORKDIR}/${P/k/K}
 
+PATCHES=( "${FILESDIR}"/${P}-setup.patch )
+
 python_prepare_all() {
        distutils-r1_python_prepare_all