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

net-p2p/mldonkey: Patch for C++17 support. #21663

Closed
wants to merge 1 commit into from

Conversation

chusopr
Copy link
Contributor

@chusopr chusopr commented Jul 15, 2021

This fixes the byte type clash between Crypto++ global definition and C++17 one in #790134 by moving their definition to the CryptoPP namespace.

Since their definition is just an alias for unsigned char, @SoapGentoo recommended in #gentoo-dev-help replacing their use of byte with unsigned char. However, that would require a patch modifying ~500 lines of code while this other solution modifies less than 10 lines.

Also, more importantly, moving Crypto++ definition of byte to CryptoPP namespace was also the solution adopted upstream: weidai11/cryptopp@00f9818
So I decided to follow upstream and this patch just adapts upstream Crypto++'s patch to MLDonkey's bundled version of Crypto++.

Crypto++ also has a wiki page where they discussed this same issue: https://www.cryptopp.com/wiki/Std::byte

I also submitted this same patch to MLDonkey: ygrek/mldonkey#66
But since it seems it's taking the maintainer some time to review it, I'm just already adding it to Portage to fix the compilation error with sys-devel/gcc:11 ASAP.

I've been using net-p2p/mldonkey with this patch for a week with no apparent issues.

Signed-off-by: Jesus P Rey <gentoo@chuso.net>
Closes: https://bugs.gentoo.org/790134
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @chusopr
Areas affected: ebuilds
Packages affected: net-p2p/mldonkey

net-p2p/mldonkey: @chusopr, @gentoo/proxy-maint

Linked bugs

Bugs linked: 790134


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else) assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Jul 15, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-07-15 19:41 UTC
Newest commit scanned: 1278f47
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/e304f35e5d/output.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else)
Projects
None yet
3 participants