public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
From: Thomas Perale via buildroot <buildroot@buildroot.org>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Perale <thomas.perale@mind.be>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 2/3 v4] support/br2-external: fix remaining shellcheck errors
Date: Fri, 20 Mar 2026 16:55:02 +0100	[thread overview]
Message-ID: <20260320155502.176473-1-thomas.perale@mind.be> (raw)
In-Reply-To: <194a25b4dce8f83d709dec1003427c8a1f39d71a.1770155657.git.yann.morin.1998@free.fr>

In reply of:
> Boring changes: either do what shellcheck suggested, or comment why we
> don't want to fix the code.
> 
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>

Applied to 2025.02.x & 2026.02.x. Thanks

> ---
>  .checkpackageignore          |  1 -
>  support/scripts/br2-external | 11 ++++++-----
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/.checkpackageignore b/.checkpackageignore
> index 16a0d5b511..67e531512e 100644
> --- a/.checkpackageignore
> +++ b/.checkpackageignore
> @@ -1085,7 +1085,6 @@ support/libtool/buildroot-libtool-v2.4.4.patch lib_patch.ApplyOrder lib_patch.Up
>  support/libtool/buildroot-libtool-v2.4.patch lib_patch.ApplyOrder lib_patch.Sob lib_patch.Upstream
>  support/misc/relocate-sdk.sh Shellcheck
>  support/scripts/apply-patches.sh Shellcheck
> -support/scripts/br2-external Shellcheck
>  support/scripts/check-bin-arch Shellcheck
>  support/scripts/check-host-rpath Shellcheck
>  support/scripts/expunge-gconv-modules Shellcheck
> diff --git a/support/scripts/br2-external b/support/scripts/br2-external
> index 6d4fc1a791..474feaded7 100755
> --- a/support/scripts/br2-external
> +++ b/support/scripts/br2-external
> @@ -34,6 +34,7 @@ main() {
>          error "Cannot create output directory '%s'\n" "${outputdir}"
>      fi
>  
> +    # shellcheck disable=SC2068  # We do want to split on spaces
>      do_validate "${outputdir}" ${@//:/ }
>      do_mk "${outputdir}"
>      do_kconfig "${outputdir}"
> @@ -71,7 +72,7 @@ do_validate_one() {
>      if [ ! -d "${br2_ext}" ]; then
>          error "'%s': no such file or directory\n" "${br2_ext}"
>      fi
> -    if [ ! -r "${br2_ext}" -o ! -x "${br2_ext}" ]; then
> +    if [ ! -r "${br2_ext}" ] || [ ! -x "${br2_ext}" ]; then
>          error "'%s': permission denied\n" "${br2_ext}"
>      fi
>      if [ ! -f "${br2_ext}/external.desc" ]; then
> @@ -106,9 +107,9 @@ do_validate_one() {
>      br2_ext="$( cd "${br2_ext}"; pwd )"
>      br2_ver="$( support/scripts/setlocalversion "${br2_ext}" )"
>      BR2_EXT_NAMES+=( "${br2_name}" )
> -    eval BR2_EXT_PATHS_${br2_name}="\"\${br2_ext}\""
> -    eval BR2_EXT_VERS_${br2_name}="\"\${br2_ver}\""
> -    eval BR2_EXT_DESCS_${br2_name}="\"\${br2_desc:-\${br2_name}}\""
> +    eval "BR2_EXT_PATHS_${br2_name}=\"\${br2_ext}\""
> +    eval "BR2_EXT_VERS_${br2_name}=\"\${br2_ver}\""
> +    eval "BR2_EXT_DESCS_${br2_name}=\"\${br2_desc:-\${br2_name}}\""
>  }
>  
>  # Generate the .mk snippet that defines makefile variables
> @@ -272,7 +273,7 @@ do_kconfig() {
>      printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"
>  }
>  
> +# shellcheck disable=SC2059  # fmt *is* a format
>  error() { local fmt="${1}"; shift; printf "BR2_EXTERNAL_ERROR = ${fmt}" "${@}"; exit 1; }
>  
> -my_name="${0##*/}"
>  main "${@}"
> -- 
> 2.52.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-03-20 15:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-03 21:54 [Buildroot] [PATCH 0/3 v4] support/br2-external: fix shellcheck and better document BR2_EXTERNAL (branch yem/misc) Yann E. MORIN via buildroot
2026-02-03 21:54 ` [Buildroot] [PATCH 1/3 v4] support/br2-external: remove leftover trap Yann E. MORIN via buildroot
2026-03-13 21:25   ` Romain Naour via buildroot
2026-03-20 15:55   ` Thomas Perale via buildroot
2026-02-03 21:54 ` [Buildroot] [PATCH 2/3 v4] support/br2-external: fix remaining shellcheck errors Yann E. MORIN via buildroot
2026-03-20 15:55   ` Thomas Perale via buildroot [this message]
2026-02-03 21:54 ` [Buildroot] [PATCH 3/3 v4] docs/manual: use space-separated list for BR2_EXTERNAL Yann E. MORIN via buildroot
2026-03-20 15:55   ` Thomas Perale via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260320155502.176473-1-thomas.perale@mind.be \
    --to=buildroot@buildroot.org \
    --cc=thomas.perale@mind.be \
    --cc=yann.morin.1998@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox