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

configure.ac: fix erroneous bashisms #390

Merged
merged 1 commit into from
May 18, 2024

Conversation

eli-schwartz
Copy link
Contributor

An autoconf generated script is designed to work with POSIX sh, and contains a /bin/sh shebang. As a result, it cannot assume it will be run with bash, as it won't be.

POSIX sh provides no way to extend the contents of a variable. A bash-specific extension is to use the += notation.

Instead, the standard (albeit somewhat more wordy) POSIX compatible approach is to expand the previous contents into a regular assignment. Do so.

Fixes: https://bugs.gentoo.org/923989

 * QA Notice: Abnormal configure code
 * 
 * ./configure: 4927: CFLAGS+= -m32: not found

An autoconf generated script is designed to work with POSIX sh, and
contains a /bin/sh shebang. As a result, it *cannot* assume it will be
run with bash, as it won't be.

POSIX sh provides no way to extend the contents of a variable. A
bash-specific extension is to use the += notation.

Instead, the standard (albeit somewhat more wordy) POSIX compatible
approach is to expand the previous contents into a regular assignment.
Do so.

Fixes: https://bugs.gentoo.org/923989

 * QA Notice: Abnormal configure code
 *
 * ./configure: 4927: CFLAGS+= -m32: not found
@sysstat sysstat merged commit a16afef into sysstat:master May 18, 2024
@sysstat
Copy link
Owner

sysstat commented May 18, 2024

@eli-schwartz Thanks. PR merged.

@eli-schwartz eli-schwartz deleted the configure-bashism branch May 19, 2024 02:05
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

2 participants