Re: git: 482cadcb0741 - main - shells/bash-completion: Fix 'make extract' on riscv64

From: Vanilla Hsu <vanilla_at_fatpipi.com>
Date: Sun, 19 Oct 2025 03:09:57 UTC
it builded failure on my box,

---
root@nat:/usr/ports/shells/bash-completion # make
make: /usr/ports/shells/bash-completion/Makefile:19: Variable "ARCH" is
undefined
make: Fatal errors encountered -- cannot continue
make: stopped making "all" in /usr/ports/shells/bash-completion
--


Po-Chuan Hsieh <sunpoet@freebsd.org> 於 2025年10月19日 週日 上午8:07寫道:

> The branch main has been updated by sunpoet:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=482cadcb07419678f225eb4e1a941e0dfb43a4ea
>
> commit 482cadcb07419678f225eb4e1a941e0dfb43a4ea
> Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> AuthorDate: 2025-10-19 00:00:49 +0000
> Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> CommitDate: 2025-10-19 00:00:49 +0000
>
>     shells/bash-completion: Fix 'make extract' on riscv64
>
>     PR:             289914
>     Reported by:    Meng Zhuo <mengzhuo@iscas.ac.cn>
> ---
>  shells/bash-completion/Makefile | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/shells/bash-completion/Makefile
> b/shells/bash-completion/Makefile
> index 04f82d2f03a5..756ddedf803e 100644
> --- a/shells/bash-completion/Makefile
> +++ b/shells/bash-completion/Makefile
> @@ -16,6 +16,9 @@ TEST_DEPENDS= runtest:misc/dejagnu \
>
>  USES=          autoreconf gmake pathfix tar:xz
>
> +.if ${ARCH} == riscv64
> +EXTRACT_CMD=   ${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
> +.endif
>  GNU_CONFIGURE= yes
>  NO_ARCH=       yes
>
>