commit: 43f151794c064b65d4d8c4864340012cd39b9641
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 1 12:57:48 2026 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Jan 1 12:57:48 2026 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=43f15179
qpkg: use proper guards for gpkg code
- don't use HAVE_LIBARCHIVE to enable gpkg, rely on configure's decision
- don't use libarchive code without guards
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
qpkg.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/qpkg.c b/qpkg.c
index 5fdd2ff..d8a57dc 100644
--- a/qpkg.c
+++ b/qpkg.c
@@ -215,6 +215,7 @@ write_hashes
warnp("failed to write hash data");
}
+#ifdef ENABLE_GPKG
static const char *
qgpkg_set_compression(struct archive *a)
{
@@ -236,11 +237,12 @@ qgpkg_set_compression(struct archive *a)
/* none, no filtering */
return "";
}
+#endif
static int
qgpkg_make(tree_pkg_ctx *pkg)
{
-#ifdef HAVE_LIBARCHIVE
+#ifdef ENABLE_GPKG
struct archive *a;
struct archive_entry *entry;
struct stat st;