-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[geos] Relocatable geos-config; dynamic builds on Unix #17616
Merged
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
89893b6
Provide geos-config, and fix dynamic builds on Unix
dg0yt 9a238b5
x-add-version
dg0yt 8f8e29b
Fix debug suffix handling
dg0yt 0fbdfa8
Update git-tree
dg0yt d222d85
Don't build benchmarks
dg0yt 6c2680b
Revise pc file and geos-config handling
dg0yt 9751a28
Port to non-deprecated cmake functions
dg0yt ab8c1d3
Add usage
dg0yt f90497f
Update git-tree
dg0yt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "geos", | ||
"version": "3.9.1", | ||
"port-version": 1, | ||
"description": "Geometry Engine Open Source", | ||
"homepage": "https://www.osgeo.org/projects/geos/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give an example of how this would be consumed? My understanding is that
xyz-config
scripts like this are usually referred to like"${XYZ_ROOT}/xyz-config"
and so havingxyz-config-debug
won't be directly usable. Instead, we should providedebug/share/geos/geos-config
and setGEOS_ROOT
todebug/share/geos
when in debug mode.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gdal
configure
says:and similar for curl, kea, sfcgal.
So this is to be consumed in the gdal portfile by:
I tested this locally, but this just one out of a pile of pending changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I adopt this: Outside vcpkg, the
<package>_ROOT
variable generally (e.g. in CMake find modules) means the installation prefix, i.e.${CURRENT_INSTALLED_DIR}
.As a consumer in a port file, I would still have to assign the roots to per-build-type parameters because the build types are handled deeper down in the cmake call stack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that when preparing the PR, and I verified today: It leads into a build error:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which file is in ${CURRENT_PACKAGES_DIR}/debug/share?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None with the current PR. @ras0219-msft proposed to have
debug/share/geos/geos-config
, and I reported what would be the result.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alternative to fixing geos-config, curl-config etc. is forcing the consumers to use pkg-config where possible, by removing these files. Consumers also need to know whether to ask the scripts for static or standard flags, and this is solved for
PKG_CONFIG
.E.g. port gdal will need a number of patches anyway, e.g. to use pkg-config for tiff.