libgcrypt: remove fgrep usage in config script

fix build for grive2
This commit is contained in:
Đoàn Trần Công Danh 2022-10-12 23:44:50 +07:00
parent 9128d900ff
commit c8f0c3698a
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
Index: libgcrypt-1.10.1/src/libgcrypt-config.in
===================================================================
--- libgcrypt-1.10.1.orig/src/libgcrypt-config.in
+++ libgcrypt-1.10.1/src/libgcrypt-config.in
@@ -154,7 +154,7 @@ if test "$echo_cflags" = "yes"; then
tmp=""
for i in $includes $cflags_final; 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
@@ -175,7 +175,7 @@ if test "$echo_libs" = "yes"; then
tmp=""
for i in $libdirs $libs_final; 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

View file

@ -1,7 +1,7 @@
# Template file for 'libgcrypt'
pkgname=libgcrypt
version=1.10.1
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-static --without-capabilities"
makedepends="libgpg-error-devel"