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
Add compatibility for busybox mktemp to sed --in-place check #11269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It looks like there are a few other places where this could be a problem. Can you update this PR to make the same change in config/deb.am
and scripts/zfs-tests.sh
.
Busybox's mktemp requires at least six X's in the template, causing the current sed --in-place check to fail because the file does not exist. This change adds additional X's to mktemp templates that do not already have at least six X's in them. Signed-off-by: Quentin Zdanis <zdanisq@gmail.com>
1b8c351
to
93a7031
Compare
Done! I've also edited the PR description to be more accurate. |
Busybox's mktemp requires at least six X's in the template, causing the current sed --in-place check to fail because the file does not exist. This change adds additional X's to mktemp templates that do not already have at least six X's in them. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Quentin Zdanis <zdanisq@gmail.com> Closes openzfs#11269
Busybox's mktemp requires at least six X's in the template, causing the current sed --in-place check to fail because the file does not exist. This change adds additional X's to mktemp templates that do not already have at least six X's in them. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Quentin Zdanis <zdanisq@gmail.com> Closes #11269
Busybox's mktemp requires at least six X's in the template, causing the current sed --in-place check to fail because the file does not exist. This change adds additional X's to mktemp templates that do not already have at least six X's in them. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Quentin Zdanis <zdanisq@gmail.com> Closes openzfs#11269
Busybox's mktemp requires at least six X's in the template, causing the current sed --in-place check to fail because the file does not exist. This change adds additional X's to mktemp templates that do not already have at least six X's in them. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Quentin Zdanis <zdanisq@gmail.com> Closes openzfs#11269
Motivation and Context
Busybox's
mktemp
requires six X's in the template, while the currentsed --in-place
check invokesmktemp
with three. This causesmktemp
to fail as the pattern isn't what busybox is expecting.Description
This PR changes the
mktemp
template fromconftest.XXX
toconftest.XXXXXX
inconfig/always-sed.m4
. It also extends the templates inconfig/deb.am
andscripts/zfs-tests.sh
to contain six X's.How Has This Been Tested?
Change was tested via regeneration of
configure
script in a busybox-based docker container and diffing the results against the current master branch to ensure the only change is themktemp
invocation. The resulting script was also run to check if thesed --in-place
check passes.Types of changes
Checklist:
Signed-off-by
.