Skip to content

Commit

Permalink
[libbson] Fix libbson when Python3 isn't on the PATH
Browse files Browse the repository at this point in the history
Probably broken by microsoft/vcpkg#34994

Detected in microsoft/vcpkg#35116

where this REGEX is expected to be output from the python script

```
CMake Error at build/cmake/LoadVersion.cmake:9 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:20 (LoadVersion)
```
  • Loading branch information
BillyONeal committed Nov 22, 2023
1 parent 11cbb6b commit c94ee7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ports/libbson/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DBUILD_VERSION=${VERSION}"
-DENABLE_BSON=ON
-DENABLE_EXAMPLES=OFF
-DENABLE_ICU=OFF
Expand Down
1 change: 1 addition & 0 deletions ports/libbson/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libbson",
"version": "1.25.1",
"port-version": 1,
"description": "libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.",
"homepage": "https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4090,7 +4090,7 @@
},
"libbson": {
"baseline": "1.25.1",
"port-version": 0
"port-version": 1
},
"libcaer": {
"baseline": "3.3.15",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libbson.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4e2365e51faaf5bea56b3466e7c94342cb43a9e4",
"version": "1.25.1",
"port-version": 1
},
{
"git-tree": "9cc5cb4ec6ee37e4a07e65f6e8aee04f83f535ec",
"version": "1.25.1",
Expand Down

0 comments on commit c94ee7f

Please sign in to comment.