pkgsrc-Users archive

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

Re: buildlink issue with libarchive and xz



Hi,

On Sat, 05 Nov 2011 07:58:08 +0900, Nicolas Thauvin <nico%orgrim.net@localhost> 
wrote:

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
yes
# make show-var VARNAME=USE_BUILTIN.xz
no

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 
libraries.
So how about skipping buildlink with those packages if using builtin libarchive?

Index: archivers/libarchive/buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/archivers/libarchive/buildlink3.mk,v
retrieving revision 1.5
diff -u -r1.5 buildlink3.mk
--- archivers/libarchive/buildlink3.mk  1 Nov 2011 06:50:28 -0000       1.5
+++ archivers/libarchive/buildlink3.mk  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/builtin.mk"
+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/buildlink3.mk"
 .include "../../archivers/xz/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
+.endif
 .endif # LIBARCHIVE_BUILDLINK3_MK

 BUILDLINK_TREE+=       -libarchive


--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index