contrib/firefox/pkg-config-wrapper
John McQuah 47cb509145 firefox: 116.0.1 -> 116.0.2
add wrapper to fix pkgconf regression
2023-08-10 12:20:35 -04:00

13 lines
399 B
Bash
Executable File

#!/bin/bash
#
# pkgconf complains when given multiple arguments to a modversion query.
# https://github.com/pkgconf/pkgconf/issues/310
# At least in this source tree, the expected (pkg-config-compatible) result
# can be reproduced by ignoring all but the first argument.
if [ "$1" = "--modversion" ] && [ "$#" -gt 2 ]; then
/usr/bin/pkgconf --modversion "$2"
else
/usr/bin/pkgconf "$@"
fi