mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
sys-cluster/pcs : remove bashism
Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
41
sys-cluster/pcs/files/remove_bashism.patch
Normal file
41
sys-cluster/pcs/files/remove_bashism.patch
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user