Use POSIX stdout/stderr redirect in configure macro [issue #9990] #9998
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
This PR fixes issue #9990, wherein redirecting
stdout
andstderr
when building kernel modules inconfigure
tests relied on a bashism that does not work as expected when/bin/sh
is notbash
.Description
This PR implements the correction suggested in issue #9990; simply replacing the
&>
combination redirection operator with a POSIX compatible two-stage redirection allows theconfigure
script to function as expected.How Has This Been Tested?
The ZFS module has been built against Linux 4.19.102, 5.4.18 and 5.5.3 on an x86_64 system running Void Linux. Additionally, the patched
configure
was tested by the Void Linux Travis CI system and successfully compiles on x86_64, i686, aarch64, armv7l and armv6l systems with glibc and musl C libraries. (Void PR 19079)Types of changes
Checklist:
Signed-off-by
.