Bug#909740: libsdl2-dev: No longer multi-arch co-installable

Simon McVittie smcv at debian.org
Sun Sep 30 22:17:05 BST 2018


On Sun, 30 Sep 2018 at 22:02:59 +0300, Adrian Bunk wrote:
> Wouldn't the least invasive option be a combination of
> 1. my --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) suggestion plus
> 2. the sdl2-config patching from Hugh

Maybe. You'd have to patch sdl2-config somewhat more extensively than
Hugh's patch, though, to remove the references to the configured
@includedir@ (which would vary by architecture if you use that
--includedir, making /usr/bin/sdl2-config non-co-installable until it
was removed).

Does someone want to put together and test a complete implementation
of this?

> When doing 1. the build system will use the correct paths in the 
> pkg-config and cmake files.

Ugh, I'd missed that there's a third API for building dependent software
(the CMake files). The autopkgtest that I added should ideally test this
one too, but I think that'll probably need a proper CMake build system
(at least one CMakeLists.txt), not just a one-liner?

I think the forwarding header should work OK with this approach, and your
plan with --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) would
obviously also work, but any approach that involves patching the .pc.in
file would also have to patch the .cmake.in file.

    smcv



More information about the Pkg-sdl-maintainers mailing list