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

consider building libboost_stacktrace_backtrace #254

Open
SwooshyCueb opened this issue Jul 24, 2024 · 1 comment
Open

consider building libboost_stacktrace_backtrace #254

SwooshyCueb opened this issue Jul 24, 2024 · 1 comment
Assignees

Comments

@SwooshyCueb
Copy link
Member

Related: irods/irods#6146

Let's consider including libboost_stacktrace_backtrace in our boost packages.

For debian and ubuntu, the needed header and static library are included in the gcc dev package we (I think) already pull in with clang. We will have to tell boost's buildsystem where the header is, and maybe also where the library is, though.
For EL, we will have to build libbacktrace ourselves.

Given that we do not currently have a mechanism for per-platform build steps (nor do I wish to implement such functionality), I propose that, as part of boost's build process, we build libbacktrace ourselves, and bundle the header(s) and static library in our boost package. The static library (and probably the header(s) as well) is(are) only required if Boost.Stacktrace is used as a header-only library, which we currently do, but I think we should provide the capability to use Boost.Stacktrace as either a compiled library or a header-only library. Bundling our own libbacktrace will also allow us to use BOOST_STACKTRACE_BACKTRACE_FORCE_STATIC, should we deem it appropriate.

@SwooshyCueb SwooshyCueb self-assigned this Jul 24, 2024
@SwooshyCueb
Copy link
Member Author

OTOH, switching to using compiled versions of Boost.Stacktrace may require bumping the consortium number of the boost package, something I don't really like doing. This is because irods will link to the new library, and a dependency on a new boost package will ensure that the package dependency is not met by a package that does not contain the library. (This also applies to #253.) Therefore, it may make more sense to instead create a new externals package for libbacktrace.

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

No branches or pull requests

1 participant