Created attachment 893464 [details] /var/log/portage/dev-db:mongodb-5.0.26:20240520-042754.log src/mongo/scripting/engine.cpp: In member function 'virtual bool mongo::Scope::execFile(const std::string&, bool, bool, int)': src/mongo/scripting/engine.cpp:170:28: error: 'directory_iterator' is not a member of 'boost::filesystem'; did you mean 'directory_entr y'? 170 | boost::filesystem::directory_iterator end; | ^~~~~~~~~~~~~~~~~~ | directory_entry src/mongo/scripting/engine.cpp:173:33: error: 'directory_iterator' is not a member of 'boost::filesystem'; did you mean 'directory_entr y'? 173 | for (boost::filesystem::directory_iterator it(p); it != end; it++) { | ^~~~~~~~~~~~~~~~~~ | directory_entry
https://github.com/mongodb/mongo/commit/f8e4be7f6da71f978b2aa9991febb4c7ad89c903#diff-010644a9158d28e5745762753c7ce454444c9fb9ab4c684e9f2fdcff50c6f539 may fix it but will need cherry-picking
*** Bug 932314 has been marked as a duplicate of this bug. ***
Created attachment 893684 [details, diff] boost-1.85 patch
*** Bug 932800 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f2c752ff3afb0952991e09cb7fb4947b57df06f commit 4f2c752ff3afb0952991e09cb7fb4947b57df06f Author: Sam James <sam@gentoo.org> AuthorDate: 2024-05-28 01:38:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-28 01:38:59 +0000 dev-db/mongodb: fix build w/ boost-1.85 Closes: https://bugs.gentoo.org/932251 Thanks-to: Jura <me@slie.ru> Signed-off-by: Sam James <sam@gentoo.org> .../mongodb/files/mongodb-5.0.26-boost-1.85.patch | 139 +++++++++++++++++++++ dev-db/mongodb/mongodb-5.0.26.ebuild | 1 + 2 files changed, 140 insertions(+)
Does this also need to be applied to mongodb-4.4.29? Some systems can't upgrade to 5.0 because that requires a newer CPU (it's incompatible with amd64 chips without avx instruction support (e.g., Haswell Celerons or pre-Haswell chips) An alternative would be to update that ebuild to explicitly require an older boost version.
Created attachment 895145 [details, diff] mongodb-4.4.29 boost-1.85 patch This is the patch for mongodb-4.4.29
This commits change 1580 files. Is it possible to get à patch for 7.0.12 from it and not for so outdated versions?
For information, I proposed an rebuild for 7.0.12 which also compiles with python 3.12 (see https://bugs.gentoo.org/882515). Unfortunately the patch proposed here does not apply.
So I took the patch found here and I adapted it to mongodb 7.0.12 (see https://bugs.gentoo.org/882515) Can the mongodb ever be bumped to a new version ?
AFAIK bumping mongodb is a massive pain and I won't be doing it as a drive-by, I leave it to its actual maintainer. What I can do as a drive-by is fix older mongodb for new Boost, so I'll look now.
(Not sure why you're asking about mongodb 7 here though, as the only missing fix is for *older* mongodb here, not mongodb 5 which is already patched, and if you're stuck on mongodb 4, presumably you can't even use 7 if it were in tree.)
I am not stuck with mongodb 4, my laptop is recent enough. Maybe I should have put my comments in the other bug report asking for the bump (#882515). The request was for version 6.0.3 when the bug was reported. Meanwhile, the latest version is 7.0.12. Using patches from archlinux user repository, it was quite easy to make an ebuild for this version. Making changes for boost 1.85.0 was a bit trickier, but I managed to do it using the patch found in this bug report. A side benefit would be that it can then be build with python 3.12 which is now the default version in Gentoo.
Yes, best to keep commentary on the bump over there. Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ba9ce43db49ab50b10e0d1b1d9b2d83f7cec90e commit 3ba9ce43db49ab50b10e0d1b1d9b2d83f7cec90e Author: Sam James <sam@gentoo.org> AuthorDate: 2024-07-15 04:09:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-07-15 04:09:21 +0000 dev-db/mongodb: backport boost-1.85 fix to 4.4.x Thanks to Gary. Closes: https://bugs.gentoo.org/932251 Signed-off-by: Sam James <sam@gentoo.org> .../mongodb/files/mongodb-4.4.29-boost-1.85.patch | 146 +++++++++++++++++++++ dev-db/mongodb/mongodb-4.4.29.ebuild | 1 + 2 files changed, 147 insertions(+)