[Pkg-utopia-maintainers] Bug#864451: xdg-desktop-portal-dev is wrongly marked Multi-Arch: foreign

Simon McVittie smcv at debian.org
Thu Jun 8 21:27:08 UTC 2017


On Thu, 08 Jun 2017 at 21:22:27 +0200, Helmut Grohne wrote:
> xdg-desktop-portal-gtk fails to cross build from source. It fails to
> find xdg-desktop-portal.pc even though it depends on
> xdg-desktop-portal-dev. Since the latter is marked Multi-Arch: foreign,
> the build architecture instance is selected, but the shipped .pc file is
> on an architecture-dependent path. It thus certainly does not qualify
> for Multi-Arch: foreign.

Other than this .pc file, the -dev package only contains D-Bus
introspection XML (from which other packages can generate code);
so it seems better to use --libdir=/usr/lib (to avoid per-arch
variation - the ${libdir} is mentioned but unused), move the
.pc file to /usr/share/pkgconfig, and keep it M-A: foreign.

xdg-desktop-portal-dev has more in common with, for example,
x11proto-core-dev than it does with libflatpak-dev.

I'll send patches upstream to cut out the bits that have clearly
been cargo-culted from a library's pkg-config metadata.

    S



More information about the Pkg-utopia-maintainers mailing list