From fa5e8e92d94ea9de5d49a1f5ad19abf7272503d0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 17 Jun 2023 01:42:56 +0100 Subject: gentoo auto-resync : 17:06:2023 - 01:42:56 --- eclass/common-lisp-3.eclass | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'eclass/common-lisp-3.eclass') diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass index 6c87ef3db842..b2dbff3513de 100644 --- a/eclass/common-lisp-3.eclass +++ b/eclass/common-lisp-3.eclass @@ -18,8 +18,6 @@ esac if [[ -z ${_COMMON_LISP_3_ECLASS} ]]; then _COMMON_LISP_3_ECLASS=1 -inherit eutils - # @ECLASS_VARIABLE: CLIMPLEMENTATIONS # @DESCRIPTION: # Common Lisp implementations @@ -128,8 +126,16 @@ common-lisp-install-sources() { common-lisp-install-one-source ${fpredicate} "${path}" "$(dirname "${path}")" elif [[ -d ${path} ]] ; then local files - readarray -d '' files < <(find "${path}" -type f -print0 || die "cannot traverse ${path}" ) - common-lisp-install-sources -t ${ftype} "${files[@]}" || die + # test can be dropped in EAPI 8 which guarantees bash-5.0 + if [[ ${BASH_VERSINFO[0]} -ge 5 ]]; then + readarray -d '' files < <(find "${path}" -type f -print0 \ + || die "cannot traverse ${path}") + else + # readarray has no -d option in bash-4.2 + readarray -t files < <(find "${path}" -type f -print \ + || die "cannot traverse ${path}") + fi + common-lisp-install-sources -t ${ftype} "${files[@]}" else die "${path} is neither a regular file nor a directory" fi -- cgit v1.2.3