Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659328 - app-i18n/ibus-libpinyin fails during configure when 'boost' use flag is enabled.
Summary: app-i18n/ibus-libpinyin fails during configure when 'boost' use flag is enabled.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Graham
URL: https://github.com/libpinyin/ibus-lib...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-27 06:14 UTC by Graham
Modified: 2018-07-11 08:56 UTC (History)
2 users (show)

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


Attachments
git request-pull output (as github is currently down) (git-request-pull,1.01 KB, text/plain)
2018-06-29 07:04 UTC, Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham 2018-06-27 06:14:17 UTC
with USE="boost" emerge ibus-libpinyin 

fails during configure with 

> checking for Boost's header version... 
> configure: error: invalid value: boost_major_version=

This used to work, but latest versions of GCC behave differently, which has caused this issue in all versions of ibus-libpinyin. 

issue is that testconfig.c output now contains a bunch of junk (comment lines etc.) it never used to. The configure script uses this to pull out BOOST_LIB_VERSION , which is the bit that is broken, as it isn't finding the version number.
Comment 1 Graham 2018-06-27 06:18:36 UTC
The problem can be fixed by using the latest version of the boost.m4 macro, as this has additional steps which strip out the junk from testconfig.c output. 

I have submitted this fix to upstream project which has been merged 

https://github.com/libpinyin/ibus-libpinyin/pull/134
Comment 2 Graham 2018-06-29 07:04:08 UTC
Created attachment 537684 [details]
git request-pull output (as github is currently down)

This is possible alternative workflow - without dependancy on github (which is currently down)
Comment 3 Larry the Git Cow gentoo-dev 2018-07-11 08:56:25 UTC
The bug has been closed via the following commit(s):

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

commit c38eb5b5d3cd939c81a57cc606553cb5ec10bd3a
Author:     Graham Ramsey <graham.ramsey@gmail.com>
AuthorDate: 2018-06-27 08:50:08 +0000
Commit:     Tony Vroon <chainsaw@gentoo.org>
CommitDate: 2018-07-11 08:56:16 +0000

    app-i18n/ibus-libpinyin: Version bump 1.10.0 & fix boost configure
    
    1.9.3-r1 - This patches issue with latest GCC on configure with boost
    1.10.0 - This includes above patch, and also update to new major version
    
    I submitted the patch/fix upstream as pull request
    https://github.com/libpinyin/ibus-libpinyin/pull/134
    and it has been merged (basically updating the boost.m4 macro to latest)
    
    1.10.0 has additional changes as upstream has moved configuration settings
    to gsettings (now requires gnome2_utils eclass)
    
    Closes: https://bugs.gentoo.org/659328
    Package-Manager: Portage-2.3.40, Repoman-2.3.9
    Closes: https://github.com/gentoo/gentoo/pull/9050
    Closes: https://bugs.gentoo.org/659816

 app-i18n/ibus-libpinyin/Manifest                   |  2 +
 .../ibus-libpinyin/ibus-libpinyin-1.10.0.ebuild    | 64 ++++++++++++++++++++++
 .../ibus-libpinyin/ibus-libpinyin-1.9.3-r1.ebuild  | 52 ++++++++++++++++++
 3 files changed, 118 insertions(+)