Skip to content

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