New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix building with boost 1.75 #8606
Conversation
Thanks for the PR! IIUC we were previously getting away with this via this in CMake: rstudio/src/cpp/CMakeLists.txt Lines 36 to 38 in df65430
Is that effectively removed from Boost 1.75? If so, we might want to remove that line as well and ensure we're properly using Boost's placeholders in a forward-compatible way. |
Thanks for the hint (I didn't know the reason boost for the behavior change). Presumably including placeholder is not required and using the macro is no longer possible according to this commit: |
That's a hella lot of files I touched now. Did not build it, is that what you wanted @kevinushey ? |
Oof, thanks! I didn't expect it would've required changes in so many source files, but I guess that ultimately makes sense. We're currently in the process of wrapping up a 1.4 release so I don't think we can merge this immediately, but will plan to do so as part of the next 1.4 patch release (which should be released relatively soon after the initial 1.4 release). |
Happy to help. Just to clarify, my first commit actually fixes a build error I was seeing, the second commit merely fixes warning messages. Good luck with the release and stay healthy |
@JanMarvin I pulled your branch and built it locally w/o issue. I'm going to rebase your PR onto our current patch release branch, |
@JanMarvin Thanks very much for the contribution! |
Did you build this against Boost 1.75? I've incorporated the patch in Fedora rawhide, which contains Boost 1.75 now, and compilation fails. I think we still need |
yes, I build current master with boost 1.75 |
I see the following applying this patch to current release (1.4.1103):
Any idea why? |
maybe someone introduced a new boost function not covered by this pull request? But I did build yesterdays master, which contains this patch. |
Nope, that was there in your PR: https://github.com/JanMarvin/rstudio/blob/a73589c69c62b55935c2b0936bbe7ffe52fe0a49/src/cpp/session/SessionConsoleProcessSocketTests.cpp#L249. For some reason, |
If you could share a link to the PKGBUILD or how it's called in Fedora, I could have a look. Right now I'd say that applying the pull request somehow did not work as expected. My build files are here if you want to have a look. |
Using |
Intent
This pull requests solves building rstudio with boost 1.75 which recently dropped in Arch Linux.
Approach
The required header files were included as well as the required namespace.
QA Notes
This builds with my rstudio PKGBUILD (this PKGBUILD includes another boost patch, though I am not sure what that was fixing [lost track of rstudios development a while ago]).
I expect this to be backward compatible if the included header files exist in previous boost releases, but I have not tested this. I have also not tested this with the included rstudio boost.
I have signed a contributor agreement a long time ago.