Skip to content

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

Merged
BillyONeal merged 1 commit intomicrosoft:masterfrom
BillyONeal:osg
Jun 2, 2020
Merged

[osg] Fix conflict when asio and boost-asio are installed.#11715
BillyONeal merged 1 commit intomicrosoft:masterfrom
BillyONeal:osg

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 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[osg] build failure

3 participants