From 933b7cdbd8e15c6b120aec9cb5bec3ec36a27485 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 30 Jan 2023 15:08:37 +0100 Subject: libq/tree: add support IDEPEND Bug: https://bugs.gentoo.org/892533 Signed-off-by: Fabian Groffen --- libq/tree.c | 6 +++++- libq/tree.h | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libq/tree.c b/libq/tree.c index 2a457ce9..76190ed3 100644 --- a/libq/tree.c +++ b/libq/tree.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2022 Gentoo Foundation + * Copyright 2005-2023 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005-2008 Ned Ludd - @@ -824,6 +824,7 @@ tree_read_file_md5(tree_pkg_ctx *pkg_ctx) assign_var(DEFINED_PHASES); assign_var(REQUIRED_USE); assign_var(BDEPEND); + assign_var(IDEPEND); assign_var(EPREFIX); assign_var(_eclasses_); assign_var(_md5_); @@ -901,6 +902,7 @@ tree_read_file_ebuild(tree_pkg_ctx *pkg_ctx) match_key(EAPI); match_key(REQUIRED_USE); match_key(BDEPEND); + match_key(IDEPEND); #undef match_key } @@ -1004,6 +1006,7 @@ tree_read_file_binpkg_xpak_cb( match_path(DEFINED_PHASES); match_path(REQUIRED_USE); match_path(BDEPEND); + match_path(IDEPEND); match_path(CONTENTS); match_path(USE); match_path(EPREFIX); @@ -1513,6 +1516,7 @@ tree_foreach_packages(tree_ctx *ctx, tree_pkg_cb callback, void *priv) match_key2(REPO, repository); match_key(SIZE); match_key(BDEPEND); + match_key(IDEPEND); match_key(PATH); match_key2(BUILD_ID, BUILDID); #undef match_key diff --git a/libq/tree.h b/libq/tree.h index 2f2c81fc..efafe730 100644 --- a/libq/tree.h +++ b/libq/tree.h @@ -1,5 +1,5 @@ /* - * Copyright 2005-2022 Gentoo Foundation + * Copyright 2005-2023 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 */ @@ -96,8 +96,9 @@ struct tree_pkg_meta { char *Q_PDEPEND; char *Q_PROVIDE; /* line 14 */ char *Q_EAPI; - char *Q_PROPERTIES; + char *Q_PROPERTIES; /* last line from metadata */ char *Q_BDEPEND; + char *Q_IDEPEND; /* binpkgs/vdb */ char *Q_DEFINED_PHASES; char *Q_REQUIRED_USE; -- cgit v1.2.3-65-gdbad