Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633458 - app-i18n/mozc-2.20.2673.102 fails to build without dev-libs/jsoncpp or with old dev-libs/protobuf
Summary: app-i18n/mozc-2.20.2673.102 fails to build without dev-libs/jsoncpp or with o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-04 15:20 UTC by Meoberto Whagbossa
Modified: 2017-10-05 19:05 UTC (History)
1 user (show)

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


Attachments
app-i18n/mozc-2.20.2673.102 ebuild with dependency issues resolved (mozc-2.20.2673.102-r1.ebuild,8.59 KB, text/plain)
2017-10-04 15:20 UTC, Meoberto Whagbossa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Meoberto Whagbossa 2017-10-04 15:20:29 UTC
Created attachment 497600 [details]
app-i18n/mozc-2.20.2673.102 ebuild with dependency issues resolved

I tried to build the new mozc release with the following USE flags: fcitx4, gui, handwriting-tegaki

At first this seemed like an upstream issue, but rather it's one with the latest ebuild.

Firstly, 'jsoncpp' was listed by ninja as a missing package. Easily resolved by installing dev-libs/jsoncpp

After opening this issue on the upstream github repository (https://github.com/google/mozc/issues/423), while trying to resolve the issues with the syntax errors reported by ninja while building mozc, I upgraded dev-libs/protobuf from 2.6.1-r3 to  3.4.1. After that, mozc built completely fine, without any issues to be had.
I then downgraded protobuf to 3.0.2 to test what was the earliest version mozc was able to be built with. There were no issues with dev-libs/protobuf-3.0.2.

Attached is an ebuild that resolves these issues, adding dev-libs/jsoncpp as an RDEPEND and changing the protobuf RDEPEND from 'dev-libs/protobuf:=' to '>=dev-libs/protobuf-3.0.0'.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2017-10-05 00:12:51 UTC
I will fix build system to not require dev-libs/jsoncpp unconditionally.
dev-libs/jsoncpp is needed only for test suite.
Comment 2 Larry the Git Cow gentoo-dev 2017-10-05 18:57:32 UTC
The bug has been referenced in the following commit(s):

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

commit 1e174f0bb9d7ba4b6d5e8cd89676fdcdda88b276
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2017-10-05 18:32:55 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-10-05 18:57:12 +0000

    app-i18n/mozc: Depend on >=dev-libs/protobuf-3.0.0.
    
    Bug: https://bugs.gentoo.org/633458

 app-i18n/mozc/mozc-2.20.2673.102.ebuild | 2 +-
 app-i18n/mozc/mozc-9999.ebuild          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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

commit 2e39fb4302b42981b5eee984cdccc933a44692b1
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2017-10-05 18:24:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-10-05 18:57:10 +0000

    app-i18n/mozc: Disable check for jsoncpp.pc with USE="-test".
    
    Bug: https://bugs.gentoo.org/633458

 .../mozc-2.20.2673.102-system_libraries.patch      | 254 +++++++++++++++++----
 app-i18n/mozc/mozc-2.20.2673.102.ebuild            |   2 +
 app-i18n/mozc/mozc-9999.ebuild                     |   2 +
 3 files changed, 210 insertions(+), 48 deletions(-)}