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

Fix qbittorrent crash on musl #39154

Merged
merged 3 commits into from Sep 11, 2022
Merged

Fix qbittorrent crash on musl #39154

merged 3 commits into from Sep 11, 2022

Conversation

ericonr
Copy link
Member

@ericonr ericonr commented Sep 7, 2022

  • boost: fix segfault in asio+align module.
  • libtorrent-rasterbar: rebuild to fix segfault.

Testing the changes

  • I tested the changes in this PR: YES

@ericonr
Copy link
Member Author

ericonr commented Sep 7, 2022

I opened a PR because I'm not sure if there's any other package using asio that needs to be rebuilt.

#include <unistd.h>
#endif

-#if defined(__APPLE__) || defined(__APPLE_CC__) || defined(macintosh)
Copy link
Member

Choose a reason for hiding this comment

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

Please don't patch this, add -D_POSIX_C_SOURCE=201112L instead, or alternately, patch only last 2 legs.
The diff looks like you're removing all legs but SunOS.

Copy link
Member

Choose a reason for hiding this comment

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

Or #error in the last leg

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't want to fix this with a define in CXXFLAGS because it requires fixing in all packages that use the library, instead of a single fix in the library.

If I manage to rework the patch to look like the posix version is the one being kept or add a comment making that clear and that it's because, as a distro, we know where these headers are being used, would it be okay for you?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess reworking the last fallback to just include the posix version would be equivalent, and I'd be okay with it.

Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to #include <features.h> in boost/config.hpp. Just in case other headers (now or later) decide to use feature test macros.

sgn and others added 3 commits September 11, 2022 23:28
Reported-by: Érico Nogueira <erico.erc@gmail.com>
Since asio is a header-only library, we need to rebuild its dependents.
@sgn sgn merged commit e9061f9 into void-linux:master Sep 11, 2022
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.

None yet

2 participants