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

[Test] [libpq] Update to 17.0 #41846

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

Conversation

LilyWangLL
Copy link
Contributor

@LilyWangLL LilyWangLL commented Oct 29, 2024

Fixes #41747, update libpq to 17.0.
According to the upstream documentation, use meson to build the new version of libpq.

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

Usage passed on x64-windows.

@LilyWangLL LilyWangLL added info:internal This PR or Issue was filed by the vcpkg team. category:port-update The issue is with a library, which is requesting update new revision labels Oct 29, 2024
ports/libpq/portfile.cmake Outdated Show resolved Hide resolved
Comment on lines 99 to 101
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

Manually removing the bin dir is a code smell.

And indeed, bin is removed before vcpkg_copy_tools(... AUTO_CLEAN) here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It also created the following dlls need to be removed:

note: debug/bin/libecpg.dll
note: debug/bin/libecpg_compat.dll
note: debug/bin/libpgtypes.dll
note: debug/bin/libpq.dll
note: debug/bin/pgevent.dll
note: bin/libecpg.dll
note: bin/libecpg_compat.dll
note: bin/libpgtypes.dll
note: bin/libpq.dll
note: bin/pgevent.dll

Copy link
Contributor

Choose a reason for hiding this comment

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

Why build/install them first?

ports/libpq/portfile.cmake Show resolved Hide resolved
ports/libpq/unix/fix-configure.patch Outdated Show resolved Hide resolved
Comment on lines -87 to -89
"client": {
"description": "Build all client tools and libraries"
},
Copy link
Contributor

@dg0yt dg0yt Oct 30, 2024

Choose a reason for hiding this comment

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

I would assume that we want to keep a feature which controls the installation of tools.

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 info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[libpq] update to 17.0
3 participants