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

libpq: add v17.0 using the new Meson build system #25458

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Sep 29, 2024

Summary

Changes to recipe: libpq/17.0

Motivation

Switching to the new Meson-based build system to hopefully get rid of the maintenance overhead of the large number of complex patches and additional installation steps required in the Autotools-based recipe.

See the original commit in the repo for more context: postgres/postgres@e692727

Details

Added nearly all supported external dependencies as options. Some of them are only used by the server executable, which is out of scope for the recipe, but I decided to keep them since the building of executables cannot be disabled, so might as well keep the server and other executables in the package as an option.

These PRs are required for optional dependencies:


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@valgur valgur marked this pull request as ready for review October 2, 2024 11:38
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

Warning

Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement.

All green in build 8 (afd7254ceeac5b28d6c811bc60d209042c7da563):

  • libpq/17.0:
    Built 20 packages out of 22 (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 8 (afd7254ceeac5b28d6c811bc60d209042c7da563):

  • libpq/17.0:
    All packages built successfully! (All logs)

Copy link
Contributor

@jwillikers jwillikers left a comment

Choose a reason for hiding this comment

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

+1 for Meson


def _fix_static_library_names(self):
# Meson outputs static libraries with a .a extension on Windows,
# which is not compatible with Conan and CMake.
Copy link
Contributor

Choose a reason for hiding this comment

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

Fyi, newer CMake versions, 3.29 and later, support .a file extensions for static libraries on Windows when building with MSVC. See the release notes here.

It would be nice to see support for using the .a suffixes eventually. I think Meson made the right decision to use .a instead of .lib on Windows for static libraries to avoid confusion with import libraries which use the same .lib extension.

TibiIius added a commit to dampsoft/conan-center-index that referenced this pull request Nov 29, 2024
- use Meson build system in favour of Autotools

Source: conan-io#25458
@valgur valgur force-pushed the update/libpq-meson branch from afd7254 to d3f8fe5 Compare February 10, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants