[SERVER-69828] Ninja hardlink changes causing issues with old git checkouts Created: 20/Sep/22  Updated: 11/Jan/23  Resolved: 05/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.18, 5.0.14, 6.0.3

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

Issue Links:
Depends
Problem/Incident
is caused by SERVER-48203 Support --install-action for Ninja bu... Closed
Operating System: ALL
Participants:

 Description   

[1/1 (100%) 0.248s] Checked build.ninja
[1/4503 (  0%) 0.500s] Installed build/newninja/third_party/wiredtiger/wiredtiger_ext.h
FAILED: build/newninja/third_party/wiredtiger/wiredtiger_ext.h 
cp src/third_party/wiredtiger/src/include/wiredtiger_ext.h build/newninja/third_party/wiredtiger/wiredtiger_ext.h
cp: 'src/third_party/wiredtiger/src/include/wiredtiger_ext.h' and 'build/newninja/third_party/wiredtiger/wiredtiger_ext.h' are the same file
[41/4503 (  0%) 0.900s] Generated build/newninja/mongo/db/list_indexes_gen.cpp
ninja: build stopped: subcommand failed. 

Was able to fix by removing that file and the MPL/LICENSE/README files.

Issue happened by going from master -> 6.1

Running ninja version 1.11



 Comments   
Comment by Daniel Moody [ 22/Sep/22 ]

putting in blocked till the branches open up.

Comment by Daniel Moody [ 21/Sep/22 ]

I have backports completed and tested for 6.1, 6.0, 5.0 and 4.4 on my local system, just waiting for the branches to open up after the release.

Comment by Daniel Moody [ 20/Sep/22 ]

Well need to backport the "remove before build" changes from SERVER-48203 to older branches. The problem here is that the install file needs to be removed first, because cp thinks there is no reason to copy to the same file.

If a full backport is too hard, we could also probably get away with older branches using cp with --remove-destination on the older branches.

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