[MONGOCRYPT-330] pkg-config script has broken dependency Created: 10/Aug/21  Updated: 28/Oct/23  Resolved: 02/Sep/21

Status: Closed
Project: Libmongocrypt
Component/s: Build
Affects Version/s: 1.2.1
Fix Version/s: 1.2.2

Type: Bug Priority: Unknown
Reporter: Roberto Sanchez Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

As reported in this community forum post, the libmongocrypt pkg-config script has a broken dependency. Further investigation by wan.bachtiar revealed that this problem affects libmongocrypt 1.2.1 but does not exist for 1.0.4.

The broken dependency needs to be corrected, and the build updated to include a pkg-config invocation like this to ensure that scripts that are shipped function correctly;

$ pkg-config --print-errors --exists libmongocrypt || echo $?
Package libbson-static-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libbson-static-1.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libbson-static-1.0', required by 'libmongocrypt', not found
1



 Comments   
Comment by Githook User [ 03/Sep/21 ]

Author:

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

Message: MONGOCRYPT-330 reduce overlinking for pkg-config script (#191)
Branch: master
https://github.com/mongodb/libmongocrypt/commit/b9111845451fc7ee292cadf696010f6daded1713

Comment by Githook User [ 02/Sep/21 ]

Author:

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

Message: MONGOCRYPT-330 fix and validate pkg-config scripts
Branch: master
https://github.com/mongodb/libmongocrypt/commit/6af46e4f9b43031c47290708f9e0e664e2f9c605

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