[PATCH] ksba-config: more portable, using grep -F over fgrep
Andreas Stieger
Andreas.Stieger at gmx.de
Tue Sep 1 02:18:11 CEST 2026
Hello,
ksba-config throws some fgrep deprecation on systems that haven't patch
it out:
> $ ksba-config --libs
> fgrep: warning: fgrep is obsolescent; using grep -F
> fgrep: warning: fgrep is obsolescent; using grep -F
> fgrep: warning: fgrep is obsolescent; using grep -F
> -L/usr/lib64 -lksba -lgpg-error
Fix at git at github.com:andreasstieger/libksba.git fgrep
commit 19d5612ca192dcb132c75f1e4b04e086c06ff651
and below
ksba-config: more portable, using grep -F over fgrep (2026-09-01
02:05:10 +0200)
----------------------------------------------------------------
Andreas Stieger (1):
ksba-config: more portable, using grep -F over fgrep
src/ksba-config.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ksba-config.in b/src/ksba-config.in
index 76d038d..27b187b 100644
--- 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" | @FGREP@ -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" | @FGREP@ -v -- "$i" >/dev/null; then
tmp="$tmp $i"
fi
done
More information about the Gnupg-devel
mailing list