Source: lintian
Version: 2.45.0
Severity: important
Tags: patch
Hello, with python being removed shortly, the following patch makes lintian 
build with the new python2 package


--- lintian-2.45.0/debian/changelog     2020-01-13 13:23:40.000000000 +0100
+++ lintian-2.45.1/debian/changelog     2020-01-16 16:56:24.000000000 +0100
@@ -1,3 +1,9 @@
+lintian (2.45.1) UNRELEASED; urgency=medium
+
+  * Depend and run tests with python2 (Closes: #-1)
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org>  Thu, 16 Jan 2020 
16:56:24 +0100
+
 lintian (2.45.0) unstable; urgency=medium
 
   * Summary of tag changes:
diff -Nru lintian-2.45.0/debian/control lintian-2.45.0ubuntu1/debian/control
--- lintian-2.45.0/debian/control       2020-01-13 13:23:40.000000000 +0100
+++ lintian-2.45.1/debian/control       2020-01-16 16:56:22.000000000 +0100
@@ -81,7 +81,7 @@
  perl <!nocheck>,
  pkg-js-tools <!nocheck>,
  pkg-php-tools <!nocheck>,
- python <!nocheck>,
+ python2 <!nocheck>,
  python-all-dev <!nocheck>,
  python-numpy <!nocheck>,
  python3-docutils,
diff -Nru 
lintian-2.45.0/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
 
lintian-2.45.0ubuntu1/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
--- 
lintian-2.45.0/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
   2020-01-13 13:23:40.000000000 +0100
+++ 
lintian-2.45.1/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
   2020-01-16 16:56:10.000000000 +0100
@@ -47,8 +47,8 @@
 echo '' > "${dir}/fake.py"
 echo 'import fake' > "${dir}/main.py"
 unset PYTHONDONTWRITEBYTECODE
-PYTHONPATH="${dir}" python "${dir}/main.py" > /dev/null
-PYTHONPATH="${dir}" python -O "${dir}/main.py"  > /dev/null
+PYTHONPATH="${dir}" python2 "${dir}/main.py" > /dev/null
+PYTHONPATH="${dir}" python2 -O "${dir}/main.py"  > /dev/null
 rm -f "${dir}"/main.py*
 
 zip -q "${dir}/fake.jar" "${dir}/fake.min.js"
diff -Nru 
lintian-2.45.0/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
 
lintian-2.45.0ubuntu1/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
--- 
lintian-2.45.0/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
    2020-01-13 13:23:40.000000000 +0100
+++ 
lintian-2.45.1/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
    2020-01-16 16:56:00.000000000 +0100
@@ -47,8 +47,8 @@
 echo '' > "${dir}/fake.py"
 echo 'import fake' > "${dir}/main.py"
 unset PYTHONDONTWRITEBYTECODE
-PYTHONPATH="${dir}" python "${dir}/main.py" > /dev/null
-PYTHONPATH="${dir}" python -O "${dir}/main.py"  > /dev/null
+PYTHONPATH="${dir}" python2 "${dir}/main.py" > /dev/null
+PYTHONPATH="${dir}" python2 -O "${dir}/main.py"  > /dev/null
 rm -f "${dir}"/main.py*
 
 zip -q "${dir}/fake.jar" "${dir}/fake.min.js"

Reply via email to