diff options
| author | Eric Joldasov <bratishkaerik@landless-city.net> | 2025-01-18 21:15:24 +0500 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-03-03 19:26:27 +0000 |
| commit | f68007349b216b75d31a7513e49b9813b24a993e (patch) | |
| tree | a737bd26f1b6c3bf0d17c35cdbf3bc816f558a56 | |
| parent | e54a05e27512a039417cbaf448a998dbf700585d (diff) | |
| download | gentoo-f68007349b216b75d31a7513e49b9813b24a993e.tar.gz gentoo-f68007349b216b75d31a7513e49b9813b24a993e.tar.bz2 gentoo-f68007349b216b75d31a7513e49b9813b24a993e.zip | |
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@landless-city.net>
Signed-off-by: Sam James <sam@gentoo.org>
| -rw-r--r-- | eclass/zig.eclass | 5 |
1 files 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. |
