NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/59830: /usr/pkg/lib/pkgconfig/sdl2.pc NOT found by CMAKE



>Number:         59830
>Category:       lib
>Synopsis:       /usr/pkg/lib/pkgconfig/sdl2.pc NOT found by CMAKE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 11 03:30:00 +0000 2025
>Originator:     Lubo
>Release:        10.1
>Organization:
>Environment:
netbsd-qemu 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
I was attempting to build:
https://github.com/afwbkbc/glsmac

It uses CMAKE, but failed to find the (already installed) SDL2, while it did find SDL2_image.

Comparing the two, SDL2_image has a file:
/usr/pkg/lib/pkgconfig/SDL2_image.pc

While the corresponding file for SDL2 is:
/usr/pkg/lib/pkgconfig/sdl2.pc

I made a new file /usr/pkg/lib/pkgconfig/SDL2.pc by copying sdl2.pc into it. CMAKE detected it correctly.

It would appear this is a (n edge?) case of case-sensitivity, and the SDL2 package should be patched to capitalize SDL2.pc.
>How-To-Repeat:
Build any package that depends on SDL2, but especially:
https://github.com/afwbkbc/glsmac
>Fix:
It would appear this is a (n edge?) case of case-sensitivity, and the SDL2 package should be patched to capitalize SDL2.pc.

Patching the next release/revision would be the best solution.



Home | Main Index | Thread Index | Old Index