pkgsrc-Users archive

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

Re: built-in libarchive



Patrick Welche <prlw1%cam.ac.uk@localhost> writes:

> If a platform provides libarchive, pkgsrc will correctly use it
> rather than archivers/libarchive. If a package is silly enough to use
> PKG_CHECK_MODULES instead of AC_CHECK_LIBS (unfortunately there is a

Why do you say PKG_CHECK_MODULES is silly (other than randomly being
inflammatory for fun)?  There is a real issue lurking, which is that a
package's ABI either does or doesn't include a pkgconfig file.  If it
does, it's basically sensible to use it.  And if a package sometimes has
it and sometimes doesn't, that's broken.  If it was added at some point,
using pkgconfig at configure time is implicitly declaring that only new
enough versions are acceptable.

> lot of it about), the libarchive provided by NetBSD won't be found. I
> tried fiddling src/external/bsd/libarchive/lib/libarchive/Makefile to
> generate and install a /usr/lib/pkgconfig/libarchive.pc file, but it
> seems that pkgsrc doesn't look in /usr/lib/pkgconfig. Any thoughts on
> what The Right Way is?

Arguably pkgsrc should link to the pkgconfig file, just like it links to
the libs, via bl3, when using a builtin library.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index