Skip to content

print_toolchain_versions: print system and make's default shell. - #13038

Merged
fjmolinas merged 1 commit into
RIOT-OS:masterfrom
smlng:pr_print_shell
Jan 7, 2020
Merged

print_toolchain_versions: print system and make's default shell.#13038
fjmolinas merged 1 commit into
RIOT-OS:masterfrom
smlng:pr_print_shell

Conversation

@smlng

@smlng smlng commented Jan 7, 2020

Copy link
Copy Markdown
Member

Contribution description

Overtook #10991 to fix conflicts as authors is not available (anymore).

Some systems use dash as system shell, others use bash. The shell used
by make can also be different, and unrelated to the system shell.
Differences in this variable can cause problems when testing PRs and
reporting bugs.

The default shell is important system information that should be reported.

Testing procedure

run ./dist/tools/ci/print_toolchain_versions.sh from RIOTBASE on your system - and if you like report the output here.

Issues/PRs references

@smlng smlng added Area: build system Area: Build system CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tools Area: Supplementary tools labels Jan 7, 2020
@smlng
smlng requested a review from fjmolinas January 7, 2020 08:02
@smlng

smlng commented Jan 7, 2020

Copy link
Copy Markdown
Member Author

btw. authorship of @jcarrano is retained

@fjmolinas fjmolinas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original PR had already been reviewed in detail, tested on ubuntu:

Operating System Environment
-----------------------------
         Operating System: "Ubuntu" "18.04.2 LTS (Bionic Beaver)"
                   Kernel: Linux 5.0.0-37-generic x86_64 x86_64
             System shell: /bin/dash (probably dash)
             make's shell: /bin/dash (probably dash)

It was tested on mac on #10991. I have a minor comment regarding a change with respect to the original PR. I won't insist on it though. If you address it then squash immediately. Otherwise ACK (merge if you will not.)

printf "%25s: %s\n" "Operating System" "$(get_os_info)"
printf "%25s: %s\n" "Kernel" "$(get_kernel_info)"
printf "%25s: %s\n" "System shell" "$(get_sys_shell)"
printf "%25s: %s\n" "make's shell" "$(get_make_shell)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original was more accurate since get_make_shell is actually getting the value of makes SHELL variable. I would prefer it that way but wont insist.

Suggested change
printf "%25s: %s\n" "make's shell" "$(get_make_shell)"
printf "%25s: %s\n" "make's SHELL" "$(get_make_shell)"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, makes sense - reverted and amended directly. Still works on macOS btw

Some systems use dash as system shell, others use bash. The shell used
by make can also be different, and unrelated to the system shell.
Differences in this variable can cause problems when testing PRs and
reporting bugs.

The default shell is important system information that should be reported.
@fjmolinas
fjmolinas merged commit 7d8c6b7 into RIOT-OS:master Jan 7, 2020
@smlng
smlng deleted the pr_print_shell branch January 7, 2020 20:08
@fjmolinas fjmolinas added this to the Release 2020.01 milestone Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: build system Area: Build system Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants