[CXX-828] Requires.private field occurs twice in.... Created: 22/Jan/16  Updated: 28/Jan/16  Resolved: 22/Jan/16

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

Type: Bug Priority: Major - P3
Reporter: Pavel Odintsov Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

Hello, folks!

I'm using pkg-config from C++ 11 driver and got this errors from cmake and pkg-config tool:
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'
Requires.private field occurs twice in '/opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc'

So you definitely has an issue here:
cat /opt/fastnetmon/libraries/mongo_cxx_3_0_0_rc0/lib/pkgconfig/libmongocxx.pc
Requires.private: libbson-1.0
Requires.private: libmongoc-1.0

But pkg-config documentation (http://people.freedesktop.org/~dbn/pkg-config-guide.html) speaking about another approach for multiple required modules:
Requires.private: libbson-1.0, libmongoc-1.0

Could you fix this?



 Comments   
Comment by Pavel Odintsov [ 22/Jan/16 ]

Thanks

Comment by Githook User [ 22/Jan/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-828 Clean up handling of versions in pc files
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/399bd0eba0345f4b0959faf19094c90b35b759fc

Comment by Andrew Morrow (Inactive) [ 22/Jan/16 ]

Great! Yeah we are trying to get RC1 out this weekend so I'm fixing bugs as fast as they come in, or trying to. Thanks a ton for finding this and reporting it.

Comment by Pavel Odintsov [ 22/Jan/16 ]

Wow! Lightning fast

I pulled and compiled your branch.

Everything working well: https://gist.github.com/pavel-odintsov/503dc8437f1190aa9c53 Thanks a lot!

Comment by Andrew Morrow (Inactive) [ 22/Jan/16 ]

pavel.odintsov - Could you please see if the above pull request (you can find the branch here: https://github.com/acmorrow/mongo-cxx-driver/tree/CXX-828) works for you? It includes some other small improvements to how we manage version numbers.

Comment by Andrew Morrow (Inactive) [ 22/Jan/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/451

Comment by Andrew Morrow (Inactive) [ 22/Jan/16 ]

Nice catch. We will get this fixed ASAP.

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