dev-libs/libksba: fix fgrep warnings in ksba-config

Closes: https://bugs.gentoo.org/868384
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-09-11 18:48:45 +01:00
parent a643037738
commit d1b7bc443e
2 changed files with 27 additions and 1 deletions
@@ -0,0 +1,21 @@
https://bugs.gentoo.org/868384
--- a/src/ksba-config.in
+++ b/src/ksba-config.in
@@ -126,7 +126,7 @@ if test "$echo_cflags" = "yes"; then
fi
tmp=""
for i in $includes $cflags; do
- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
+ if echo "$tmp" | grep -F -v -- "$i" >/dev/null; then
tmp="$tmp $i"
fi
done
@@ -140,7 +140,7 @@ if test "$echo_libs" = "yes"; then
fi
tmp=""
for i in $libdirs $libs; do
- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
+ if echo "$tmp" | grep -F -v -- "$i" >/dev/null; then
tmp="$tmp $i"
fi
done
@@ -16,6 +16,10 @@ RDEPEND=">=dev-libs/libgpg-error-1.8"
DEPEND="${RDEPEND}"
BDEPEND="sys-devel/bison"
PATCHES=(
"${FILESDIR}"/${PN}-1.6.0-no-fgrep-ksba-config.patch
)
src_configure() {
local myeconfargs=(
$(use_enable static-libs static)
@@ -28,6 +32,7 @@ src_configure() {
src_install() {
default
# ppl need to use lib*-config for --cflags and --libs
# People need to use ksba-config for --cflags and --libs
find "${ED}" -type f -name '*.la' -delete || die
}