[SERVER-34484] IDL targets don't work right on external build paths. Created: 13/Apr/18  Updated: 29/Oct/23  Resolved: 22/Oct/20

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.2

Type: Bug Priority: Major - P3
Reporter: ADAM Martin (Inactive) Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
duplicates SERVER-51119 Out-of-source builds fail, "mongo/src... Closed
Gantt Dependency
has to be done before SERVER-51119 Out-of-source builds fail, "mongo/src... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Steps To Reproduce:

Build from a directory called "mongo" and use an external build artifacts path.

Sprint: Platforms 2018-08-27, Platforms 2018-09-10, Dev Platform 2020-11-02
Participants:

 Description   

If the directory that the source code lives in is called `mongo` for its last pathname element, then IDL and SCons both get confused and don't do the right thing.

IDL doesn't emit the right pathnames for `#include` statements, but this is an easy fix.

SCons doesn't seem to understand that it needs to build some IDL headers, however.

This does not seem to be an issue if the source code directory is named something OTHER than `mongo` (or at least doesn't contain the string "mongo" within the name)



 Comments   
Comment by Githook User [ 22/Oct/20 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-34484 added out of tree support for idl generation.

(cherry picked from commit f7308b157e496f24c017c0face999a66390a65cc)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a6b9b75aed2649cfed320d6c593d1d3228f1293a

Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-34484 added out of tree support for idl generation.
Branch: master
https://github.com/mongodb/mongo/commit/f7308b157e496f24c017c0face999a66390a65cc

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