[CXX-1658] Generate C Driver version number when installing Created: 28/Sep/18  Updated: 28/Oct/23  Resolved: 30/Sep/18

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: 3.4.0

Type: New Feature Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CXX-1657 Require libbson and libmongoc 1.13.0 Closed

 Description   

In Evergreen we clone libmongoc master from git and install it before building the C++ driver. Starting with CDRIVER-2831 we need to call two libmongoc scripts before building libmongoc with cmake:

 
python build/calc_release_version.py > VERSION_CURRENT
python build/calc_release_version.py -p > VERSION_RELEASED

 

Otherwise, cmake sets libmongoc's version number to 0.0.0, which doesn't meet the C++ Driver's minimum required libmongoc version.



 Comments   
Comment by A. Jesse Jiryu Davis [ 30/Sep/18 ]

We needed no Evergreen changes, but .travis.yml required an update.

Comment by Githook User [ 29/Sep/18 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CXX-1658 Make mongoc version files in Travis test
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/8396159daf2dade00b9324f8ffae48ce7c59f461

Comment by Githook User [ 29/Sep/18 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CXX-1658 Make mongoc version files in Travis test
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/6d64e51f58a2289ec0f125a376fe2cc3a2ec9441

Comment by A. Jesse Jiryu Davis [ 28/Sep/18 ]

Oh, this might require no work from us after all. The C++ Driver's install.sh gets tarballs generated by libmongoc's Evergreen task, it doesn't check out from git.

Generated at Wed Feb 07 22:03:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.