package: dh-python version: 2.20160721 severity: normal Dear maintainer,
I wanted to add a bunch of <!nocheck> build profiles to a python package of mine, but stumbled upon this dh-python's bug. When using the --recommends flag, dh_python[23] look up the python package name and translates it into a debian package name; then it also add a version restriction if such restriction is imposed on the same pacakge in d/control. Sadly, if I add a build conflict to that package in d/control, such restriction is copied too, and since that makes no sense in binary packages relationship (such a Recommends), dpkg-deb failes to build the .deb: dh_builddeb dpkg-deb --build debian/python3-foo .. dpkg-deb: error: parsing file 'debian/python3-foo/DEBIAN/control' near line 7 package 'python3-foo': 'Recommends' field, reference to 'python3-argcomplete': error in version: version number does not start with digit dh_builddeb: dpkg-deb --build debian/python3-foo .. returned exit code 2 If then I go look into the debian/python3-foo.substvars file: python3:Recommends=python3-argcomplete (<!nocheck>) misc:Depends= misc:Pre-Depends= You can fetch a very minimal reproducer at (just dget it): https://volatile.mapreri.org/2016-08-13/5a2012d2770a9b8bcee29113b32e2f4f/broken_0.0.0.0.dsc -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature