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

Replace bashisms in the configure scripts #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgorny
Copy link

@mgorny mgorny commented Jan 4, 2023

Replace the use of += operator with plain assignment to fix compatibility with shells other than bash. Without this script, the build fails on systems where /bin/sh is not bash (and e.g. dash).

The original code leads to errors such as:

./configure: 14711: PRAGHA_CFLAGS+= ... : not found

since the assignment is wrongly taken to be a command to execute. As a result, flags are not being appended and the build eventually fails with e.g.:

pragha-cmdline.c:33:10: fatal error: libxfce4ui/libxfce4ui.h: No such file or directory

Original bug report: https://bugs.gentoo.org/889618

Replace the use of `+=` operator with plain assignment to fix
compatibility with shells other than bash.  Without this script,
the build fails on systems where /bin/sh is not bash (and e.g. dash).

The original code leads to errors such as:

    ./configure: 14711: PRAGHA_CFLAGS+= ... : not found

since the assignment is wrongly taken to be a command to execute.
As a result, flags are not being appended and the build eventually
fails with e.g.:

    pragha-cmdline.c:33:10: fatal error: libxfce4ui/libxfce4ui.h: No such file or directory

Original bug report: https://bugs.gentoo.org/889618
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.

1 participant