Conversation
|
Can you please sign CLA first? |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
All manifest files must be formatted
./vcpkg format-manifest ports/*/vcpkg.json
Diff
diff --git a/ports/braft/vcpkg.json b/ports/braft/vcpkg.json
index b054486..cf28ed4 100644
--- a/ports/braft/vcpkg.json
+++ b/ports/braft/vcpkg.json
@@ -1,23 +1,23 @@
-{
- "name": "braft",
- "version-date": "2021-26-04",
- "description": "Consesus algorithm library",
- "homepage": "https://github.com/baidu/braft",
- "supports": "!windows",
- "dependencies": [
- {
- "name": "vcpkg-cmake",
- "host": true
- },
- {
- "name": "vcpkg-cmake-config",
- "host": true
- },
- "brpc",
- "protobuf",
- "leveldb",
- "gflags",
- "glog",
- "thrift"
- ]
-}
+{
+ "name": "braft",
+ "version-date": "2021-26-04",
+ "description": "Consesus algorithm library",
+ "homepage": "https://github.com/baidu/braft",
+ "supports": "!windows",
+ "dependencies": [
+ "brpc",
+ "gflags",
+ "glog",
+ "leveldb",
+ "protobuf",
+ "thrift",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 773516ecf6014d89cc69b11bb54605ad4be56694 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/baseline.json b/versions/baseline.json
index 316e85c..901aa86 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1132,6 +1132,10 @@
"baseline": "2.4.1",
"port-version": 2
},
+ "braft": {
+ "baseline": "2021-26-04",
+ "port-version": 0
+ },
"breakpad": {
"baseline": "2020-09-14",
"port-version": 5You have modified or added at least one vcpkg.json where a "license" field is missing.
Details
If you feel able to do so, please consider adding a "license" field to the following files:
ports/braft/vcpkg.json
Valid values for the license field can be found in the documentation
|
Done |
|
If you remove the install step of the patch, the library will compile fine as I said. But we can't reference it in another cmake scripts |
There was a problem hiding this comment.
You have modified or added at least one vcpkg.json where a "license" field is missing.
Details
If you feel able to do so, please consider adding a "license" field to the following files:
ports/braft/vcpkg.json
Valid values for the license field can be found in the documentation
There was a problem hiding this comment.
You have modified or added at least one vcpkg.json where a "license" field is missing.
Details
If you feel able to do so, please consider adding a "license" field to the following files:
ports/braft/vcpkg.json
Valid values for the license field can be found in the documentation
ports/braft/export-target.patch
Outdated
| ) | ||
| endif() | ||
| + | ||
| +install(EXPORT unofficial-braftConfig |
There was a problem hiding this comment.
All the dependency's styles are absolute path, so we don't need find_dependency.
There was a problem hiding this comment.
You have modified or added at least one vcpkg.json where a "license" field is missing.
Details
If you feel able to do so, please consider adding a "license" field to the following files:
ports/braft/vcpkg.json
Valid values for the license field can be found in the documentation
|
@Gab-Menezes Can you please test the changes? |
We should find all kind of gflags.
Okay, will export only path level |
|
I will handle this tomorrow. |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for braft but no changes to version or port version.
-- Version: 2021-26-04
-- Old SHA: 78874b8ee402a9025a9bcc8662c5f30461231273
-- New SHA: 1e440378c483c1d3a12a666f5f0163bbd3103715
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
|
@Gab-Menezes Please test again. Thanks. |
|
So the configuration step is not working here is the log (running with --debug flag) (I also deleted all the reference to braft to guarantee that it's not a cache problem) |
This usually comes from a statement like: Either you find out why it is empty/unset, or you add quotes: |
|
@Gab-Menezes Should be good now. |
|
@JackBoosY Yay it compiles when linking to another project, only one thing. We need do link gflags manually if not we get: Even though I didn't include nothing from glfags, but if we find and link, it works fine. |
|
In the near future I will try to do the brpc one (I'm kinda busy right now). If I have any problem can I ask for your help @JackBoosY ? (I will try to use this one as a reference) |
|
@Gab-Menezes Ah I forgot this, sorry. |
|
Yes I know we have, but it's not exported (I'm talking about brpc (braft uses brpc), not grpc) |
Okay, I will take a look at that. |
|
@Gab-Menezes This time it should be okay, I promised. |
|
@JackBoosY It's working perfectly without needing to link gflags manually. |
|
Thanks! |
* master: (139 commits) [dstorage] Add port for Microsoft.Direct3D.DirectStorage NuGet (microsoft#24063) [vcpkg] Refactor toolchain & generator selection (microsoft#23846) [icu] update to 70.1 (microsoft#23445) [vcpkg] Update android usage documentation (microsoft#23690) [LMDB] update to 0.9.29 (microsoft#24045) [catch2] Don't install docs (microsoft#24046) [harfbuff] fix arm64 osx build (microsoft#24055) [openxr-loader] remove from CI baseline (microsoft#24057) [imath] Update to 3.1.5 (microsoft#24059) [openssl] Fix dynamic builds on UNIX (microsoft#24061) [c-ares] update to 1.18.1 (microsoft#24062) [igraph] update to 0.9.8 (microsoft#24065) [cmake-user] Fix library check (microsoft#24070) [openxr-loader] fix ci.baseline.txt (microsoft#24073) [tinycbor] Fix file conflicts with libcbor (microsoft#24056) [graphviz,libslirp] Limit msys to windows (microsoft#24032) [bdwgc] Don't build docs (microsoft#24025) [capstone] update to 5.0.0-rc2 (microsoft#23979) [clockutils] Fix x64-windows-static-md (microsoft#23965) [braft] New port (microsoft#23830) ...


Describe the pull request
New port for braft
Which triplets are supported/not supported? Have you updated the CI baseline?
Linux, No
Does your PR follow the maintainer guide?
Not yet, I am still working on this PR
If you have added/updated a port: Have you run
./vcpkg x-add-version --alland committed the result?Not yet, I am still working on this PR
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/