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

Force siphash24 hash algorithm when cross-compiling #719

Open
wants to merge 3 commits into
base: 3.10
Choose a base branch
from

Conversation

gmarkall
Copy link

When cross-compiling, the hash function is forced to be FNV because the configure script defines HAVE_ALIGNED_REQUIRED which is then used by pyhash.h to change the default to FNV (see #718).

This PR fixes the issue by specifying siphash24 to the configure script when cross-compiling. With this PR, I now get:

$ python -c "import sys; print(sys.hash_info.algorithm)"
siphash24

instead of

$ python -c "import sys; print(sys.hash_info.algorithm)"
fnv

I'm not that familiar with the setup of this feedstock so I don't know if this is an appropriate solution or more of a sketch of a solution - any feedback / guidance is appreciated!

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

When cross-compiling, the hash function is forced to be FNV because the
configure script defines `HAVE_ALIGNED_REQUIRED` which is then used by
pyhash.h to change the default to FNV (see conda-forge#718)

This commit fixes the issue by specifying siphash24 to the configure
script when cross-compiling.
@gmarkall
Copy link
Author

@conda-forge-admin, please rerender

Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

conda-forge-webservices[bot] and others added 2 commits September 24, 2024 21:21
@isuruf
Copy link
Member

isuruf commented Sep 27, 2024

Can you add a test?

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.

2 participants