On 29.10.2016 12:51, Laurent Bigonville wrote: > Le 29/10/16 à 12:22, Matthias Klose a écrit : >> On 28.10.2016 16:30, Laurent Bigonville wrote: >>> Package: libpython3.5-dev >>> Version: 3.5.2-6+b1 >>> Severity: normal >>> File: /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.5.pc >>> >>> Hi, >>> >>> The -dev package of libpython provides a .pc file which contains a dash >>> in its name. >>> >>> That dash make it difficult to use in conjunction with py(3)versions. >>> Could you please remove the dash or at least add a symlink. >> I don't think that's appropriate. Please could you show the issue you're >> trying >> to solve? > > I'm trying to build a python module for all the python versions. I'm iterating > over the output of py(3)versions command, the upstream Makefile [0] calls > pkg-config with the python executable name to get the needed cflags. > > 0: https://anonscm.debian.org/cgit/selinux/libselinux.git/tree/src/Makefile
Well, your solution then is easy, just do a $(subst python,python-,...) in your Makefile. It may be unfortunate that pyversions provides a slightly different API, but it's the upstream behaviour, and not modified in the Debian packaging. Looking at your upstream (?) Makefile, it doesn't help if it would be modified for Debian only. Matthias

