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

CONFIG: Fix bashisms in configure.ac, config/m4/go.m4 #8494

Merged
merged 1 commit into from
Sep 8, 2022
Merged

CONFIG: Fix bashisms in configure.ac, config/m4/go.m4 #8494

merged 1 commit into from
Sep 8, 2022

Conversation

thesamesam
Copy link
Contributor

configure scripts need to be runnable with a POSIX-compliant /bin/sh.

On many (but not all!) systems, /bin/sh is provided by Bash, so errors
like this aren't spotted. Notably Debian defaults to /bin/sh provided
by dash which doesn't tolerate such bashisms as '=='.

This retains compatibility with bash.

Fixes configure warnings/errors like:

checking for go... yes
./configure: 26781: test: xyes: unexpected operator

Signed-off-by: Sam James sam@gentoo.org

What

Remove Bashisms from the build system which cause issues
when /bin/sh is not Bash, but is a POSIX-compliant shell.

Why ?

The build may be misconfigured or fail with a POSIX-compliant-but-not-Bash
/bin/sh.

@thesamesam
Copy link
Contributor Author

I'm not sure how I can satisfy the commit message style checker for this change.

@shamisp
Copy link
Contributor

shamisp commented Sep 3, 2022

@thesamesam, thanks for the bugfix !

Here the guidance how to structure your contribution and commit messages:
https://github.com/openucx/ucx/wiki/Guidance-for-contributors

We also ask contributors to sign CLA: https://openucx.org/license/

Hopefully this helps !

@shamisp shamisp changed the title Fix bashisms in configure.ac, config/m4/go.m4 CONFIG: Fix bashisms in configure.ac, config/m4/go.m4 Sep 3, 2022
configure scripts need to be runnable with a POSIX-compliant /bin/sh.

On many (but not all!) systems, /bin/sh is provided by Bash, so errors
like this aren't spotted. Notably Debian defaults to /bin/sh provided
by dash which doesn't tolerate such bashisms as '=='.

This retains compatibility with bash.

Fixes configure warnings/errors like:
```
checking for go... yes
./configure: 26781: test: xyes: unexpected operator
```

Signed-off-by: Sam James <sam@gentoo.org>
@thesamesam
Copy link
Contributor Author

Thanks @shamisp. I emailed my CLA earlier today. Hopefully this looks OK now.

@shamisp
Copy link
Contributor

shamisp commented Sep 6, 2022

We have received the CLA

@yosefe yosefe merged commit b9000ba into openucx:master Sep 8, 2022
@thesamesam thesamesam deleted the bashisms branch September 8, 2022 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants