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

added variable to Makefile that helps switch between squash versions … #31

Closed

Conversation

psteinb
Copy link

@psteinb psteinb commented Apr 5, 2016

…available through pkg-config

@nemequ
Copy link
Member

nemequ commented Apr 5, 2016

Thanks for the patch, but unfortunately squash-0.7 and squash-0.8 are not API-compatible (hence the error you're seeing in #30). Making this work would require placing some ifdefs in the code, and I don't think it's worth it.

We're working on getting Squash API stable soon. Once that happens pkg-config names will no longer change between versions.

@nemequ nemequ closed this Apr 5, 2016
@psteinb
Copy link
Author

psteinb commented Apr 5, 2016 via email

@nemequ
Copy link
Member

nemequ commented Apr 5, 2016

Including the API version in a pkg-config name is pretty standard practice since changing the pkg-config name is the only way to signal that the API is incompatible. From pkg-config's point of view an API is compatible with all later versions of the same module name, even if the major version number changes. It may seem a bit weird, but if pkg-config treated different major versions of the same package as incompatible then it wouldn't be possible to have multiple major versions installed in parallel.

Once Squash is API stable the pkg-config name will be squash-1.0 and it will stay that way for the foreseeable future (until an API break necessitates changing it to squash-2.0, which may never happen).

@psteinb
Copy link
Author

psteinb commented Apr 5, 2016 via email

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