mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user