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

Compilation issue with default shells (non-POSIX compatible ./configure file) #7

Open
Davoodeh opened this issue Sep 28, 2020 · 1 comment

Comments

@Davoodeh
Copy link

Hello,
I noticed that the file ./sources/configure is not POSIX compitable and uses arrays while it is marked to be run with the default shell of the system via a #! /bin/sh.
This causes compilation issues in some setups in which the default shell is not a modern shell such as zsh or bash (in my case my shell is dash).
This can be avoided by changning it to #!/bin/bash or making the file POSIX compatible.

Unfortunately I couldn't do that by myself since I'm not exactly sure how this configure gets generated or works in the first place xD

./configure: 13537: Syntax error: "(" unexpected
==> ERROR: A failure occurred in build().
    Aborting...

That line is:

PYTHON_COMPAT=( python2.7 python2.6 )

So, yeah... that's all I could find out by my limited knowledge...
Sorry for bad English...

@abzrg
Copy link

abzrg commented Nov 2, 2021

You can tell it which shell to use: CONFIG_SHELL=/bin/bash sources/configure

In almost all Debian based distros and *BSDs, the sh is symlinked to a more POSIX compliant shell than bash, like dash and *ksh.

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

No branches or pull requests

2 participants