commit: 02da661244ab0cb663d753f80e2e18d9a2629c2e Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Thu Jan 13 08:18:30 2022 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Thu Jan 13 08:18:30 2022 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=02da6612
cross-pkg-config: allow basic options for $1 Tools sometimes probe pkg-config to see if it itself works. Allow those basic options through. We specifically don't parse the full command line to keep the code simple, faster, and to avoid dealing with ugly edge cases (like `pkg-config -- --help`). Closes: https://bugs.gentoo.org/830840 Reported-by: Alexandra Parker <alex.iris.parker <AT> gmail.com> Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> wrappers/cross-pkg-config | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wrappers/cross-pkg-config b/wrappers/cross-pkg-config index d51edd2..62f0dfa 100755 --- a/wrappers/cross-pkg-config +++ b/wrappers/cross-pkg-config @@ -20,6 +20,17 @@ error() { exit 1 } +# +# Allow very basic checks. This is not very sophisticated, but should get the +# job done, practically speaking. +# + +case $1 in +--about|--help|--version) + exec pkg-config "$@" + ;; +esac + # # Sanity/distro checks #
