Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use POSIX stdout/stderr redirect in configure macro [issue #9990] #9998

Merged
merged 1 commit into from
Feb 14, 2020
Merged

Use POSIX stdout/stderr redirect in configure macro [issue #9990] #9998

merged 1 commit into from
Feb 14, 2020

Conversation

ahesford
Copy link
Contributor

Motivation and Context

This PR fixes issue #9990, wherein redirecting stdout and stderr when building kernel modules in configure tests relied on a bashism that does not work as expected when /bin/sh is not bash.

Description

This PR implements the correction suggested in issue #9990; simply replacing the &> combination redirection operator with a POSIX compatible two-stage redirection allows the configure 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the contributing document.
  • I have added tests to cover my changes.
  • I have run the ZFS Test Suite with this change applied.
  • All commit messages are properly formatted and contain Signed-off-by.

Signed-off-by: Andrew J. Hesford <ajh@sideband.org>
@ghost ghost linked an issue Feb 13, 2020 that may be closed by this pull request
@ghost ghost added Status: Code Review Needed Ready for review and testing Type: Building Indicates an issue related to building binaries labels Feb 13, 2020
@codecov
Copy link

codecov bot commented Feb 13, 2020

Codecov Report

Merging #9998 into master will decrease coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #9998    +/-   ##
========================================
- Coverage      79%      79%   -<1%     
========================================
  Files         385      385            
  Lines      122382   122382            
========================================
- Hits        96904    96829    -75     
- Misses      25478    25553    +75
Flag Coverage Δ
#kernel 79% <ø> (ø) ⬆️
#user 66% <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 610eec4...8d2f961. Read the comment docs.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Feb 13, 2020
@behlendorf behlendorf merged commit db0ad39 into openzfs:master Feb 14, 2020
@ahesford ahesford deleted the configure branch February 14, 2020 16:45
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
This PR fixes an issue wherein redirecting stdout and stderr when 
building kernel modules in configure tests relied on a bashism that 
does not work as expected when /bin/sh is not bash.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-By: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Andrew J. Hesford <ajh@sideband.org>
Closes openzfs#9990 
Closes openzfs#9998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested) Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zfs 0.8.3: configure fails when /bin/sh is not bash
4 participants