Package: pypy-lib Version: 5.10.0+dfsg-3+b1 Severity: normal Tags: patch Hi,
pypy-lib ships a pydist override file for its built-in cffi module in /usr/share/dh-python/dist/pypy/pypy-cffi. However, dh-python looks for those files in /usr/share/pypy/dist/. This makes builds of packages depending on cffi warn with: I: dh_pypy pydist:220: Cannot find package that provides cffi. Please add package that provides it to Build-Depends or add "cffi pypy-cffi" line to debian/pypydist-overrides or add proper dependency to Depends by hand and ignore this info. and, of course, the cffi backend version machinery is ignored. As far as I can tell, the /usr/share/dh-python/dist path seems to be for pydist-overrides shipped by dh-python directly. The (untested) attached patch might do the right thing. Thanks for considering, -- System Information: Debian Release: buster/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages pypy-lib depends on: ii dpkg 1.19.0.5 pypy-lib recommends no packages. pypy-lib suggests no packages. -- no debconf information
>From 0ef3df76767debdc3b0445019ab66049d2f1396a Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont <ol...@debian.org> Date: Tue, 17 Apr 2018 18:13:21 +0200 Subject: [PATCH] Fix pypydist-override path --- debian/scripts/gen-backend-versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/gen-backend-versions.py b/debian/scripts/gen-backend-versions.py index 36cdc37b..9dd5fa80 100755 --- a/debian/scripts/gen-backend-versions.py +++ b/debian/scripts/gen-backend-versions.py @@ -66,7 +66,7 @@ with codecs.open('debian/pypy-lib.substvars', 'a', encoding='UTF-8') as f: with codecs.open('debian/pypy.substvars', 'a', encoding='UTF-8') as f: f.write('pypy-abi={}\n'.format(pypy_abi())) -path = 'debian/pypy-lib/usr/share/dh-python/dist/pypy' +path = 'debian/pypy-lib/usr/share/pypy/dist' os.makedirs(path) with codecs.open(os.path.join(path, 'pypy-cffi'), 'w', encoding='UTF-8') as f: f.write('cffi pypy-cffi-backend-api-min (<= {target}), ' -- 2.17.0