[MONGOCRYPT-178] Consolidate download/build of C driver into one place Created: 16/Sep/19  Updated: 28/Oct/23  Resolved: 23/Sep/19

Status: Closed
Project: Libmongocrypt
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.0.0-beta5

Type: Task Priority: Major - P3
Reporter: Roberto Sanchez Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to NODE-2159 Improve `./etc/build-static.sh` to wo... Closed

 Description   

After the changes for CDRIVER-3047 were pushed and subsequently as part of resolving MONGOCRYPT-87, it became evident that there are at least two places where the C driver is downloaded/built within libmongocrypt (once for the standard libmongocrypt build and again for the Node bindings). NODE-2159 was filed as a result. However, a more robust and comprehensive solution is needed.

Specifically, the download and build of the C driver should be controlled by a single script which downloads the C driver code based on a Git tag or commit hash, builds it with the appropriate options, and installs it in the build environment. This script can be invoked from any Evergreen task that requires the C driver as part of its sequence.



 Comments   
Comment by Githook User [ 23/Sep/19 ]

Author:

{'name': 'Kevin Albertson', 'username': 'kevinAlbs', 'email': 'kevin.albertson@mongodb.com'}

Message: MONGOCRYPT-178 add missing fetch source
Branch: master
https://github.com/mongodb/libmongocrypt/commit/436f8c08d3cf864dce692ecb10072e8515a9dc72

Comment by Githook User [ 23/Sep/19 ]

Author:

{'username': 'rcsanchez97', 'email': 'roberto@connexer.com', 'name': 'Roberto C. Sánchez'}

Message: MONGOCRYPT-178 NODE-2159 refactor libbson build for better commonality, 2
Branch: master
https://github.com/mongodb/libmongocrypt/commit/7e5c5a3117d00327fa6771eb6261d7892406fcf6

Comment by Githook User [ 23/Sep/19 ]

Author:

{'username': 'rcsanchez97', 'email': 'roberto@connexer.com', 'name': 'Roberto C. Sánchez'}

Message: MONGOCRYPT-178 NODE-2159 refactor libbson build for better commonality
Branch: master
https://github.com/mongodb/libmongocrypt/commit/e5e793ea49a0b922bead575caf3065b79888290b

Generated at Thu Feb 08 09:08:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.