Open JedMeister opened 7 months ago
@JedMeister after reading through the issues and finding this I've got it building right now. Many thanks! Any way I can get a quick explanation on what exactly "--linker=gold" does? I tried googling but came up short.
@scottmonster Glad to hear my post was useful! :grin:
Any way I can get a quick explanation on what exactly "--linker=gold" does?
Here is some reading re Gold linker:
It looks like mongo has moved to (python) poetry packaging. So the notes in this project readme referring to installing deps via pip needs an update.
It looks like the upstream build docs have been updated to reflect this. But I didn't actually think to check there first so the below is me just "following my nose". It may not be best the approach but it worked for me (on Debian 12/Bookworm). (Note at this point it has only been building for an hour, so perhaps there are still issues?)
Despite the mongo build docs, poetry themselves recommend NOT installing poetry in the build venv. Installing via
pipx
is probably best in this case (at least IMO), so my initial (Debian 12/Bookworm) dependency list is:In my (somewhat limited) experience with poetry, I suspect that it would likely work with any recent version. Regardless, to minimise unexpected issues, I grepped the
poetry.lock
file in themongo
dir for the specific version upstream are using (I note that the version is explicitly mentioned in the build readme linked above - but IMO better to consult the actual source):Install python build deps via poetry:
Then enter poetry shell (activate the poetry venv that was created for the deps):
Apply relevant patch and run build script
I was going to open a PR to apply the changes myself, but I am only using Debian and aren't sure that my notes here are the best way. If you'd like me to suggest some specific changes, please give me a bit of guidance and I'll try to circle back some time soon.