NetBSD-Users archive

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

Base system is missing lzma.pc file



If you want to use the gtk3 from pkgsrc, and then use it for something
else, not related to pkgsrc, one would typically use "pkg-config
--cflags gtk+-3.0" (after setting $PKG_CONFIG_PATH to where the
gtk+-3.0.pc can be found). But you get the error

$ pkg-config --cflags gtk+-3.0
Package liblzma was not found in the pkg-config search path.
Perhaps you should add the directory containing `liblzma.pc'
to the PKG_CONFIG_PATH environment variable
Package 'liblzma', required by 'libtiff-4', not found

If you compile something for pkgsrc, pkgsrc does something to work
around this problem and actually use the base system library.

That error goes away if you install archivers/xz - but surely libtiff
will not (should not!) use the newly installed liblzma...

If only a liblzma.pc was installed in the base system, this would likely
be much better.

/usr/lib/pkgconfig/liblzma.pc:
# Author: Lasse Collin
#
# This file has been put into the public domain.
# You can do whatever you want with this file.
#

prefix=/usr
exec_prefix=/usr
libdir=/usr/pkg
includedir=/usr/include

Name: liblzma
Description: General purpose data compression library
URL: https://tukaani.org/xz/
Version: 5.4.2
Cflags: -I${includedir}
Libs: -Wl,-R${libdir} -L${libdir} -llzma
Libs.private: -pthread

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index