commit: 4f7f71fe7fca2744954d0092c3095221905f7e04 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Aug 1 02:47:56 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Aug 1 22:37:51 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=4f7f71fe
install-qa-check.d: 60pkgconfig: add ${ED}/usr/{lib*,share}/pkgconfig to search path Needed for --validate to not barf sometimes. Signed-off-by: Sam James <sam <AT> gentoo.org> Closes: https://github.com/gentoo/portage/pull/880 Signed-off-by: Sam James <sam <AT> gentoo.org> bin/install-qa-check.d/60pkgconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-qa-check.d/60pkgconfig b/bin/install-qa-check.d/60pkgconfig index 6f1d6b8b1..54122fe61 100644 --- a/bin/install-qa-check.d/60pkgconfig +++ b/bin/install-qa-check.d/60pkgconfig @@ -27,7 +27,7 @@ pkgconfig_check() { # seems like f.d.o, OpenBSD, and of course pkgconf do though. # Need --maximum-traverse-depth=1 to avoid checking deps and giving # unrelated warnings/errors. - if ! pkg-config --maximum-traverse-depth=1 --validate "${files[@]}" ; then + if ! pkg-config --maximum-traverse-depth=1 --with-path="${ED}"/usr/{lib*,share}/pkgconfig --validate "${files[@]}" ; then eqawarn "QA Notice: pkg-config files which fail validation found!" eqawarn "Run 'pkg-config --validate ...' for more information" fi