Commit Graph

26 Commits

Author SHA1 Message Date
David Smith
b43e7adc6f
[protobuf] Add Compiler Condition to use inline assembly optimizations with ARM64 (#40173) 2024-08-01 14:35:33 -07:00
Dennis
561d171d79
[grpc/protobuf] Update grpc to 1.60.0 and update protobuf to 3.25.1 (#35781)
Resolves https://github.com/microsoft/vcpkg/issues/35566

This pr includes https://github.com/microsoft/vcpkg/pull/31159 and
https://github.com/microsoft/vcpkg/pull/35399

Ports changed in this pr:

Most of these changes stem from the fact that protobuf now depends on
abseil and requires c++14 while ports consume protobuf using
`target_link_libraries(lib ${Protobuf_LIBRARIES})` instead of
`target_link_libraries(lib PUBLIC protobuf::libprotobuf)`.

* **abseil** Updated to 03/04/2024 to address MSVC build issue in
openvino
* **arcus** Updated to 4.13.2
* **braft** Patched to use `find_package(Protobuf` instead of custom
FindProtobuf module. also link with `PUBLIC protobuf::libprotobuf)`.
* **brpc** Patch several `target_link_library` calls to include `PUBLIC`
instead of nothing. Patch some warnings that are treated as errors by
some OSX compiler. Patch usage of changed protobuf features most
importantly removal of `SetLogHandler`, tbd whether this patch is
acceptable with upstream.
* **cld3** Use CONFIG to find protobuf to propagate dependent abseil
libs and cxx14 correctly.
* **ecal** Use CONFIG to find protobuf. Use PUBLIC when linking it.
* **gamenetworkingsockets** Add `-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=on`
for protobuf.
* **gz-transport12** Update to fix usage of removed protobuf features.
* **ignition-msgs1/5/6** Remove protobuf version check which is confused
by the duplicate versioning scheme (v25.1 vs. 3.25.1 vs 4.x). Why are we
even maintaining this no longer maintained major version of this port? I
would welcome a more strict policy on removing ports/adding them to
ci.baseline.txt
* **ignition-transport4/8/9** Same as above + cherry-pick a protobuf
deprecation patch.
* **libprotobuf-mutator** Cherry-pick two commits to address altered
protobuf functionality. Add CONFIG and PUBLIC to protobuf handling in
CMake.
* **marble** Explicitly set protobuf to not found since it is not part
of the vcpkg.json but is made available transitively but another
dependency.
* **mysql-connector-cpp** Several CMake changes and removal of
protobuf::SetLogHandler patch.
* **openvino** Find protobuf using CONFIG
* **osgearth** Link libraries using PUBLIC and link with
protobuf::libprotobuf instead of Protobuf_LIBRARIES
* **paraview** Find protobuf using CONFIG and remove version check
* **pulsar-client-cpp** Add protobuf linkage to PULSAR_OBJECT_LIB.
Simplify protoc patch. Remove -Werror.
* **shogun** Update and patch as much as possible. Users are required to
override bitsery version to 4.x to use shogun since it does not support
5.x provided by vcpkg. Therefore add shogun to ci.baseline.txt.
* **srpc** Update and fix static crt linkage. Patch protobuf linkage and
remove hardcoded `-std=c++11` flag. Protobuf requires c++14 and CMake
does not recognize the hardcoded c++11 flag and will therefore not add a
c++14 flag when the compiler uses c++14 by default.
* **upb** Update to align version with protobuf/grpc and use new github
repo. Patch usual CMake mess (they do not support CMake officially)
which should probably be `unofficial-upbConfig.cmake` but I didn't dig
into downstream implications so I kept it at `upbConfig.cmake` as
before.
* **utf8-range** Update to allign version with protobuf.
2024-06-21 13:39:50 -07:00
gerard-ryan-immersaview
6db51d86a9
[vcpkg_replace_string] warn unchanged by call (#34719)
If a call to `vcpkg_replace_string` makes no changes i.e doesn't
effectively replace a string, A warning is logged.

This should also help identify ports that no longer need these calls to
fix things in `.pc` files etc.
2024-06-19 14:07:05 -07:00
Frank
248380e074
[protobuf] fix pc library reference (#38822) 2024-05-24 19:39:45 -07:00
wtz
50ca16008c
[multiple ports] Keep description consistent with upstream (#37998)
<!-- If your PR fixes issues, please note that here by adding "Fixes
#NNNNNN." for each fixed issue on separate lines. -->

<!-- If you are still working on the PR, open it as a Draft:
https://github.blog/2019-02-14-introducing-draft-pull-requests/. -->

<!-- If this PR updates an existing port, please uncomment and fill out
this checklist: -->

- [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.~
- [ ] ~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.

<!-- If this PR adds a new port, please uncomment and fill out this
checklist:

- [ ] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] The name of the port matches an existing name for this component
on https://repology.org/ if possible, and/or is strongly associated with
that component on search engines.
- [ ] Optional dependencies are resolved in exactly one way. For
example, if the component is built with CMake, all `find_package` calls
are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or
disabled with
[CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html).
- [ ] The versioning scheme in `vcpkg.json` matches what upstream says.
- [ ] The license declaration in `vcpkg.json` matches what upstream
says.
- [ ] The installed as the "copyright" file matches what upstream says.
- [ ] The source code of the component installed comes from an
authoritative source.
- [ ] The generated "usage text" is accurate. See
[adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md)
for context.
- [ ] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [ ] Only one version is in the new port's versions file.
- [ ] Only one version is added to each modified port's versions file.

END OF NEW PORT CHECKLIST (delete this line) -->
2024-04-09 12:10:21 -04:00
Billy O'Neal
ed024a8897
[protobuf] Delete unused backends from sources. (#36377)
We have an internal Microsoft report of dependency tracking tools complaining about requirements.txt in the Python backend of protobuf after a build. It's just as likely that similar alerts will be fired for other unused language backends. However, they're unused, so we can delete them.
2024-01-26 16:45:13 -08:00
Frank
6245ce44a0
[protobuf] update version to 3.21.12 (#28710)
* [protobuf] update version to 3.21.12

* version
2023-01-15 11:10:54 -08:00
Matthieu Penant
eb873d2614
[protobuf] updated version 3.21.8 (#27331)
* protobuf 3.21.8

* Update protobuf.json

Co-authored-by: Lily Wang <494550702@qq.com>
2022-10-21 15:27:22 -07:00
Ryan A. Pavlik
b0956f6170
[protobuf] Teach about crosscompile (#27089)
* [protobuf] Teach the cmake wrapper about cross-compiling.

* Update versions
2022-10-08 21:21:44 -07:00
Carlos O'Ryan
038dc2df42
[protobuf] update to v3.21.6 release (#26927) 2022-09-23 10:13:02 -07:00
Matthieu Penant
cadfaa5a22
[protobuf] update to 3.21.4 (#26061)
* [protobuf] update at 3.21.4

* Update protobuf.json
2022-08-01 09:53:39 -07:00
Alexander Neumann
f85bc5ebab
[protobuf] (3.)21.3 (#25909)
* [protobuf] update to 21.3

* v db

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-07-22 13:55:45 -07:00
Alexander Neumann
1432faa595
[Protobuf] fix used source dir (#25861)
* [protobuf] fix source path

* v db
2022-07-20 15:41:57 -07:00
LilyWangLL
087ef910dd
[protobuf] Update to 3.21.2 (#24400)
* [protobuf] Update to 3.20.1

* x-add-version

* [protobuf] Fix Linux build error

* x-add-version

* update protobuf to 3.21.2 and fix build error

* x-add-version

* Update protobuf.json

* add version

* x-add-version

* fix gazebo build error

* x-add-version

* update gazebo version

* update versions db

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
Co-authored-by: Victor Romero <viromer@microsoft.com>
2022-07-07 10:21:54 -07:00
Sewon Park
a80a5e9b5f
[protobuf] upgrade to latest release (v3.19.4) (#23474)
* [protobuf] upgrade to latest release (v3.19.4)

* [protobuf] upgrade to latest release (v3.19.4) - update version
2022-03-15 13:26:15 -07:00
Liu Chenxin
e16a8ac6dc
[protobuf] fix protobuf-3.18 mingw build failure (#22369)
* fix protobuf-3.18 mingw build

* fix protobuf-3.18 mingw build
2022-01-12 11:34:24 -08:00
Carlos O'Ryan
b29f8ef37e
[protobuf] upgrade to latest release (v3.18.0) (#20208)
* [protobuf] upgrade to latest release (v3.18.0)

This requires patching OpenCV as it uses a function removed in the
latest version of protobuf (FWIW, upstream OpenCV has a similar patch).

* The arcus port also needs a patch

* The caffe2 port also needs a patch

* The brpc port also needs a patch
2021-09-22 13:09:55 -07:00
Liu Chenxin
a863c84812
[protobuf] add support for mingw subsystem (#19054)
* [protobuf] add support for mingw subsystem

* [protobuf] support for mingw

* Update the port version

* Update the baseline version

Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
2021-08-02 16:59:18 -07:00
bucurb
59e3243c99
[protobuf] Fixed protoc path (#18741)
* fixed protoc path

* bumped version
2021-07-01 09:10:50 -07:00
Max Golovanov
7d472dd258
[protobuf] Protobuf no longer compiles with vs2019 Update 16.10 w/ c++latest (#18251)
* Create port_def.patch

Patch to turn off constinit with Visual Studio 2019 Update 16.10

* Update portfile.cmake

Apply port_def.patch

* Update vcpkg.json

Increment port-version

* Add version
2021-06-10 16:32:11 -07:00
Robert Schumacher
4e83da0887
[vcpkg] Update vcpkg tool version 2021-05-05 (#17689)
* [vcpkg] Update vcpkg tool version 2021-05-05

* [vcpkg] Hotfix bug in Microsoft/vcpkg-tool#34

* [vcpkg-ci] Ignore results from non-target triplets

* [protobuf] Fix regression introduced in #16904

* [vcpkg] Fix bug where 'staticcrt' was ignored

Co-authored-by: Robert Schumacher <ras0219@outlook.com>
2021-05-06 07:12:43 -07:00
Yonik Seeley
aefc4b01a4
[protobuf] update to 3.15.8 (#16449) 2021-04-12 11:16:32 -07:00
NancyLi1013
4fb865b8b7
[protobuf] Fix deprecation warning in vcpkg_check_feature() (#16997)
* [protobuf] Fix deprecation warning in vcpkg_check_feature()

* Update versions

* Update keyword

* Update versions/p-/protobuf.json
2021-04-01 10:32:41 -07:00
Jack·Boos·Yu
6d9ed56811
[vcpkg baseline][osgearth/gdal] Re-fix dependency gdal (#16904)
* [osgearth] Re-fix dependency gdal

* [gdal] Add dependency freexl on UNIX

* update version record

* fix patch

* convert to manifest

* update version record

* re-fix

* update version record

* add dependency freexl

* update version record

* Disable freexl

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* Don't require freexl on Windows

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* Revert osgearth change

* Fix the baseline version

* Fix osgearth baseline version

* [protouf] Automatic set protobuf_MODULE_COMPATIBLE to include the module file

* Set protobuf_MODULE_COMPATIBLE in wrapper

* Re-fix protobuf

* update version record

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
2021-03-28 13:52:48 -07:00
ras0219
b5bb1511f0
[many ports] Apply host dependencies (#16479)
* [vcpkg] Add VCPKG_HOST_TRIPLET. Improve vcpkg.schema.json

* [many ports] Apply host dependencies

* [yasm-tool] Revert yasm-tool changes to split into PR #16478

* [many ports] Add versions

* [vcpkg.cmake] Revert change applied in other PR

* [boost-modular-build-helper] Merge from master

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-03-26 12:55:34 -07:00
nicole mazzuca
68a74950d0
[vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00