-
Notifications
You must be signed in to change notification settings - Fork 24
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
Make rprotobuf
compatible with protobuf
>= 22.x
#93
Conversation
Thanks for this! It looks pretty promising and we would get by without even a configure check. I presume you have all the relevant piece (incl Abseil) on Arch? |
I think so. Looking at the Protocol Buffers C++ installation instruction,
On Arch, Question: What about Windows users? Do we need some extra effort for them? I'll soon revise my changes in the code to reduce/avoid redundancy. All suggestions are appreciated! |
They usually get the package as a binary from CRAN, and CRAN relies on the ProtoBuf library it has prepared. Those tend to 'stick' for a while. With your |
Ok, ball in my court, with my head hanging slightly in shame for having sat on this for so long. I will add a yaml file to run an action with this utilising Alpine 3.19 while Debian / Ubuntu take their time to update to newer Protocol Buffer library versions. |
Thank you both -- the @TeoGiane for the rather nice and clean PR, and to @bastistician for the wake-up call and demo of how to actually test this. CI has been added so I merged this now. |
I've updated protobuf in development version of Rtools and rprotobuf passes its checks. Pending further testing, it should be available in the next release of Rtools. Ideally, anyone wanting a major update (like in this case) or addition of a library would first contribute such change upstream to MXE and then ping the Rtools maintainer via R bugzilla to include it in Rtools. |
This should close #92
Still a WIP.
I tried to manage both cases introducing a preprocessor directive checking the version of
protobuf
. I tried to preserve as much as possible the existing code. Maybe we can improvesrc/RSourceTree.h
/src/RSourceTree.cpp
, since a lot of code is re-used.On my machine (Arch Linux,
gcc
13.1.1,protobuf
23.4-1) now the compilation is successfull. I have also tested compilation on Ubuntu 20.04 withprotobuf
3.14.0, which relies on the old API.