Skip to content
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

[osg] Fix conflict when asio and boost-asio are installed. #11715

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Jun 2, 2020

When asio and boost-asio are installed, osg's build scripts would choose the standalone version of asio, but uses features specific to boost-asio. This patch forces the port to always use boost-asio, as the original CONTROL file indicated was the intent.

Also fixed transitive dependencies not being declared that just happened to get installed because boost-asio is a dependency.

Replaces #11645 without introducing potential undefined behavior by switching from boost::bind to std::bind (because std::bind does not transfer asio associated_executor and associated_allocator in asio's completion token protocol).

Co-authored by @JackBoosY

Related: #11502 #921.

Fix #11686

When asio and boost-asio are installed, osg's build scripts would choose the standalone version of asio, but uses features specific to boost-asio. This patch forces the port to always use boost-asio, as the original CONTROL file indicated was the intent.

Also fixed transitive dependencies not being declared that just happened to get installed because boost-asio is a dependency.
@BillyONeal BillyONeal added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. labels Jun 2, 2020
@BillyONeal BillyONeal requested a review from JackBoosY June 2, 2020 06:54
@BillyONeal BillyONeal merged commit ad7a227 into microsoft:master Jun 2, 2020
@BillyONeal BillyONeal deleted the osg branch June 2, 2020 22:04
@remoe
Copy link

remoe commented Nov 24, 2020

Base OSG does not need "boost". Is it possible to use "boost" only when it is really needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[osg] build failure
3 participants