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

[vtkm|vtk|paraview] update ports #37119

Merged
merged 168 commits into from
Apr 29, 2024
Merged

Conversation

Neumann-A
Copy link
Contributor

@Neumann-A Neumann-A commented Mar 4, 2024

closes #36801
closes #36253
closes #36044

includes #24327 to fix dlib linkage in the osx pipelines.

Need to look at
#36044
#36345

merge after

Neumann-A and others added 30 commits January 21, 2021 11:10
# Conflicts:
#	ports/blas/CONTROL
#	ports/lapack-reference/CONTROL
#	ports/lapack-reference/portfile.cmake
#	ports/lapack/CONTROL
#	versions/b-/blas.json
#	versions/baseline.json
#	versions/l-/lapack-reference.json
#	versions/l-/lapack.json
rename -impl ports to old name
move -test ports into script/test_ports
# Conflicts:
#	ports/lapack-reference/vcpkg.json
#	versions/baseline.json
#	versions/l-/lapack-reference.json
- std::string libraryPath = vtkGetLibraryPathForSymbol(vtkPVInitializePythonModules);
- vtkPythonInterpreter::SetUserPythonPath(
- libraryPath.c_str(), "paraview/__init__.py" /*landmark*/);
+ // Ignore this for now. Requires a slightly newer VTK version than PV 5.12 uses.
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain why it is acceptable to just comment stuff out like this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What happens here in C++ code is the equivalent of setting PYTHONPATH in the environment. Since the VTK version here does not have these functions yet I commented them out. It is basically a partial revert of the external VTK patch in iparaview. (The current version of paraview also does not have these setup functions.)

Basically: It is a nice to have for paraview to have these functions but they are not a requirement. Users can manually set them up (or screw them up).

ports/paraview/fix-configure.patch Show resolved Hide resolved
ports/paraview/portfile.cmake Show resolved Hide resolved
ports/paraview/portfile.cmake Outdated Show resolved Hide resolved
{
std::vector<std::pair<int, vtkmdiy::MemoryBuffer>> vec;
- vec.push_back(std::move(entry));
+ vec.emplace_back(std::move(entry));
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain what changing this to emplace_back fixes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

vtkmdiy::MemoryBuffer is an only moveable type and this moved the compiler error to a different location.

-DVTKm_ENABLE_DOCUMENTATION=OFF
-DVTKm_ENABLE_BENCHMARKS=OFF
-DVTKm_USE_DEFAULT_TYPES_FOR_VTK=ON
-DBUILD_TESTING=OFF
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even if it is, better be explicit about it since it might change in the future or be dependent on some other options. (The default is not always set to OFF. Some projects set it to ON by default)

ports/vtk-m/portfile.cmake Outdated Show resolved Hide resolved
ports/vtk-m/portfile.cmake Outdated Show resolved Hide resolved
remove-prefix-changes.patch
10945.diff
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain where these numbered patches came from? I assumed they were PRs in VTK's repo but https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10945/diffs is not this change.

Copy link
Contributor Author

@Neumann-A Neumann-A Apr 9, 2024

Choose a reason for hiding this comment

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

I assumed they were PRs in VTK's repo but https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10945/diffs is not this change.

It is just an earlier change. The problem with the latest is that it does no longer apply to the version here so I could not update it. Since the old version worked fine within vcpkg I used it instead of the newer one which would require a backport.

It is very probably the version after the fix for the error I posted a comment about in that MR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also keep the numbers as a reminder for: This can be removed in the next update.

Copy link
Member

Choose a reason for hiding this comment

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

I'm just trying to follow up / verify that this is landed or at least submitted upstream, since some of these are big patches we wouldn't normally make ourselves. (No changes are requested to the content of the PR)

ports/vtk/portfile.cmake Outdated Show resolved Hide resolved
@BillyONeal BillyONeal marked this pull request as draft April 9, 2024 16:38
@BillyONeal BillyONeal removed the info:reviewed Pull Request changes follow basic guidelines label Apr 9, 2024
@BillyONeal
Copy link
Member

Thanks for the updates!

@Neumann-A Neumann-A marked this pull request as ready for review April 11, 2024 16:12
@Neumann-A
Copy link
Contributor Author

Neumann-A commented Apr 11, 2024

Ready for review again since rtabmap is baseline.

Cheney-W
Cheney-W previously approved these changes Apr 12, 2024
@Cheney-W Cheney-W added the info:reviewed Pull Request changes follow basic guidelines label Apr 12, 2024
# Conflicts:
#	ports/openmvs/portfile.cmake
#	versions/o-/openmvs.json
JavierMatosD
JavierMatosD previously approved these changes Apr 25, 2024
Copy link
Contributor

@JavierMatosD JavierMatosD left a comment

Choose a reason for hiding this comment

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

I'm good to go with these changes once CI is green :)

@Neumann-A
Copy link
Contributor Author

I'm good to go with these changes once CI is green :)

#38035 broke it

@JavierMatosD
Copy link
Contributor

I'm good to go with these changes once CI is green :)

#38035 broke it

🤦‍♂️ sorry about that.

@Neumann-A
Copy link
Contributor Author

@JavierMatosD CI is green. Ready to merge and fixing the baseline issues.

@Neumann-A Neumann-A mentioned this pull request Apr 28, 2024
6 tasks
@flamxiOfWayland
Copy link

thanks a lot for your work, when do you think we can merge this one? I am quite depended on it ?

@JavierMatosD JavierMatosD merged commit 3efae11 into microsoft:master Apr 29, 2024
17 checks passed
@Neumann-A Neumann-A deleted the paraview_5.12 branch April 29, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR! category:port-update The issue is with a library, which is requesting update new revision info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
8 participants