Package: python-jenkinsapi Version: 0.3.11-1 Severity: serious Tags: patch ftbfs Justification: fails to build from source (but built successfully in the past) User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu focal ubuntu-patch
Hi, python-jenkinsapi currently fails to build from source after the Python 3 changes. There are a few tweaks that need to be made to get it building again. In Ubuntu, the attached patch was applied to achieve the following: * Fix FTBFS: - Build-depend on dh-python and python3-pbr. - Use pylint instead of pylint3. Thanks for considering the patch. Logan -- System Information: Debian Release: buster/sid APT prefers eoan-updates APT policy: (500, 'eoan-updates'), (500, 'eoan-security'), (500, 'eoan'), (100, 'eoan-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.3.0-29-generic (SMP w/8 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru python-jenkinsapi-0.3.11/debian/control python-jenkinsapi-0.3.11/debian/control --- python-jenkinsapi-0.3.11/debian/control 2020-02-16 18:39:59.000000000 -0500 +++ python-jenkinsapi-0.3.11/debian/control 2020-02-19 22:01:41.000000000 -0500 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Al Stone <a...@debian.org> Build-Depends: debhelper (>= 12), python3-all-dev, python3-lxml, - python3-setuptools, python3-pytest, pylint3 + python3-setuptools, python3-pytest, pylint3, dh-python, python3-pbr Standards-Version: 4.5.0 Homepage: http://pypi.python.org/pypi/jenkinsapi Vcs-Git: https://github.com/ahs3/python-jenkinsapi diff -Nru python-jenkinsapi-0.3.11/debian/patches/codestyle.patch python-jenkinsapi-0.3.11/debian/patches/codestyle.patch --- python-jenkinsapi-0.3.11/debian/patches/codestyle.patch 2020-02-16 18:39:59.000000000 -0500 +++ python-jenkinsapi-0.3.11/debian/patches/codestyle.patch 2020-02-19 22:01:41.000000000 -0500 @@ -1,11 +1,10 @@ -diff -Naur orig-jenkinsapi/Makefile fixed-jenkinsapi/Makefile ---- orig-jenkinsapi/Makefile 2020-02-16 17:49:45.404336646 -0700 -+++ fixed-jenkinsapi/Makefile 2020-02-16 17:50:25.352625604 -0700 +--- a/Makefile ++++ b/Makefile @@ -1,7 +1,6 @@ .PHONY: lint tox dist lint: - pycodestyle - pylint3 jenkinsapi/*.py + pylint jenkinsapi/*.py tox: diff -Nru python-jenkinsapi-0.3.11/debian/patches/install.patch python-jenkinsapi-0.3.11/debian/patches/install.patch --- python-jenkinsapi-0.3.11/debian/patches/install.patch 2020-02-16 18:39:59.000000000 -0500 +++ python-jenkinsapi-0.3.11/debian/patches/install.patch 2020-02-19 22:01:41.000000000 -0500 @@ -1,12 +1,11 @@ -diff -Naur orig-jenkinsapi/Makefile fixed-jenkinsapi/Makefile ---- orig-jenkinsapi/Makefile 2020-02-16 18:11:36.225956771 -0700 -+++ fixed-jenkinsapi/Makefile 2020-02-16 18:13:10.706654980 -0700 +--- a/Makefile ++++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: lint tox dist +.PHONY: lint tox dist install lint: - pylint3 jenkinsapi/*.py + pylint jenkinsapi/*.py @@ -9,3 +9,5 @@ dist: python3 setup.py sdist bdist_wheel diff -Nru python-jenkinsapi-0.3.11/debian/patches/python3.patch python-jenkinsapi-0.3.11/debian/patches/python3.patch --- python-jenkinsapi-0.3.11/debian/patches/python3.patch 2020-02-16 18:39:59.000000000 -0500 +++ python-jenkinsapi-0.3.11/debian/patches/python3.patch 2020-02-19 22:01:41.000000000 -0500 @@ -1,7 +1,6 @@ -diff -Naur python-jenkinsapi.github/Makefile fixed-jenkinsapi/Makefile ---- python-jenkinsapi.github/Makefile 2020-02-16 16:46:46.767307926 -0700 -+++ fixed-jenkinsapi/Makefile 2020-02-16 17:02:37.545891630 -0700 -@@ -1,17 +1,17 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,7 @@ .PHONY: test lint tox coverage dist test: @@ -10,10 +9,7 @@ lint: pycodestyle -- pylint jenkinsapi/*.py -+ pylint3 jenkinsapi/*.py - - tox: +@@ -11,7 +11,7 @@ tox dist: