NetBSD Problem Report #60742

From leot@netbsd.org  Fri Sep 18 18:47:49 2026
Return-Path: <leot@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 "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 25DC71A923B
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 18 Sep 2026 18:47:49 +0000 (UTC)
Message-Id: <20260918184748.B4F018561D@mail.netbsd.org>
Date: Fri, 18 Sep 2026 18:47:48 +0000 (UTC)
From: leot@NetBSD.org
Reply-To: leot@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Invalid Requires.private for fontenc.pc
X-Send-Pr-Version: 3.95
X-From4GNATS: "leot@NetBSD.org via gnats" <gnats-admin@NetBSD.org>

>Number:         60742
>Category:       xsrc
>Synopsis:       Invalid Requires.private for fontenc.pc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 18 18:50:00 +0000 2026
>Last-Modified:  Fri Sep 18 23:20:01 +0000 2026
>Originator:     Leonardo Taccari
>Release:        NetBSD 11.99.8
>Organization:
The wanna be sed(1)ated, oh oh oh Foundation
>Environment:
System: NetBSD boh 11.99.8 NetBSD 11.99.8 (GENERIC) #0: Fri Sep 4 13:27:55 CEST 2026 leot@abacus:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	fontenc.pc pkgconfig file installed in NetBSD-current (-11 and -10 are
	not affected) has incorrect Requires.private, generated
	/usr/X11R7/lib/pkgconfig/fontenc.pc is:

	   ...
	     6  Name: fontenc
	     7  Description: The fontenc Library
	     8  URL: https://gitlab.freedesktop.org/xorg/lib/libfontenc/
	     9  Version: 1.1.9
	    10  Requires.private: -lz
	    11  Libs: -Wl,-rpath,${libdir} -L${libdir} -lfontenc
	   ...

	The Requires.private is incorrect and it should be "zlib" instead of
	"-lz" (we need to specify packages there).
>How-To-Repeat:
	Code inspection in generated /usr/X11R7/lib/pkgconfig/fontenc.pc.
	Also checks src/external/mit/xorg/lib/libfontenc/Makefile:

	   ...
	    22  PKGCONFIG_SED_FLAGS= \
	    23          -e "s,@Z_REQUIRES@,-lz,"
	   ...

	And also:

	 $ pkg-config --libs fontenc
	 Package -lz was not found in the pkg-config search path.
	 Perhaps you should add the directory containing `-lz.pc'
	 to the PKG_CONFIG_PATH environment variable
	 Package '-lz', required by 'fontenc', not found

>Fix:
	In src/external/mit/xorg/lib/libfontenc/Makefile we need to change the
	@Z_REQUIRES@ to zlib (instead of -lz).

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: xsrc/60742: Invalid Requires.private for fontenc.pc
Date: Sat, 19 Sep 2026 01:15:01 +0200

 leot@NetBSD.org via gnats writes:
 > [...]
 > >Description:
 > 	fontenc.pc pkgconfig file installed in NetBSD-current (-11 and -10 are
 > 	not affected) has incorrect Requires.private, generated
 > 	/usr/X11R7/lib/pkgconfig/fontenc.pc is:
 > 	
 > 	   ...
 > 	     6  Name: fontenc
 > 	     7  Description: The fontenc Library
 > 	     8  URL: https://gitlab.freedesktop.org/xorg/lib/libfontenc/
 > 	     9  Version: 1.1.9
 > 	    10  Requires.private: -lz
 > 	    11  Libs: -Wl,-rpath,${libdir} -L${libdir} -lfontenc
 > 	   ...
 > 	
 > 	The Requires.private is incorrect and it should be "zlib" instead of
 > 	"-lz" (we need to specify packages there).
 > [...]

 JFTR, this was reported in private by Chavdar Ivanov and then further
 analyzed by myself.

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.