Bug#1059749: sdl.pc: sets SDL_CONFIG to a build architecture pkg-config making it fail for cross compilation

Helmut Grohne helmut at subdivi.de
Sun Dec 31 09:18:15 GMT 2023


Package: libsdl1.2-dev
Version: 1.2.15+dfsg2-8
Tags: patch upstream
File: /usr/share/aclocal/sdl.m4
User: debian-cross at lists.debian.org
Usertags: ftcbfs
Control: affects -1 + src:ltris

ltris fails to cross build from source, because it uses the build
architecture pkg-config. Surprising thing: It doesn't actually mention
pkg-config anywhere. Turns out, it uses SDL_CONFIG, which happens to
expand to "pkg-config sdl" and this is wrong. I'm attaching a patch to
fix that for your convenience.

I believe that libsdl2-dev has the same bug. Would you mind fixing it
there as well? I am not aware of any package using sdl2-config instead
of sdl2.pc though.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 312 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-sdl-maintainers/attachments/20231231/f79702a9/attachment.patch>


More information about the Pkg-sdl-maintainers mailing list