commit: f68007349b216b75d31a7513e49b9813b24a993e Author: Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net> AuthorDate: Sat Jan 18 16:15:24 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Mar 3 19:26:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6800734
zig.eclass: allow unset `my_zbs_args` Previously it was defined as empty string when not setting this variable, which caused error during building because Zig treat it as a name of non-existant step "". Also fix DEFAULT_UNSET comment on `BUILD_DIR` and `my_zbs_args`. Closes: https://bugs.gentoo.org/948168 Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net> Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/zig.eclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eclass/zig.eclass b/eclass/zig.eclass index 2a0178e66d71..26b55bf05d7f 100644 --- a/eclass/zig.eclass +++ b/eclass/zig.eclass @@ -1,4 +1,4 @@ -# Copyright 2024 Gentoo Authors +# Copyright 2024-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: zig.eclass @@ -152,6 +152,7 @@ _zig_set_zbs_uris() { _zig_set_zbs_uris # @ECLASS_VARIABLE: my_zbs_args +# @DEFAULT_UNSET # @DESCRIPTION: # Bash array with ebuild-specified arguments to pass to the # "zig build" after "src_configure". @@ -170,7 +171,6 @@ _zig_set_zbs_uris # zig_src_configure # } # @CODE -: "${my_zbs_args:=}" # @ECLASS_VARIABLE: ZBS_ARGS_EXTRA # @USER_VARIABLE @@ -203,7 +203,6 @@ _zig_set_zbs_uris : "${ZBS_VERBOSE:=ON}" # @ECLASS_VARIABLE: BUILD_DIR -# @DEFAULT_UNSET # @DESCRIPTION: # Directory where all "ezig build" calls will be proceeded. # Defaults to "${WORKDIR}/${P}-build" if not set.
