Source: mypy
Severity: normal
User: [email protected]
Usertags: python3.6

Dear Maintainer,

Thanks to imprecise globbing, the build fails when there is more than one
supported version of Python 3. Patch attached.

Cheers,
mwh

-- System Information:
Debian Release: stretch/sid
  APT prefers artful-proposed
  APT policy: (500, 'artful-proposed'), (500, 'artful')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-81-generic (SMP w/4 CPU cores)
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 /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru mypy-0.511/debian/changelog mypy-0.511/debian/changelog
--- mypy-0.511/debian/changelog 2017-06-25 04:49:52.000000000 +1200
+++ mypy-0.511/debian/changelog 2017-06-26 12:28:09.000000000 +1200
@@ -1,3 +1,10 @@
+mypy (0.511-1ubuntu1) artful; urgency=medium
+
+  * d/rules: fix manpage build when multiple versions of Python 3 are
+    supported.
+
+ -- Michael Hudson-Doyle <[email protected]>  Mon, 26 Jun 2017 
12:02:52 +1200
+
 mypy (0.511-1) unstable; urgency=medium
 
   * Run the upstream tests
diff -Nru mypy-0.511/debian/control mypy-0.511/debian/control
--- mypy-0.511/debian/control   2017-06-25 03:49:28.000000000 +1200
+++ mypy-0.511/debian/control   2017-06-26 12:03:37.000000000 +1200
@@ -1,5 +1,6 @@
 Source: mypy
-Maintainer: Debian Med Packaging Team 
<[email protected]>
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Debian Med Packaging Team 
<[email protected]>
 Uploaders: Michael R. Crusoe <[email protected]>
 Section: python
 Priority: optional
diff -Nru mypy-0.511/debian/rules mypy-0.511/debian/rules
--- mypy-0.511/debian/rules     2017-06-25 03:53:48.000000000 +1200
+++ mypy-0.511/debian/rules     2017-06-26 12:10:07.000000000 +1200
@@ -3,17 +3,18 @@
 # DH_VERBOSE := 1
 export PYBUILD_NAME = mypy
 export PYBUILD_DISABLE=test
-PPATH=$(CURDIR):$(CURDIR)/lib-typing/3.2
+PPATH=$(CURDIR)
+PY3V=$(shell py3versions -dv)
 include /usr/share/dpkg/pkg-info.mk
 %:
        dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_auto_build:
        dh_auto_build
-       PYTHONPATH=$(PPATH) help2man build/*/mypy --no-info \
+       PYTHONPATH=$(PPATH) help2man build/scripts-$(PY3V)/mypy --no-info \
                   --version-string="${DEB_VERSION_UPSTREAM}" \
                   --name 'Optional Static Typing for Python' > debian/mypy.1
-       PYTHONPATH=$(PPATH) help2man build/*/stubgen --no-info \
+       PYTHONPATH=$(PPATH) help2man build/scripts-$(PY3V)/stubgen --no-info \
                   --no-discard-stderr 
--version-string="${DEB_VERSION_UPSTREAM}" \
                   --name 'Generate draft stubs for Python modules.' > \
                   debian/stubgen.1

Reply via email to