Bug 1555231
Summary: | monotone-1.1-25.fc29 FTBFS: src/pcrewrap.cc:107:64: error: invalid const_cast from type 'const real_pcre*' to type 'pcre_t*' | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Petr Pisar <ppisar> | ||||
Component: | monotone | Assignee: | Thomas Moschny <thomas.moschny> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | thomas.moschny | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | https://apps.fedoraproject.org/koschei/package/monotone | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-05-23 06:09:40 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Petr Pisar
2018-03-14 08:54:45 UTC
The issue that monotone uses PCRE's internal real_pcre type in src/pcrewrap.hh: // This is a sensible C++ wrapper interface around the bare C API exported // by pcre.h. Note that pcre.h is a very "noisy" header in terms of macro // definitions and so we don't actually expose it here. Unfortunately, this // means we have to hope this pair of forward declarations will not change... struct real_pcre; struct pcre_extra; and later then in src/pcrewrap.cc. PCRE 8.42 changed the real_pcre into real_pcre8_or_16 in 8.42 version. Application should use public pcre typedef instead, but monotone decided not to use it because it wanted pcre for C++ namespace. The "hope this pair of forward declarations will not change" worry was fulfilled. It's necessary to adapt monotone to this change. Created attachment 1432584 [details]
Fix
Thanks for the patch. Successful build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1084062 |