From 79a52430717031bb982c19f6ade34976cae3528b Mon Sep 17 00:00:00 2001 From: sjmulder Date: Tue, 21 Jul 2020 14:32:00 +0000 Subject: pkg_install: BOOTSTRAP guard on libarchive-using function Initial bootstrap builds of pkg_install don't use libarchive. Guarding this function (as other places are) with #ifndef BOOTSTRAP prevents 'implicit declaration of archive_...()' warnings on FreeBSD 12 and Xcode beta, which due to -Werror broke the bootstrap. --- pkgtools/pkg_install/files/lib/vulnerabilities-file.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgtools/pkg_install') diff --git a/pkgtools/pkg_install/files/lib/vulnerabilities-file.c b/pkgtools/pkg_install/files/lib/vulnerabilities-file.c index 8991e4eb0dc..e9635dedcdd 100644 --- a/pkgtools/pkg_install/files/lib/vulnerabilities-file.c +++ b/pkgtools/pkg_install/files/lib/vulnerabilities-file.c @@ -1,4 +1,4 @@ -/* $NetBSD: vulnerabilities-file.c,v 1.10 2018/02/26 23:45:02 ginsbach Exp $ */ +/* $NetBSD: vulnerabilities-file.c,v 1.11 2020/07/21 14:32:00 sjmulder Exp $ */ /*- * Copyright (c) 2008, 2010 Joerg Sonnenberger . @@ -38,7 +38,7 @@ #if HAVE_SYS_CDEFS_H #include #endif -__RCSID("$NetBSD: vulnerabilities-file.c,v 1.10 2018/02/26 23:45:02 ginsbach Exp $"); +__RCSID("$NetBSD: vulnerabilities-file.c,v 1.11 2020/07/21 14:32:00 sjmulder Exp $"); #if HAVE_SYS_STAT_H #include @@ -77,6 +77,7 @@ static const char pgp_msg_end[] = "-----BEGIN PGP SIGNATURE-----\n"; static const char pkcs7_begin[] = "-----BEGIN PKCS7-----\n"; static const char pkcs7_end[] = "-----END PKCS7-----\n"; +#ifndef BOOTSTRAP static struct archive * prepare_raw_file(void) { @@ -90,6 +91,7 @@ prepare_raw_file(void) archive_read_support_format_raw(a); return a; } +#endif static void verify_signature_pkcs7(const char *input) -- cgit v1.2.3