pkgsrc-Users archive

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

Re: buildlink issue with libarchive and xz


On Sat, 05 Nov 2011 07:58:08 +0900, Nicolas Thauvin <> 

I think it comes from the recent addition of a dependency on
archivers/xz to the buildlink file of libarchive being used by pkgin.

libarchive comes from the builtin on the system, but xz is not
available as a builtin :

# make show-var VARNAME=USE_BUILTIN.libarchive
# make show-var VARNAME=USE_BUILTIN.xz

I don't understand why xz is not installed from pkgsrc as a build
dependencies here.

Because it is not a direct dependency.

There are no simple way whether builtin libarchive is built with lzma support 
or not
(and also zlib and bzip2).

Using builtin libarchive means using buitin those archive format support 
So how about skipping buildlink with those packages if using builtin libarchive?

Index: archivers/libarchive/
RCS file: /cvsroot/pkgsrc/archivers/libarchive/,v
retrieving revision 1.5
diff -u -r1.5
--- archivers/libarchive/  1 Nov 2011 06:50:28 -0000       1.5
+++ archivers/libarchive/  6 Nov 2011 09:07:39 -0000
@@ -9,9 +9,16 @@
 BUILDLINK_ABI_DEPENDS.libarchive?=     libarchive>=2.8.4nb1
 BUILDLINK_PKGSRCDIR.libarchive?=       ../../archivers/libarchive

+CHECK_BUILTIN.libarchive:=     yes
+.include "../../archivers/libarchive/"
+CHECK_BUILTIN.libarchive:=     no
+# A built-in libarchive is always using built-in zlib, bzip2, and xz.
+.if empty(USE_BUILTIN.libarchive:M[yY][eE][sS])
 .include "../../archivers/bzip2/"
 .include "../../archivers/xz/"
 .include "../../devel/zlib/"

 BUILDLINK_TREE+=       -libarchive

OBATA Akio /

Home | Main Index | Thread Index | Old Index