NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xsrc/60742: Invalid Requires.private for fontenc.pc
>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
>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).
Home |
Main Index |
Thread Index |
Old Index