Commit Graph

87 Commits

Author SHA1 Message Date
Daniele E. Domenichelli 67566432ae
libpq: depend on vcpkg-tool-meson >= 1.9.0#7 (#51795) 2026-05-16 02:06:49 -07:00
Kai Pastor 17662e6784
[libpq] Revise, use meson for all targets (#51250) 2026-05-01 21:51:13 +00:00
Frank Hale 717e7d7195
Update libpq to version 18.3 (#50345)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2026-03-25 11:06:29 -07:00
Emre df6c3cdd4b
[libpq] fix x64-mingw-static build producing import libraries instead of static archives (#49557) 2026-01-25 00:23:46 -08:00
Matthias Kuhn be563dfee8
[libpq] explicitly disable emscripten support (#48489) 2025-11-27 01:27:38 +00:00
Emre 6e1badfe62
[libpq]: Update tzcode to 2025b (because old version removed from msys2 repo) (#47256) 2025-09-12 15:50:49 -07:00
DevFdv a9eee3b18d
[libpq] Update to 16.9 (#45625)
Co-authored-by: Clement Menier <clement.menier@4dviews.com>
2025-05-29 01:51:40 -07:00
Kai Pastor f45c0ede6a
[giflib,libpq]: Fix wrappers and libpq[nls](windows) (#45573) 2025-05-26 22:54:37 -07:00
autoantwort 246459dc42
[libpq] fix build with macos 15.4 (#45032) 2025-04-17 13:16:25 -07:00
Kai Pastor d4738ebc46
[libpq] Update to 16.4 (#40485) 2024-08-19 09:54:25 -07:00
Kai Pastor 6af584dd59
[libpq] Update to 16.3 (#40110) 2024-08-06 14:41:10 -07:00
jim wang 27404c2779
[libpq] Delete gendef.pl related patches (#36992)
Fixes https://github.com/microsoft/vcpkg/issues/36693

Delete the patch of gendef.pl in
`vcpkg\ports\libpq\windows\msbuild.patch`. Because starting with
PostgreSQL 16, the "Win32" patch is no longer valid, the command line
arguments to gendef.pl were changed from Win32 to x86.

- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~~SHA512s are updated for each updated download.~~
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
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.

Usage test pass with following triplets:

```
x86-windows
x64-windows
```
2024-02-28 16:46:19 -08:00
MonicaLiu 46c5f1fff1
[libpq] Update to 16.2 (#36849)
Fixes #36168.
* Update `libpq` to 16.2.

* Removed outdated patch `python_lib.patch`.

* Feature `client` has an error on `x86-windows`:
https://github.com/microsoft/vcpkg/issues/36693, but it is not caused by
this update and will be solved in another PR.

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version.~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
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.


Features `client,icu,lz4,nls,openssl,python,tcl,xml,xslt,zlib,zstd` are
tested successfully in the following triplet:
```
x64-windows
x64-windows-static
```
Features `icu,lz4,nls,openssl,xml,xslt,zlib,zstd` are tested
successfully in the following triplet:
```
x86-windows
```
Features `readline,bonjour` are tested successfully in the following
triplet:
```
x64-osx
```
Feature `readline` are tested successfully in the following triplet:
```
x64-linux
```

The usage test passed on `x64-windows` (header files found):
```
The package libpq provides CMake integration:

    find_package(PostgreSQL REQUIRED)
    target_link_libraries(main PRIVATE PostgreSQL::PostgreSQL)
```

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2024-02-21 21:54:14 -08:00
Matthias Kuhn f45fd3334f
[libpq] fix build for *-android-dynamic (#36344)
Android does not like versioned .so files

Backport of 79b03dbb33
2024-01-25 09:36:02 -08:00
Todor Prokopov cbb9d90a2e
[libpq] Fix MinGW build (#34747) 2023-10-27 18:00:49 -07:00
JonLiu1993 84b4fe24b0
[libpq] update to 16.0 (#34368) 2023-10-10 15:00:28 -07:00
Kai Pastor 2b2852767f
[libpq] Unconditionally install to subdir (#33564) 2023-09-06 16:51:54 -07:00
Osyotr c6928dfb9e
[python3] Update to 3.11.4 (#31727)
* [python3] Update to 3.11.3

* Force set PythonForBuild on windows

* Set LD_LIBRARY_PATH on unix

* Always use vcpkg_find_acquire_program(PYTHON3) on windows

* Remove LD_LIBRARY_PATH shenanigans

* [vtk] Parse python version from include folder

* Fix static builds on windows

* Pass --with-build-python on unix

* [omniorb] Fix python version in patch

* Resurrect rpath patch

* [python3] fix usage

* [gobject-introspection] don't hardcode python version

* Update vcpkg_find_aquire_program(PYTHON3)
This is also required for gobject-introspection

* [paraview] don't hardcode python version

* [vtk-dicom] don't hardcode python version

* Update python in vcpkgTools.xml

* Fix host arch detection in vcpkg_find_acquire_program(PYTHON3)

* [libpq] Don't hardcode python version

* [shiva] Don't pass python variables

* [vcpkg-get-python-packages] Delete unused file, update hardcoded python version

* [python3] update to 3.11.4

* [omniorb] Use PREPEND in vcpkg_add_to_path
So that python from vcpkg is picked before system python

* libpq quickfix

* re-fix libpq

* fix vcpkg-get-python-packages

* Make windows 7 patch compatible with unix builds

* Copy pyd files to bin
Also fixes copying files that do not belong to current build tree

* Fix static builds

* Speculatively fix osx regression

* Fix omniorb on unix

* [gobject-introspection] fix windows builds

* [vtk] Update vendored copy of mpi4py for python 3.11 support

* [mdl-sdk] Fix python

* [gobject-introspection] fix the fix of a fix...

* Update versions

* Undo changes in gobject-introspection and vcpkg_find_aquire_program(PYTHON3)

---------

Co-authored-by: root <root@DESKTOP-UIPL9V8>
2023-08-07 13:19:53 -07:00
Kai Pastor 2f56fdad4b
[libpq,libxslt] Update libpq, fix misc issues (#31314)
* [libpq] Install msys2 autoconf-archive

* Install msys2 zic tool

* Fix zstd patching

* Always build as if cross compiling

* Enable feature client for non-windows

* Cleanup (WIP)

* Cleanup (WIP)

* Update portfile.cmake

* WIP

* WIP

* WIP

* WIP

* [libxslt] Fix pc files

* WIP

* WIP: Test libpq[all]

* WIP

* Update to 15.3

* Move patches

* Revert "WIP: Test libpq[all]"

* Fix install

* Skip import libs for plugins

* Full CI
2023-05-31 19:55:03 -07:00
autoantwort 2c4c5c7187
[libpq] nls does not support osx (#31031)
* [libpq] nls does not support osx

* Trigger Build

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-04-24 17:32:34 -07:00
Kai Pastor 7cda278292
[libpq] Fix windows build without openssl (#30650) 2023-04-05 16:42:30 -07:00
Kai Pastor 73b9a2a359
[openssl,vcpkg-cmake-get-vars] Fix android and emscripten, add feature `tools` (#29966)
* [vcpkg-cmake-get-vars] Call 'project' early

System variables like 'APPLE' or 'ANDROID' aren't set before 'project()'.

* Get Android variables

* [openssl] Ensure that compiler is reached via 'PATH'

* Fix Android configuration

* Add 'tools' feature

* Update versions

* [openssl] Initialize android with vcpkg settings

* [openssl] Really don't build apps

* [vcpkg-cmake-get-vars] Update android vars

* [libpq] Pass openssl version from pkgconfig

* [vcpkg-cmake-get-vars] Update android vars

* [vcpkg-cmake-get-vars] Report generator

* [vcpkg-cmake-get-vars] Escape all output

* Transfer cmake-get-vars fixes

* Transfer cmake-get-vars extra flags

* no-asm for android-arm w/o neon

* [vcpkg_configure_make] Unquote as needed

Toolchain flags are passed into make via environment variables (e.g.
CFLAGS) and expanded by Makefiles regardless of quotes. And even vcm's
internal handling isn't prepared for these quotes. So we must remove
the early. This doesn't interfere with properly escaped quotes.

* Re-add lost 'project', amends 4cf7caaa

* [openssl] Fix emscripten
2023-03-14 14:11:06 -07:00
Alexander Neumann 2c3f7b45b4
[Libpq] update to 15.2 (#29867)
* [libpq] update to 15.2

* v db

* add ldap to wrapper

* fix arm patch

* v db

* use vcpkg_extract_source_archive instead of the _ex version

* v db
2023-03-01 11:04:27 -08:00
ArcticLampyrid 28324ed4b4
[libpq] fix build with non-English MSVC (#26921) (#27851)
* [libpq] fix build with non-English MSVC (#26921)

* [libpq] bump port version

* Update version database
2022-11-18 13:47:40 -08:00
Kai Pastor be15c29977
[libpq] Fix osx-dynamic (#27103)
* Fix osx-dynamic builds

* Update versions
2022-10-05 14:58:04 -07:00
Matthias Kuhn 6ca56aeb45
[libpq] Fix ios build (#26906) 2022-09-26 14:50:08 -07:00
Alexander Neumann 52b6604253
[libpq] update to 14.4 and pass flags in msbuild (#26051)
* update libpq and pass flags to msbuild

* v db

* readd patch for linux

* v db

* readd patch

* v db

* Update ports/libpq/patches/fix-configure.patch

* v db

* use #pragma x_macro

* v db

* CI retrigger
2022-08-04 19:31:00 -07:00
Kai Pastor d953973cfb
[libpq] Cleanup dependencies, features and autotools patches (#24941)
* Consolidate autotools patches with pkg-config

Fixes mingw builds.

* No msbuild limitations for mingw

* Implement readline support

* Remove features which never built

* Bonjour support is osx only

* Move remaining support checks to manifest

* Remove libpq uwp fail from ci baseline

* Update versions
2022-05-27 17:03:32 -07:00
autoantwort 0497767b46
[libpq] no absolute paths (#23774) 2022-03-31 10:56:04 -07:00
Daniel Schürmann 440075a9fc
[libpq] Update version to 14.1 2 (#22516)
* update to 14.1

* adjust patches

* add lz4 feature on !windows

* version stuff

* [skip actions] patch configure.ac and run autoreconf

* fix some stuff

* [skip actions] more details

* [libpq] Add license filed to vcpkg json

* [libpq] Adjust tcl version to 90g 90s and 90sg

* [libpq] fail early from unsupported features

* [libpq] lake xslt dependent from xml

* [libpq] Update version database

* [libpq] quote static

* [libpq] Update Version Database

Co-authored-by: Alexander Neumann <Alexander.Neumann@hamburg.de>
2022-03-23 16:41:00 -07:00
Daniel Schürmann 01a065a970
Libpq update and VCPKG_OSX_SYSROOT fix (#21583)
* [libpq] Update to 12.9

* [libpq] Use VCPKG_OSX_SYSROOT if set

otherwise configure set the default sysroot in addition, ignoring the
sysroot set by vcpkg_configure_cmake.

* [libpq] remove comment only chunks from patches

* [libpq] update version registry
2021-12-14 10:59:38 -08:00
autoantwort ff3e120987
[libpq] no absolute paths (#21271) 2021-11-10 10:50:48 -08:00
Matthias Kuhn 4df8c6d7f0
[libpq] Android compatibility (#21073)
* [libpq] Android compatibility

* version
2021-11-08 21:31:08 -08:00
Long Huan eabb3ffe71
[libpq]fix windows build failure (#19031)
* fix windows build failure

fix Could not find debug or release binaries at libpq\x64-windows-rel\src\tools\msvc/Install.pm line 77.

* Update libpq.json
2021-07-22 13:41:26 -07:00
Alexander Neumann e2c3030703
[libpq] Add Secur32.lib and openssl to libpq cmake wrapper (#18377)
* [libpq] add secur32.lib to wrapper

* version stuff

* add openssl fix.

* fix version stuff
2021-06-15 10:33:31 -07:00
Jack·Boos·Yu d36f68e336
[libpq] Fix cmake wrapper on Windows, add usage (#17232)
* [libpq] Fix cmake wrapper on Windows, add usage

* update version record

* Fix macro PostgreSQL_LIBRARIES

* update version record

* Update ports/libpq/vcpkg-cmake-wrapper.cmake

Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>

* Update ports/libpq/vcpkg-cmake-wrapper.cmake

Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>

* Update versions/l-/libpq.json

* Update versions/baseline.json

* Update versions/l-/libpq.json

* Update ports/libpq/vcpkg.json

* Update versions/l-/libpq.json

* Update ports/libpq/vcpkg.json

* Update versions/baseline.json

* Update versions/l-/libpq.json

* Update versions/l-/libpq.json

Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
2021-04-30 11:10:51 -07:00
Alexander Neumann 326eabc191
[libpq] fix python patches (#15579)
* [libpq] fix python patches

* [libpq] Bump port-version and add comment about python patches

* Bump port-version

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-04-28 21:30:37 -07:00
Long Nguyen 818cf25415
[libpq] mingw support (#16740)
* [libpq] mingw support

* [libpq] Let libpq decides whether to build _shlib or not

libpqcommon.a and libpqport.a are internal libraries intended for
sharing code between the frontend and the backend. It's best to let
the build system decides if the _shlib variant should be built or not

* [libpq] Always run install-lib-static on mingw

* [libpq] Rename .a to .dll.a and move .dll to correct folder

* [libpq] Create bin folder for mingw

* [vcpkg baseline] Update libpq

* [libpq] Link with crypt32 on mingw

* [vcpkg baseline] Update libpq

* [libpq] Fix release/debug only build

* [vcpkg baseline] Update libpq
2021-04-19 17:19:44 -07:00
An Tao b230db959e
[drogon] Update to 1.4.1 (#16651)
* [drogon] Update to 1.4.1

* Update patch

* Format

* update version

* Revert the ctl feature

* update version

* [libpq] Fix static linkage

* [drogon] Revert direct postgresql library linkage

Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-03-19 09:51:52 -07:00
autoantwort 112067db83
[libpq] fix filenames (linux -> windows cross compile) (#16434)
* [libpq] fix filenames

* add version files

* add version files
2021-03-01 16:10:04 -08:00
Jack·Boos·Yu 0e3198878b
[libpq] Fix install tool pg_config on Linux (#15748)
* [libpq] Fix install tool pg_config

* update baseline

* [libpq] Use vcpkg_copy_tool_dependencies instead

* update baseline

* [libpq] Fix install tool pg_config

* update baseline

* [libpq] Use vcpkg_copy_tool_dependencies instead

* update baseline
2021-01-28 19:41:44 -08:00
Jack·Boos·Yu 78d4f88c05
[libpq] Change compile flag /Zi to /Z7 when building Windows (#15361)
* [libpq] Change compile flag /Zi to /Z7 when building Windows

* [libpq] Fix installation about pdbs
2020-12-30 10:40:30 -08:00
Alexander Neumann 678e3057d6
[libpq/ffmpeg] Fix iconv/intl linkage not covered by CI (#14626)
* fix iconv naming in ffmpeg

* libpq fix features
2020-11-19 12:33:04 -08:00
ras0219 de299679d9
[libpq] Fix incidental linkage of DL on windows platforms. (#14172)
Previously, detecting the presence of the dlfcn-win32 library resulted in an incorrect `-ldl` injection.

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-10-22 21:56:51 -07:00
Andrei Lebedev 8d4fd6df85
[vcpkg, libpq] separate static and shared library installations (#13491)
* [vcpkg] add missing Makefile flag for install step

Signed-off-by: Andrei Lebedev <lebdron@gmail.com>

* [libpq] add custom Makefile to install only required targets

Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
2020-09-24 12:29:13 -07:00
Andrei Lebedev 11f15f3ab8
[libpq] only require bison and flex on Windows (#12674)
Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
2020-08-05 14:01:13 -07:00
Jack·Boos·Yu bad319d271
[libpq] Remove broken features (#12415)
* [libpq] Remove broken features

* Update ports/libpq/portfile.cmake

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
2020-07-15 14:48:22 -07:00
nicole mazzuca ef91134964
[cmocka libarchive libiconv libpq libxml2 plibsys] fix drive-by error in vcpkg-cmake-wrappers (#12196)
* fix drive-by error in vcpkg-cmake-wrappers

* rev port versions
2020-07-02 11:00:28 -07:00
nicole mazzuca 1d8f0acc9c
[vcpkg manifest] Manifest Implementation (#11757)
==== Changes Related to manifests ====

* Add the `manifests` feature flag
  * This only says whether we look for a `vcpkg.json` in the cwd, not
    whether we support parsing manifests (for ports, for example)
* Changes to the manifests RFC
  * `"authors"` -> `"maintainers"`
  * `--x-classic-mode` -> `-manifests` \in `vcpkg_feature_flags`
  * reserve `"core"` in addition to `"default"`, since that's already
    reserved for features
  * Add a small helper note about what identifiers must look like
  * `<license-string>`: SPDX v3.8 -> v3.9
  * `"feature"."description"` is allowed to be an array of strings as well
  * `"version"` -> `"version-string"` for forward-compat with versions
    RFC
* Add the `--feature-flags` option
* Add the ability to turn off feature flags via passing
  `-<feature-flag>` to `VCPKG_FEATURE_FLAGS` or `--feature-flags`
* Add CMake toolchain support for manifests
  * Requires either:
    * a feature flag of `manifests` in either `Env{VCPKG_FEATURE_FLAGS}`
      or `VCPKG_FEATURE_FLAGS`
    * Passing the `VCPKG_ENABLE_MANIFESTS` option
  * The toolchain will install your packages to
    `${VCPKG_MANIFEST_DIR}/vcpkg_installed`.
* Add MSBuild `vcpkg integrate install` support for manifests
  * Requires `VcpkgEnableManifest` to be true
* `vcpkg create` creates a port that has a `vcpkg.json` instead of a
  `CONTROL`
* argparse, abseil, 3fd, and avisynthplus ports switched to manifest
  from CONTROL
* Add support for `--x-manifest-root`, as well as code for finding it if
  not passed
* Add support for parsing manifests!
* Add a filesystem lock!

==== Important Changes which are somewhat unrelated to manifests ====

* Rename `logicexpression.{h,cpp}` to `platform-expression.{h,cpp}`
* Add `PlatformExpression` type which takes the place of the old logic
  expression
  * Split the parsing of platform expressions from checking whether
    they're true or not
  * Eagerly parse PlatformExpressions as opposed to leaving them as
    strings
* Add checking for feature flag consistency
  * i.e., if `-binarycaching` is passed, you shouldn't be passing
    `--binarysource`
* Add the `Json::Reader` type which, with the help of user-defined
  visitors, converts JSON to your internal type
* VcpkgArgParser: place the switch names into a constant as opposed to
  using magic constants
  * In general update the parsing code so that this ^ works
* Add `Port-Version` fields to CONTROL files
  * This replaces the existing practice of
    `Version: <my-version>-<port-version>`

==== Smaller changes ====
* small drive-by cleanups to some CMake
  * `${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}` ->
    `${CURRENT_INSTALLED_DIR}`
  * Remove `-analyze` when compiling with clang-cl, since that's not a
    supported flag (vcpkg's build system)
  * Add a message about which compiler is detected by vcpkg's build
    system machinery
* Fix `Expected::then`
* Convert `""` to `{}` for `std::string` and `fs::path`, to avoid a
  `strlen` (additionally, `.empty()` instead of `== ""`, and `.clear()`)
* Add `Strings::strto` which converts strings to numeric types
* Support built-in arrays and `StringView` for `Strings::join`
* Add `operator<` and friends to `StringView`
* Add `substr` to `StringView`
* SourceParagraphParser gets some new errors
2020-06-30 10:40:18 -07:00
Vicki Pfau eede79eb27
Fix bootstrapping MSYS2 pacman (#11499) (#12080) 2020-06-24 11:29:28 -07:00