[CXX-1747] Debian Build for MNMLSTC does not bundle the headers correctly Created: 21/Mar/19  Updated: 28/Oct/23  Resolved: 10/Nov/20

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

Type: Bug Priority: Minor - P4
Reporter: Andrew Lipscomb Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian/Ubuntu



 Description   

Pulling the debian builds and modifying it to instead of Boost use the MNMLSTC headers does not result in a package being built with the bundled headers. 

The issue is in the use of 

cd build && make -j1 install DESTDIR=/wheremysourcepackageis/debian/tmp AM_UPDATE_INFO_DIR=no

At the dh_auto_install part - for some reason the EP_mnmlstc_core target still operates with the original install directory running into /usr/include/bsoncxx. You can see the 
fix-includes step operating on the locally installed files and not the ones under debian/tmp
 
My reading hasn't given me anything useful on how to translate the DESTDIR across to the ExternalProject part. 
 
This might be by design, but it would be good to have this as part of the install if using MNMLSTC - we have a Boost conflict in our case and would like to use something self contained for Mongo. 
 



 Comments   
Comment by Roberto Sanchez [ 10/Nov/20 ]

altinners, I have just merged the change that implements the ability to build the Debian package with MNMLSTC. It will be released with the next C++ driver release.

Comment by Githook User [ 10/Nov/20 ]

Author:

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

Message: (Debian packaging) CXX-1747 allow building Debian packages with MNMLSTC
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/716240487475b9a104de4eea5f352ba4b255b0da

Comment by Andrew Lipscomb [ 21/Mar/19 ]

If anyone else googles this looking for a hack to make it install correctly , add this to your bsoncxx cmake 

install(DIRECTORY    
/usr/include/bsoncxx/v_noabi/bsoncxx/third_party/mnmlstc    
DESTINATION ${CMAKE_INSTALL_PREFIX}/${BSONCXX_HEADER_INSTALL_DIR}/bsoncxx/third_party    
COMPONENT dev)

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