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

[Boost] fix not header only libs #17372

Merged

Conversation

autoantwort
Copy link
Contributor

Describe the pull request

@PhoebeHui PhoebeHui added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Apr 20, 2021
@PhoebeHui
Copy link
Contributor

@autoantwort, thanks for your PR!

Boost-json failed with following failures in CI pipeline, could you please take a look?

config.jam: No such file or directory
D:/installed/x64-windows/tools/boost-build/src/kernel\modules.jam:314: in modules.import
IMPORT error: rule "requires" unknown in module "config".
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:1121: in import
..\Jamfile:10: in load-aux
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:378: in load-jamfile
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:64: in load
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:109: in load-parent
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:513: in initialize
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:348: in load-jamfile
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:64: in load
D:/installed/x64-windows/tools/boost-build/src/build\project.jam:142: in project.find
D:/installed/x64-windows/tools/boost-build/src\build-system.jam:618: in load
D:/installed/x64-windows/tools/boost-build/src/kernel\modules.jam:295: in import
D:/installed/x64-windows/tools/boost-build/src/kernel/bootstrap.jam:139: in boost-build
D:/installed/x64-windows/tools/boost-build/boost-build.jam:8: in module scope

@autoantwort
Copy link
Contributor Author

Boost-json failed with following failures in CI pipeline, could you please take a look?

You can fix this issue with the following post-source script:

file(READ "${SOURCE_PATH}/build/Jamfile" _contents)
string(REPLACE "import ../../config/checks/config" "import config/checks/config" _contents "${_contents}")
file(WRITE "${SOURCE_PATH}/build/Jamfile" "${_contents}")

file(READ "${SOURCE_PATH}/Jamfile" _contents)
string(REPLACE "import ../config/checks/config" "import build/config/checks/config" _contents "${_contents}")
file(WRITE "${SOURCE_PATH}/Jamfile" "${_contents}")

file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/build/config")

But then you get other errors and I have no clue how to fix them

@autoantwort autoantwort marked this pull request as draft April 23, 2021 12:30
@autoantwort
Copy link
Contributor Author

I have asked at the boost json lib, maybe they can and are willing to help: boostorg/json#556

@autoantwort autoantwort marked this pull request as ready for review May 2, 2021 22:12
@autoantwort
Copy link
Contributor Author

@PhoebeHui you can review now :)

Copy link
Contributor

@PhoebeHui PhoebeHui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @ras0219-msft, could you please help further review?

cc @yurybura

ports/boost-asio/portfile.cmake Outdated Show resolved Hide resolved
@PhoebeHui PhoebeHui added the info:reviewed Pull Request changes follow basic guidelines label May 7, 2021
@PhoebeHui
Copy link
Contributor

@dan-shaw, could you help review and merge this PR?

Copy link
Contributor

@yurybura yurybura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert unrelated changes.

ports/boost-asio/portfile.cmake Outdated Show resolved Hide resolved
scripts/boost/generate-ports.ps1 Show resolved Hide resolved
scripts/boost/post-source-stubs/json.cmake Outdated Show resolved Hide resolved
scripts/boost/post-source-stubs/json.cmake Outdated Show resolved Hide resolved
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor stuff.

scripts/boost/generate-ports.ps1 Outdated Show resolved Hide resolved
scripts/boost/post-source-stubs/json.cmake Outdated Show resolved Hide resolved
scripts/boost/post-source-stubs/json.cmake Outdated Show resolved Hide resolved
versions/b-/boost.json Outdated Show resolved Hide resolved
Co-authored-by: Robert Schumacher <[email protected]>
ports/boost/portfile.cmake Outdated Show resolved Hide resolved
@strega-nil-ms
Copy link
Contributor

Thanks for your work @autoantwort :D

@strega-nil-ms strega-nil-ms merged commit 7bc5b8c into microsoft:master May 28, 2021
@autoantwort autoantwort deleted the boost-fix-not-header-only-libs branch September 1, 2021 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[boost-json] Fails to build static library
6 participants