Package: libpython3.6-dbg
Version: 3.6.5-1
Severity: important

Dear Maintainer,

the libpython3.6-dbg package has a typo in the shipped pkg-config file.

  # cat /usr/lib/x86_64-linux-gnu/pkgconfig/python3-dbg.pc
  # See: man pkg-config
  prefix=/usr
  exec_prefix=${prefix}
  includedir=${prefix}/include

  Name: Python
  Description: Python library
  Requires: 
  Version: 3.6
  Libs.private: -lpthread -ldl  -lutil
  Libs: -lpython3.6dmdm
  Cflags: -I${includedir}/python3.6dm 
-I${includedir}/x86_64-linux-gnu/python3.6dm

The Libs attribute is set to `-lpython3.6dmdm` which shoud be
`-lpython3.6dm` instead. Linking with e.g. meson (which uses pkg-config
to figure out the relevant flags) against python3-dbg fails with:

  /usr/bin/ld: cannot find -lpython3.6dmdm
  collect2: error: ld returned 1 exit status

Manually setting the Libs attribute to `-lpython3.6dm` fixes the issue.
IIRC the same issue is present in builds for Python 3.5.

Stefan


-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpython3.6-dbg depends on:
ii  libbz2-1.0           1.0.6-8.1
ii  libc6                2.27-3
ii  libdb5.3             5.3.28-13.1+b1
ii  libexpat1            2.2.5-3
ii  libffi6              3.2.1-8
ii  liblzma5             5.2.2-1.3
ii  libmpdec2            2.4.2-1
ii  libncursesw5         6.1-1
ii  libpython3.6-stdlib  3.6.5-1
ii  libreadline7         7.0-3
ii  libsqlite3-0         3.22.0-2
ii  libssl1.1            1.1.0h-2
ii  libtinfo5            6.1-1
ii  zlib1g               1:1.2.8.dfsg-5

libpython3.6-dbg recommends no packages.

libpython3.6-dbg suggests no packages.

-- no debconf information

Reply via email to