Skip to content

Upgrade to Asio 1.29.0 #314

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Upgrade to Asio 1.29.0 #314

wants to merge 1 commit into from

Conversation

leg0
Copy link

@leg0 leg0 commented Mar 4, 2024

Upgrading Asio to 1.29.0, the latest as of now.

Changes in the dependency can be reproduced using the following script:

# TODO: set your path to rpclib, or start from the root of rpclib repo
rpclib=$PWD

git clone https://github.com/chriskohlhoff/asio.git
cd asio/asio
git pull origin --tags
git checkout asio-1-29-0
rm -rf $rpclib/dependencies/include/asio*
rm $rpclib/dependencies/src/asio*.cpp
cp -r include/asio $rpclib/dependencies/include
cp src/asio*.cpp $rpclib/dependencies/src
cd $rpclib/dependencies/include

for f in $(find . -name '*.[ih]pp' -type f); do
  sed -i.bak 's/namespace asio /namespace clmdep_asio /' $f
  sed -i.bak 's/asio::/clmdep_asio::/g' $f
  rm $f.bak
done

Changes in rpclib itself are required due to changes in the interface in Asio 1.10 -> 1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant