Add PORT_VERSION cmake variable to be used in portfile.cmake #17908
CJCombrink
started this conversation in
Ideas
Replies: 1 comment
-
Please review my draft PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Currently the maintainers need to ensure that the version specified in the CONTROL file matches the version referenced in the portfile.cmake. This is not ideal since these versions can get out of sync which can be problematic if a user sees that a port is at version x but the installation installs version y. See for example #9235
Proposed solution
Add a PORT_VERSION variable to cmake that will be available to the portfile that contains the version specified in the CONTROL file.
Describe alternatives you've considered
I have proposed on PR the above to manually read/parse the CONTROL file for the given port in the portfile but this is not ideal.
Additional context
I will make a PR shortly
Beta Was this translation helpful? Give feedback.
All reactions