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

[osgEarth] Update port version to 3.5 #37613

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Conversation

plevy
Copy link
Contributor

@plevy plevy commented Mar 21, 2024

If this PR updates an existing port, please uncomment and fill out this checklist:

  • [x ] Changes comply with the maintainer guide.
  • [ x] SHA512s are updated for each updated download.
  • [ x] The "supports" clause reflects platforms that may be fixed by this new version.
  • [ x] Any fixed CI baseline entries are removed from that file.
  • [ x] Any patches that are no longer applied are deleted from the port's directory.
  • [ x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • [ x] Only one version is added to each modified port's versions file.
@FrankXie05 FrankXie05 added the category:port-update The issue is with a library, which is requesting update new revision label Mar 22, 2024
Comment on lines 54 to 66
if(OSGEARTH_BUILD_CESIUM_NODEKIT)
find_package(CesiumNative)
endif()

if(OSGEARTH_BUILD_TRITON_NODEKIT)
- find_package(Triton)
+ find_package(Triton REQUIRED)
endif()

if(OSGEARTH_BUILD_SILVERLINING_NODEKIT)
- find_package(SilverLining)
+ find_package(SilverLining REQUIRED)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

These now need to be added as features to support. Otherwise they cannot be used :)

Copy link
Contributor

Choose a reason for hiding this comment

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

-These now need to be added as features to support. 
+These now need to be added as dependencies. 
Copy link
Contributor Author

@plevy plevy Mar 22, 2024

Choose a reason for hiding this comment

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

Since Silverlining, Triton, and Cesium Native do not have vcpkg ports, the intention is not to be used and fail if someone tries to enable them. All 3 are going to be off by default as we did this with Silverlining and Triton in past ports.

Thank you

Copy link
Contributor

Choose a reason for hiding this comment

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

Since Silverlining, Triton, and Cesium Native do not have vcpkg ports,

Silverlining :
If the feature is not implemented, don't modify it

-DOSGEARTH_BUILD_SILVERLINING_NODEKIT=OFF

Triton:

If you want to modify find_package(Triton REQUIRED), please improve it to a feature (if the port is correct https://github.com/microsoft/vcpkg/blob/master/ports/triton/portfile.cmake)

Cesium Native:
If it's not supported, don't modify it. :)

Copy link
Contributor

Choose a reason for hiding this comment

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

FTR the lines are only moved, not added,

@FrankXie05
Copy link
Contributor

I will be converting your PR to draft status. When you respond, please revert to "ready for review".
That way, I can be aware that you've responded since you can't modify the tags.

@FrankXie05 FrankXie05 marked this pull request as draft March 22, 2024 08:20
@plevy plevy marked this pull request as ready for review March 22, 2024 17:59
@plevy
Copy link
Contributor Author

plevy commented Mar 26, 2024

I removed the modifications to Triton and Silverlining. The Triton that we use is this one:
https://sundog-soft.com/portfolio-items/the-triton-ocean-sdk/

Different than the other Triton with a port.

Comment on lines 3 to 7
{
"git-tree": "66666b6eb6c6823bce9b00d8651e6bd2fda42722",
"version": "3.5",
"port-version": 1
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{
"git-tree": "66666b6eb6c6823bce9b00d8651e6bd2fda42722",
"version": "3.5",
"port-version": 1
},
Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
@plevy plevy requested a review from FrankXie05 April 2, 2024 14:39
@plevy
Copy link
Contributor Author

plevy commented Apr 30, 2024

@FrankXie05 @dg0yt I'd still like to complete this port. Any suggestions on how to move it forward?

@plevy plevy requested a review from dg0yt April 30, 2024 14:22
Copy link
Contributor

@dg0yt dg0yt left a comment

Choose a reason for hiding this comment

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

After committing the changes, run vcpkg x-add-version --overwrite-version osgearth, and commit that, too.

And please fix an "osgEath" typo in the PR title.

Comment on lines 8 to 15
MACRO(LINK_WITH_VARIABLES TRGTNAME)
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}")
+ if(DEFINED ${lwv_libraries})
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}})
+ continue()
+ endif()
FOREACH(varname ${ARGN})
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}")
+ if(DEFINED ${lwv_libraries})
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}})
+ continue()
+ endif()
IF(${varname}_DEBUG)
Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks invalid. The extra code is to use varname which is controlled by FOREACH(varname ${ARGN}).

@@ -1,6 +1,6 @@
{
"name": "osgearth",
"version": "3.4",
"version": "3.5",
"port-version": 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"port-version": 1,
@plevy plevy changed the title update osgEath port to osgEarth 3.5 May 2, 2024
@dg0yt
Copy link
Contributor

dg0yt commented May 3, 2024

It cannot be merged in this state. Please respond to the review comments.

@plevy
Copy link
Contributor Author

plevy commented May 3, 2024

It cannot be merged in this state. Please respond to the review comments.

Fixed the patch but the build fails now. My cmake skills aren't strong, can you take a quick look at the failure. I think you wrote the original patch.

Copy link
Contributor

@dg0yt dg0yt left a comment

Choose a reason for hiding this comment

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

Please apply the suggestions in the source and recreate the patch.

ports/osgearth/link-libraries.patch Outdated Show resolved Hide resolved
ports/osgearth/link-libraries.patch Outdated Show resolved Hide resolved
@FrankXie05 FrankXie05 changed the title update osgEarth port to osgEarth 3.5 May 6, 2024
Comment on lines +9 to 18
+ string(REPLACE "_LIBRARY" "_LINK_LIBRARIES" lwv_link_libraries "${varname}")
+ if(DEFINED ${lwv_link_libraries})
+ TARGET_LINK_LIBRARIES(${TRGTNAME} PRIVATE ${${lwv_link_libraries}})
+ continue()
+ endif()
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}")
+ if(DEFINED ${lwv_libraries})
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}})
+ TARGET_LINK_LIBRARIES(${TRGTNAME} PRIVATE ${${lwv_libraries}})
+ continue()
+ endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will add some libraries twice now. LIBRARIES are included in LINK_LIBRARIES if the latter is defined. This should be avoided.

Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

Can you respond to dg0yt's feedback?

template<typename FUNC_TYPE>
struct Action {
FUNC_TYPE func;
- bool eat = true;
Copy link
Member

Choose a reason for hiding this comment

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

Is this patch submitted upstream?

@BillyONeal BillyONeal marked this pull request as draft June 18, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-update The issue is with a library, which is requesting update new revision
4 participants