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

Figure out reasonable PREFIX settings for distributions #169

Closed
acfoltzer opened this issue Feb 17, 2015 · 1 comment
Closed

Figure out reasonable PREFIX settings for distributions #169

acfoltzer opened this issue Feb 17, 2015 · 1 comment
Assignees
Labels
feature request Asking for new or improved functionality
Milestone

Comments

@acfoltzer
Copy link
Contributor

#127 gave us a more flexible way to configure paths, we just need to make effective use of it in distributions.

There are a few scenarios:

  1. a developer wants to build a distribution and run it in place
  2. we want to distribute a tarball that can be extracted to any location on a filesystem
  3. we want to distribute a package manager-specific artifact like a .rpm or Homebrew formula

Right now the Makefile optimizes for case 3 by baking in /usr/local/ or C:\Program Files\... into the make dist target. We need to make it possible to support cases 1 and 2 as well.

1 and 2 are likely to end up looking very similar (i.e., a distribution directory with /bin/, /share/cryptol/, etc). However we may want to add some sort of conditional compilation step so that those paths are not baked into the module search path; instead we should just rely on our heuristics for determining paths relative from the executable to avoid accidentally bringing in system-wide stuff that doesn't belong to us.

@acfoltzer acfoltzer added the feature request Asking for new or improved functionality label Feb 17, 2015
@acfoltzer acfoltzer self-assigned this Feb 17, 2015
@acfoltzer acfoltzer added this to the Cryptol 2.2 milestone Feb 19, 2015
@acfoltzer
Copy link
Contributor Author

This is in thanks to the relocatable cabal flag and the associated Makefile machinery to drive it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Asking for new or improved functionality
Projects
None yet
Development

No branches or pull requests

1 participant