Package: meson
Version: 0.56.0-1.1
Severity: normal

Meson's debian package currently does not depend on dpkg-dev.

However, default_libdir() tries to run dpkg-architecture:
https://github.com/mesonbuild/meson/blob/0.56.0/mesonbuild/mesonlib.py#L743

Consequence: meson will install libraries to $PREFIX/lib64 instead of expected 
path $PREFIX/lib/x86_64-linux-gnu

Reproduce:

    $ docker run --rm -it debian:sid-slim
    $ apt-get update && apt-get install meson
    $ dpkg-architecture -qDEB_HOST_MULTIARCH prints
    bash: dpkg-architecture: command not found

Expected:

    $ apt-get update && apt-get install meson
    $ dpkg-architecture -qDEB_HOST_MULTIARCH
    x86_64-linux-gnu

Suggested fix:
Add dpkg-dev to "Recommends:" header of meson's debian packge.

Bug previously reported upstream:
https://github.com/mesonbuild/meson/issues/7270

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-56-generic (SMP w/8 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Attachment: signature.asc
Description: PGP signature

Reply via email to