NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/57548: lib/pkgconfig/liblzma.pc is missing in base
>Number: 57548
>Category: lib
>Synopsis: lib/pkgconfig/liblzma.pc is missing in base
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 29 03:00:01 +0000 2023
>Originator: Izumi Tsutsui
>Release: NetBSD 9.3
>Organization:
>Environment:
System: NetBSD optiplex 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
After pkgsrc-2023Q1 pkgsrc/graphics/tiff 4.5.0 installs the following
pkgconfig file libtiff-4.pc:
---
prefix=/usr/pkg
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libtiff
Description: Tag Image File Format (TIFF) library.
Version: 4.5.0
Libs: -Wl,-R${libdir} -L${libdir} -ltiff
Libs.private: -llzma -ljbig -ljpeg -lz -lm
Cflags: -I${includedir}
Requires.private: liblzma libjpeg zlib
---
Note tiff 4.4.0 in pkgsrc-2022Q4 installs:
---
prefix=/usr/pkg
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libtiff
Description: Tag Image File Format (TIFF) library.
Version: 4.4.0
Libs: -Wl,-R${libdir} -L${libdir} -ltiff
Libs.private: -llzma -ljbig -ljpeg -lz -lm
Cflags: -I${includedir}
Requires.private:
---
I.e. "-llzma" (and other libraries) are added to "Requires.private"
after tiff-4.5.0.
However, on NetBSD 9.3 liblzma is in the base set and it doesn't provide
pkgconfig file for liblzma. Then certain packages that check dependencies
of libtiff-4 using pkg-config complains:
---
checking for
gtk+-2.0
... no
configure: error: Package requirements (
gtk+-2.0
) were not met:
Package 'liblzma', required by 'libtiff-4', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTK2_CFLAGS
and GTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
---
>How-To-Repeat:
Found on ibus CI distcheck.
https://github.com/tsutsui/ibus/actions/runs/5697830109/job/15445044420#step:4:2359
>Fix:
Prepare and install /usr/pkg/pkgconfig/liblzma.pc in NetBSD base from
src/external/public-domain/xz/dist/src/liblzma/liblzma.pc.in as zlib?
Put some workaround in pkgsrc for NetBSD?
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index