[Chapel Merge] Improve the portability of `touch` used in hwloc t

Branch: refs/heads/main
Revision: 3b08deb
Author: ronawho
Link: Unavailable
Log Message:

Merge pull request #19522 from ronawho/improve-hwloc-touch

Improve the portability of touch used in hwloc to prevent docs build

[reviewed by @bradcray @gbtitus @mppf]

We have some touch commands to prevent hwloc from trying to build the
docs that were added in 19a6dbb6af / 10fd4c9700 and made portable to bsd
in 89da1a2dd1. Recently, we've found the touch commands were failing on
alpine and had reports from users on other distros. To alleviate this,
fallback to a plain touch with no options and allow the command to fail
outright. If the command fails, worst case scenario is the user hits the
original issue where hwloc will try and fail to build the docs, but this
is no worse than our touch causing a fatal error.

Resolves #19444

Modified Files:
M third-party/hwloc/Makefile

Compare: https://github.com/chapel-lang/chapel/compare/af659d6f8515...3b08deb17930