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

Improve default strategy path handling #512

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

Conversation

musicinmybrain
Copy link
Contributor

Do not define FPLLL_DEFAULT_STRATEGY_PATH or FPLLL_DEFAULT_STRATEGY to the empty string (when undefined) in fplll/defs.h. This is not usable for library API users, and not needed for compiling the library.

Allow setting the default strategy paths via new configure script options --with-default-strategy-dir and --with-default-strategy. This allows distributions that need the data directory to be in a different place to avoid patching the build system. For example, Debian might want to use --with-default-strategy-dir=/usr/share/libfplll5/strategies.

Make the actual strategy paths compiled into the library available as variables in the pkg-config file fplll.pc.

Fixes #510.


I have tested this by rebuilding all Fedora Linux packages that depend on libfplll (gap-pkg-float, linbox, Macaulay2, python-fplll, and sagemath) in a COPR.

I’m hoping that people who commented in fplll/fpylll#221 will review this and verify it meets their needs, or suggest any necessary improvements.

Do not define FPLLL_DEFAULT_STRATEGY_PATH or FPLLL_DEFAULT_STRATEGY to
the empty string (when undefined) in fplll/defs.h. This is not usable
for library API users, and not needed for compiling the library.
This provides configure script options --with-default-strategy-dir and
--with-default-strategy, which allow distributions that need the data
directory to be in a different place to avoid patching the build system.

For example, Debian might want to use
--with-default-strategy-dir=/usr/share/libfplll5/strategies.
@SnarkBoojum
Copy link
Contributor

I like the idea of the configure flags.

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.

Handling FPLLL_DEFAULT_STRATEGY(_PATH) for system-wide library
2 participants