Summary: | dev-libs/beecrypt-4.2.1-r4 with ICU >=59: String.cxx:59:33: error: invalid conversion from ‘short unsigned int*’ to ‘UChar* {aka char16_t*}’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arthur, dharding, jarausch, jazzvoid, rnddim, ulm, wizardedit |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618636 | ||
Attachments: |
emerge-info.txt
config.log.tbz2 dev-libs:beecrypt-4.2.1-r4:20170516-122313.log emerge-history.txt environment etc.portage.tbz2 temp.tbz2 patch: convert all jchar* to UChar* |
Description
Toralf Förster
![]() Created attachment 472840 [details]
emerge-info.txt
Created attachment 472842 [details]
config.log.tbz2
Created attachment 472844 [details]
dev-libs:beecrypt-4.2.1-r4:20170516-122313.log
Created attachment 472846 [details]
emerge-history.txt
Created attachment 472848 [details]
environment
Created attachment 472850 [details]
etc.portage.tbz2
Created attachment 472852 [details]
temp.tbz2
*** Bug 618852 has been marked as a duplicate of this bug. *** *** Bug 618946 has been marked as a duplicate of this bug. *** Created attachment 493998 [details, diff]
patch: convert all jchar* to UChar*
beecrypt's c++ api uses jchar arrays for strings, while ICU 59 expects char16_t type
In practice these both seem to be defined as short int on amd64 so it might be okay to just reinterpret_cast them? There's probably no easy way out on a platform where char16_t won't match jchar
With this patch, beecrypt builds and passes all tests for me
Anotehr confirmation that the patch works for me. Works here as well. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e91c58f05f9ebb9cf9d15a1132356051b928fe22 commit e91c58f05f9ebb9cf9d15a1132356051b928fe22 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2017-12-01 20:23:04 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2017-12-01 20:23:04 +0000 dev-libs/beecrypt: Fix compilation with >=dev-libs/icu-59. Closes: https://bugs.gentoo.org/618676 Package-Manager: Portage-2.3.16, Repoman-2.3.6 dev-libs/beecrypt/Manifest | 2 +- dev-libs/beecrypt/beecrypt-4.2.1-r4.ebuild | 1 + .../beecrypt/files/beecrypt-4.2.1-cast-uchar.patch | 214 +++++++++++++++++++++ 3 files changed, 216 insertions(+), 1 deletion(-) *** Bug 640246 has been marked as a duplicate of this bug. *** |