sys-cluster/pcs : remove bashism

Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
Andrea Postiglione
2022-04-07 17:10:16 +02:00
parent 94f0d4472f
commit eac77dc802
2 changed files with 43 additions and 1 deletions

View File

@@ -0,0 +1,41 @@
From 73e90ae7f31600ff9c0edf0aed3cace9cd8c8a35 Mon Sep 17 00:00:00 2001
From: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Date: Thu, 7 Apr 2022 17:02:55 +0200
Subject: [PATCH] remove bashisms
`==` is not POSIX
---
m4/ac_compare_versions.m4 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/m4/ac_compare_versions.m4 b/m4/ac_compare_versions.m4
index 77d03330a..74846704e 100644
--- a/m4/ac_compare_versions.m4
+++ b/m4/ac_compare_versions.m4
@@ -6,7 +6,7 @@ dnl op can be:
dnl
dnl lt or <
dnl le or <=
-dnl eq or ==
+dnl eq or =
dnl ge or >=
dnl gt or >
dnl
@@ -20,7 +20,7 @@ AC_DEFUN([AC_COMPARE_VERSIONS],[
verA="$1"
op="$2"
verB="$3"
- if test "x$verA" == "x" || test "x$verB" == "x" || test "x$op" == x; then
+ if test "x$verA" = "x" || test "x$verB" = "x" || test "x$op" = x; then
AC_MSG_ERROR([ac_compare_versions: Missing parameters])
fi
case "$op" in
@@ -36,7 +36,7 @@ AC_DEFUN([AC_COMPARE_VERSIONS],[
result=true
fi
;;
- "eq"|"==")
+ "eq"|"=")
if test "$verB" = "$verA"; then
result=true
fi

View File

@@ -65,7 +65,8 @@ ruby_add_rdepend "
www-servers/thin"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
PATCHES="${FILESDIR}/pcs-0.11-gentoo-support.patch"
PATCHES="${FILESDIR}/pcs-0.11-gentoo-support.patch
${FILESDIR}/remove_bashism.patch"
src_prepare() {
default