diff --git a/debian/patches/fix-exists-print-errors.patch b/debian/patches/fix-exists-print-errors.patch new file mode 100644 index 0000000..12d81eb --- /dev/null +++ b/debian/patches/fix-exists-print-errors.patch @@ -0,0 +1,23 @@ +From: Ariadne Conill +Date: Sun, 22 Jan 2023 10:46:27 +0000 +Subject: cli: if --exists is specified, require the full dependency graph to validate + +Bug-Debian: https://bugs.debian.org/1026781 +--- + cli/main.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/cli/main.c b/cli/main.c +index 837fa8b..99421e7 100644 +--- a/cli/main.c ++++ b/cli/main.c +@@ -1039,6 +1039,9 @@ main(int argc, char *argv[]) + if ((want_flags & PKG_STATIC) == PKG_STATIC || personality->want_default_static) + want_client_flags |= (PKGCONF_PKG_PKGF_SEARCH_PRIVATE | PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS); + ++ if ((want_flags & PKG_EXISTS) == PKG_EXISTS) ++ want_client_flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE; ++ + if ((want_flags & PKG_SHARED) == PKG_SHARED) + want_client_flags &= ~(PKGCONF_PKG_PKGF_SEARCH_PRIVATE | PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS); + diff --git a/debian/patches/series b/debian/patches/series index edfd398..ddd788a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ sysroot_dir-logic.patch pkg.m4/0001-pkg.m4-Unified-indentation-in-PKG_CHECK_MODULES.patch pkg.m4/0003-trivial-sync-of-pkg.m4-from-freedesktop.patch +fix-exists-print-errors.patch