summaryrefslogtreecommitdiff
path: root/dev-python/subunit
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/subunit')
-rw-r--r--dev-python/subunit/Manifest5
-rw-r--r--dev-python/subunit/files/subunit-1.4.0-werror.patch34
-rw-r--r--dev-python/subunit/metadata.xml1
-rw-r--r--dev-python/subunit/subunit-1.4.0.ebuild7
4 files changed, 44 insertions, 3 deletions
diff --git a/dev-python/subunit/Manifest b/dev-python/subunit/Manifest
index acb8c4d8f6dd..d9fed030f95e 100644
--- a/dev-python/subunit/Manifest
+++ b/dev-python/subunit/Manifest
@@ -1,3 +1,4 @@
+AUX subunit-1.4.0-werror.patch 1307 BLAKE2B e714e82827c0c30b514ea9f43dfcff1702bd93b9e4f1e5c44029a84deb3de8c84a351baec097b545dc00ac7f0d56f85b917a53c23d501a8b93c35632d43c14d1 SHA512 444b4d2755b395f904dd341992cd2d7df60924b4111e552b6a61b6c6113397b3b6e4dd12b2bab7d408a306b3037e361217c7cda5473d94ca746ceab4e1136cbd
DIST subunit-1.4.0.tar.gz 488022 BLAKE2B 4c3a714d02eeed9420074c4e032778a69b716a5cad0079193533e9bc8c0f4576d70b165eb413203ce8a916ac28466e9f5a113d4a7746019d7d09409df9860bae SHA512 5d2e3cb96c09067ef4595c86648f13330c810b19e39c0b35bc9546c57bee957ddcf5cad7b8e3f92bda9b54dcdbf175863e2f6ba94020f880230459be7afdbbcf
-EBUILD subunit-1.4.0.ebuild 2393 BLAKE2B 63ab420a93aca76d9d7c92a6f3fd50ced3267a6bbe076688e904220a6e9102de3138944faa63cdad2bbbf441233659e1076003d0c55812e8a9c9ea276849f106 SHA512 990b8897a6bd8b3af9f101bbd23677bf18e265e2089e793d2c188a5632abfea4e59f5dc10341800b7e01fd1701829f4aabe19c7282bddfebb60253704f41cbd4
-MISC metadata.xml 422 BLAKE2B 7835651c50d6d889887dc834dcc5a387cfea9c61867570b6c98790a1c7ea49c01a75868f6bec4f31ffc46a38dba51eb2c4ff0b6da8f8acfe6059e11e3db7f727 SHA512 dcac9ba5ff93016141b433c16b9d1a526ec2babd39721d75a6edd235eb6388500ea8228b6c8c88eacbb12c732c36883c0b698f7039aca7909890fe16cb895cb8
+EBUILD subunit-1.4.0.ebuild 2471 BLAKE2B f9e767d024616ca8d504871903e1fabdb78e92cc126eeb9c0cacdf373fcb1ddcbfc147addab091960634cd28214ba8822bcad6aea176a717f06165106f0ea7fc SHA512 39b9330002f0d79a68519f6e4178b5085f12034659c8384d3b27b1d1ee081be72360098c6da60aa83845075dea805afef10a9080d6fd3aee98c9845cfcf10328
+MISC metadata.xml 474 BLAKE2B c6e5e74bfae996deae0adce7fbdd4262c55c67389b62e549cccca2d42a464bed2dd9d711585ca391cd30ef1f76da30beafa5a8d54ad8f79b539106265757c039 SHA512 d2041aecf3846526bdad951d31ca5d9014efb7cc711f5cb974cbaee3f87e9c705ff8ac6bf02433685d19a57ad7930ee1a25267fffe8db54341e0ca8812fc7008
diff --git a/dev-python/subunit/files/subunit-1.4.0-werror.patch b/dev-python/subunit/files/subunit-1.4.0-werror.patch
new file mode 100644
index 000000000000..e64f74a655ef
--- /dev/null
+++ b/dev-python/subunit/files/subunit-1.4.0-werror.patch
@@ -0,0 +1,34 @@
+# https://bugs.gentoo.org/744313
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,11 +4,11 @@
+ m4_define([SUBUNIT_VERSION],
+ m4_defn([SUBUNIT_MAJOR_VERSION]).m4_defn([SUBUNIT_MINOR_VERSION]).m4_defn([SUBUNIT_MICRO_VERSION]))
+ AC_PREREQ([2.59])
+ AC_INIT([subunit], [SUBUNIT_VERSION], [subunit-dev@lists.launchpad.net])
+ AC_CONFIG_SRCDIR([c/lib/child.c])
+-AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
++AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
+ AC_CONFIG_MACRO_DIR([m4])
+ [SUBUNIT_MAJOR_VERSION]=SUBUNIT_MAJOR_VERSION
+ [SUBUNIT_MINOR_VERSION]=SUBUNIT_MINOR_VERSION
+ [SUBUNIT_MICRO_VERSION]=SUBUNIT_MICRO_VERSION
+ [SUBUNIT_VERSION]=SUBUNIT_VERSION
+@@ -26,14 +26,14 @@
+ AC_PROG_LIBTOOL
+ AM_PATH_PYTHON
+
+ AS_IF([test "$GCC" = "yes"],
+ [
+- SUBUNIT_CFLAGS="-Wall -Werror -Wextra -Wstrict-prototypes "
++ SUBUNIT_CFLAGS="-Wall -Wextra -Wstrict-prototypes "
+ SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wmissing-prototypes -Wwrite-strings "
+ SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wno-variadic-macros "
+- SUBUNIT_CXXFLAGS="-Wall -Werror -Wextra -Wwrite-strings -Wno-variadic-macros"
++ SUBUNIT_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wno-variadic-macros"
+ ])
+
+ AM_CFLAGS="$SUBUNIT_CFLAGS -I\$(top_srcdir)/c/include"
+ AM_CXXFLAGS="$SUBUNIT_CXXFLAGS -I\$(top_srcdir)/c/include"
+ AC_SUBST(AM_CFLAGS)
diff --git a/dev-python/subunit/metadata.xml b/dev-python/subunit/metadata.xml
index e42cdff158cf..7bea5be9594d 100644
--- a/dev-python/subunit/metadata.xml
+++ b/dev-python/subunit/metadata.xml
@@ -11,5 +11,6 @@
</maintainer>
<upstream>
<remote-id type="launchpad">subunit</remote-id>
+ <remote-id type="pypi">python-subunit</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-python/subunit/subunit-1.4.0.ebuild b/dev-python/subunit/subunit-1.4.0.ebuild
index 0719cf5c65f3..9962579f395e 100644
--- a/dev-python/subunit/subunit-1.4.0.ebuild
+++ b/dev-python/subunit/subunit-1.4.0.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{6..9} pypy3 )
-inherit distutils-r1 multilib-minimal
+inherit distutils-r1 multilib-minimal autotools
DESCRIPTION="A streaming protocol for test results"
HOMEPAGE="https://launchpad.net/subunit https://pypi.org/project/python-subunit/"
@@ -34,6 +34,10 @@ DEPEND="
dev-python/testscenarios[${PYTHON_USEDEP}]
)"
+PATCHES=(
+ "${FILESDIR}/subunit-1.4.0-werror.patch"
+)
+
src_prepare() {
sed -i -e 's/os.chdir(os.path.dirname(__file__))//' setup.py || die
@@ -45,6 +49,7 @@ src_prepare() {
python/subunit/tests/test_subunit_tags.py || die
distutils-r1_src_prepare
+ eautoreconf
multilib_copy_sources
}