#1125479 libcups2-dev: installs i386 cups.pc to wrong directory

Package:
libcups2-dev
Source:
libcups2-dev
Description:
Common UNIX Printing System(tm) - Development files CUPS library
Submitter:
Simon McVittie
Date:
2026-01-14 15:05:02 UTC
Severity:
normal
#1125479#5
Date:
2026-01-14 15:02:52 UTC
From:
To:
libcups2-dev since trixie installs a (Debian-specific?) cups.pc
pkg-config file, to make it easier to cross-compile against.

On most architectures this works fine. However, on i386, it's installed
in the wrong directory and therefore not found by pkgconf:

is in:     /usr/lib/i686-linux-gnu/pkgconfig/
should be: /usr/lib/i386-linux-gnu/pkgconfig/

To reproduce, install libcups2-dev:i386 and pkgconf:i386, then run
`pkgconf --cflags --libs cups`.

(hurd-i386 probably has the same bug, I haven't checked.)

debian/rules uses /usr/lib/${DEB_HOST_GNU_TYPE}, but multiarch paths
should be /usr/lib/${DEB_HOST_MULTIARCH}. Luckily, i386 is the only
commonly-used architecture where this distinction matters.

    smcv