summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/files/create/build.c
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-04-20 00:39:12 +0000
committerjoerg <joerg@pkgsrc.org>2010-04-20 00:39:12 +0000
commit5b24c103ec214add64fac2e7ce83cab60a1e5add (patch)
tree0fd722734cb82bbbe67a23280baa008385ae47c6 /pkgtools/pkg_install/files/create/build.c
parent9d74fbeccc87146ef7783559030f0898c5d1537f (diff)
downloadpkgsrc-5b24c103ec214add64fac2e7ce83cab60a1e5add.tar.gz
pkg_install-20100420:
Extract dependencies of libarchive from the pkgconfig file and thereby drop knowledge of the needed libraries. At least some versions of HP-UX are known to not support %zu, add a workaround. This is using the black list approach for now. Recognize xz as compression type for pkg_create. The first time an error is hit while fetching packages, try to reget from the same position. This works around the server closing the connection while fetching dependencies.
Diffstat (limited to 'pkgtools/pkg_install/files/create/build.c')
-rw-r--r--pkgtools/pkg_install/files/create/build.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c
index a5818cd8aba..6cdc7449f58 100644
--- a/pkgtools/pkg_install/files/create/build.c
+++ b/pkgtools/pkg_install/files/create/build.c
@@ -1,4 +1,4 @@
-/* $NetBSD: build.c,v 1.14 2009/11/05 16:22:32 joerg Exp $ */
+/* $NetBSD: build.c,v 1.15 2010/04/20 00:39:13 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: build.c,v 1.14 2009/11/05 16:22:32 joerg Exp $");
+__RCSID("$NetBSD: build.c,v 1.15 2010/04/20 00:39:13 joerg Exp $");
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -254,6 +254,8 @@ make_dist(const char *pkg, const char *suffix, const package_t *plist)
archive_write_set_compression_bzip2(archive);
else if (strcmp(CompressionType, "gzip") == 0)
archive_write_set_compression_gzip(archive);
+ else if (strcmp(CompressionType, "xz") == 0)
+ archive_write_set_compression_xz(archive);
else if (strcmp(CompressionType, "none") == 0)
archive_write_set_compression_none(archive);
else