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

Make sure config.sub and config.guess are executable #1024

Merged
merged 2 commits into from
Jan 27, 2021

Conversation

jonglezb
Copy link
Contributor

This fixes Spack build on ppc64 and aarch64, see spack/spack#21256

This fixes Spack build on ppc64 and aarch64, see spack/spack#21256
@jedisct1
Copy link
Owner

Hi,

The fact that they need to be executable is a little bit surprising.

The configure script doesn't call them directly, only via a shell command:

$SHELL "$ac_aux_dir/config.guess"
$SHELL "$ac_aux_dir/config.sub"

If the SHELL environment variable empty somehow? That would be the actual issue.

@jedisct1 jedisct1 merged commit 32ce708 into jedisct1:master Jan 27, 2021
jedisct1 added a commit that referenced this pull request Jan 27, 2021
* Make sure config.sub and config.guess are executable

This fixes Spack build on ppc64 and aarch64, see spack/spack#21256

* Move config files after setting their mode

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
jedisct1 added a commit that referenced this pull request Jan 27, 2021
* Make sure config.sub and config.guess are executable

This fixes Spack build on ppc64 and aarch64, see spack/spack#21256

* Move config files after setting their mode

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
@jonglezb
Copy link
Contributor Author

Yes, I expect it would work for a normal build.

However, Spack has an autotools workaround where it tries to manually execute these scripts to check if they work (I have no idea what was the original issue that required this workaround). It's applied to all autotools-based packages, not just libsodium.

By the way, the upstream scripts are executable: https://git.savannah.gnu.org/gitweb/?p=config.git;a=tree

Repository owner locked and limited conversation to collaborators Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants