NetBSD Problem Report #59830

From www@netbsd.org  Thu Dec 11 03:25:30 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2AD841A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Dec 2025 03:25:30 +0000 (UTC)
Message-Id: <20251211032529.018B51A923A@mollari.NetBSD.org>
Date: Thu, 11 Dec 2025 03:25:28 +0000 (UTC)
From: zr90004@gmail.com
Reply-To: zr90004@gmail.com
To: gnats-bugs@NetBSD.org
Subject: /usr/pkg/lib/pkgconfig/sdl2.pc NOT found by CMAKE
X-Send-Pr-Version: www-1.0

>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:/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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.