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

Allow the use of pkg-config to be opt-out #602

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

peterstace
Copy link
Owner

Description

Some systems don't have pkg-config, or have pkg-config that's set up
incorrectly. These systems couldn't easily use the v0.47.1 tag,
because that tag introduces a hard dependency on pkg-config being used
to configure GEOS.

This changeset allows pkg-config to be opted out of, by using the
sfnopkgconfig build tag. The behaviour when using that build tag is
effectively the same as pre-v0.47.1.

Check List

Have you:

  • Added unit tests? Yes.

  • Add cmprefimpl tests? (if appropriate?) N/A

  • Updated release notes? (if appropriate?) N/A

Related Issue

Some systems don't have `pkg-config`, or have `pkg-config` that's set up
incorrectly. These systems couldn't easily use the `v0.47.1` tag,
because that tag introduces a hard dependency on `pkg-config` being used
to configure GEOS.

This changeset allows `pkg-config` to be opted out of, by using the
`sfnopkgconfig` build tag. The behaviour when using that build tag is
effectively the same as pre-v0.47.1.
@peterstace peterstace self-assigned this Apr 11, 2024
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #cgo directives only need to be applied once, and are now supplied by either configure_hardcoded.go or configure_pkg_config.go (depending on if the sfnopkgconfig build tag is set or not).

@peterstace peterstace merged commit d8105cd into v0.47_fixes Apr 14, 2024
1 check passed
@peterstace peterstace deleted the build_tag_for_no_pkg_config branch April 14, 2024 18:50
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.

None yet

1 participant