[Chapel Merge] Fix `chpl_gmp` and `chpl_hwloc` to not print python arrays

Branch: refs/heads/main
Revision: bd65c6dc3993127df1c35ca16033fabe05ee9c1c
Author: jabraham17
Link: Fix `chpl_gmp` and `chpl_hwloc` to not print python arrays by jabraham17 · Pull Request #25213 · chapel-lang/chapel · GitHub
Log Message:
Fix chpl_gmp and chpl_hwloc to not print python arrays (#25213)

Fixes 2 scripts added in
Improve ability to use system packages for GMP/RE2 by jabraham17 · Pull Request #25184 · chapel-lang/chapel · GitHub and
Patch build system to allow building with CHPL_HWLOC=system by jabraham17 · Pull Request #25145 · chapel-lang/chapel · GitHub to print strings,
instead of python tuples and arrays. This caused strange build failures

I also fixed a whitespace oddity in a Makefile

Thank you @bonachea for pointing this out!

[Reviewed by @DanilaFe]

Compare: Comparing 88f00b850c09e8116ac559190a496a0d58a34a5f...76f1feefebd0f5608a9e39db6e984d9da04ba64f · chapel-lang/chapel · GitHub

Diff:
M third-party/qthread/Makefile
M util/chplenv/chpl_gmp.py
M util/chplenv/chpl_hwloc.py
https://github.com/chapel-lang/chapel/pull/25213.diff