Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644806 - dev-python/pyicu-1.9.5 - common.cpp: In function ‘PyObject* PyUnicode_FromUnicodeString(const UChar*, int)’: /usr/include/python3.5m/unicodeobject.h:468:35: error: invalid conversion from ‘Py_UCS2* {aka short unsigned int*}’ to ‘UChar* {aka char16_t*}’ [-
Summary: dev-python/pyicu-1.9.5 - common.cpp: In function ‘PyObject* PyUnicode_FromUni...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-16 19:32 UTC by Daniel M. Weeks
Modified: 2018-01-17 10:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2018-01-16 19:32:24 UTC
Updating system profile to 17.0 and pyicu failed to rebuild:

In file included from /usr/include/python3.5m/Python.h:77:0,
                 from common.h:33,
                 from common.cpp:24:
common.cpp: In function ‘PyObject* PyUnicode_FromUnicodeString(const UChar*, int)’:
/usr/include/python3.5m/unicodeobject.h:468:35: error: invalid conversion from ‘Py_UCS2* {aka short unsigned int*}’ to ‘UChar* {aka char16_t*}’ [-fpermissive]
 #define PyUnicode_2BYTE_DATA(op) ((Py_UCS2*)PyUnicode_DATA(op))
                                  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common.cpp:226:22: note: in expansion of macro ‘PyUnicode_2BYTE_DATA’
             u_memcpy(PyUnicode_2BYTE_DATA(result), utf16, len16);
                      ^~~~~~~~~~~~~~~~~~~~

An attempt at rebuilding after all other packages were rebuilt also failed.

Reproducible: Always
Comment 1 Daniel M. Weeks 2018-01-16 19:42:30 UTC
I suspect this may be a result of building against dev-libs/icu-60.2. The problem is not reproducible with a combination of icu 60.2 and pyicu 1.9.7.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-01-16 19:49:58 UTC
Please attach the *entire* build log to this bug report.
Comment 3 Daniel M. Weeks 2018-01-16 19:56:05 UTC
(In reply to Jeroen Roovers from comment #2)
> Please attach the *entire* build log to this bug report.

This isn't a bug in the code that needs to be resolved by Gentoo. Support for 59.1 was added upstream in 1.9.7. The package just needs DEPENDS fixed.

See: https://github.com/ovalhub/pyicu/blob/master/CHANGES
Comment 4 Larry the Git Cow gentoo-dev 2018-01-17 10:01:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ee51adbe1c7c3ae14cb85a331c747f2b85cee0

commit e4ee51adbe1c7c3ae14cb85a331c747f2b85cee0
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2018-01-17 10:00:42 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2018-01-17 10:01:33 +0000

    dev-python/pyicu-1.9.5: add upper limit on dev-libs/icu version
    
    Support for 59.1 was only added in 1.9.7, for 60.1 - in 1.9.8.
    
    Closes: https://bugs.gentoo.org/644806
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-python/pyicu/pyicu-1.9.5.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)