diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-24 15:23:36 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-24 15:23:36 +0100 |
| commit | cf493d5dcedbf1df2e73c495ed9c067480325323 (patch) | |
| tree | bfb19fad06a5d5f97aa52340a657ffe885003f7b /eclass/cmake.eclass | |
| parent | 249ed5434a2fe580287a83382c7d09edd2207af7 (diff) | |
| download | kde-cf493d5dcedbf1df2e73c495ed9c067480325323.tar.gz kde-cf493d5dcedbf1df2e73c495ed9c067480325323.tar.bz2 kde-cf493d5dcedbf1df2e73c495ed9c067480325323.zip | |
cmake.eclass: src_configure: Make sure mycmakeargs is initialised at all
Closes: https://bugs.gentoo.org/703638
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/cmake.eclass')
| -rw-r--r-- | eclass/cmake.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 20ba229377b..834df7f4c33 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -492,8 +492,9 @@ cmake_src_configure() { _EOF_ fi - # Make the array a local variable since <=portage-2.1.6.x does not - # support global arrays (see bug #297255). + # Make the array a local variable since <=portage-2.1.6.x does not support + # global arrays (see bug #297255). But first make sure it is initialised. + [[ -z ${mycmakeargs} ]] && declare -a mycmakeargs=() local mycmakeargstype=$(declare -p mycmakeargs 2>&-) if [[ "${mycmakeargstype}" != "declare -a mycmakeargs="* ]]; then die "mycmakeargs must be declared as array" |
