commit:     183dc3d778cf83102aa7ed8291979b71a287cf7e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 24 22:43:47 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 12 01:59:55 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=183dc3d7

install-qa-check.d/60pkgconfig: exit early if no pkg-config installed

But we still run the LDFLAGS check.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/install-qa-check.d/60pkgconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/install-qa-check.d/60pkgconfig 
b/bin/install-qa-check.d/60pkgconfig
index 78c5b5a3c..4c6f01f03 100644
--- a/bin/install-qa-check.d/60pkgconfig
+++ b/bin/install-qa-check.d/60pkgconfig
@@ -17,6 +17,11 @@ pkgconfig_check() {
                eqatag -v pkgconfig.bad-ldlags "${f//${D}}"
        fi
 
+       # Bail out now so we can rely on pkgconfig in subsequent checks if we 
want.
+       if ! type -P pkg-config >/dev/null ; then
+               return
+       fi
+
        # Validate using pkgconfig
        # Some less common implementations may not support this?
        # seems like f.d.o, OpenBSD, and of course pkgconf do though.

Reply via email to