Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646564 - app-office/libreoffice-6 should require dev-libs/boost[nls]
Summary: app-office/libreoffice-6 should require dev-libs/boost[nls]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-04 11:17 UTC by Ostashevskyi Viktor
Modified: 2018-02-09 23:08 UTC (History)
3 users (show)

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 Ostashevskyi Viktor 2018-02-04 11:17:13 UTC
Hello,

Building app-office/libreoffice-6.0.0.3 fails:

In file included from /var/tmp/portage/app-office/libreoffice-6.0.0.3/work/libreoffice-6.0.0.3/unotools/source/i18n/resmgr.cxx:48:0:
/usr/include/boost/locale.hpp:11:10: fatal error: boost/locale/boundary.hpp: No such file or directory
 #include <boost/locale/boundary.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Re-emering dev-libs/boost with USE=nls fixes build.
Comment 1 tka 2018-02-04 17:58:50 UTC
Interestingly, the configure script checks whether the Boost::Locale library is available without complaining if it is not.

checking for exit in -lboost_iostreams-mt... yes
checking whether the Boost::Locale library is available... no
checking boost/shared_ptr.hpp usability... yes
Comment 2 Ostashevskyi Viktor 2018-02-04 19:12:01 UTC
(In reply to tka from comment #1)
> Interestingly, the configure script checks whether the Boost::Locale library
> is available without complaining if it is not.
> 
> checking for exit in -lboost_iostreams-mt... yes
> checking whether the Boost::Locale library is available... no
> checking boost/shared_ptr.hpp usability... yes

I've also noticed that, but looks like unotools/source/i18n/resmgr.cxx uses Boost.Locale unconditionally. Probably, this should be reported upstream, but in meantime requiring boost[nls] looks reasonable.
Comment 3 Joonas Niilola gentoo-dev 2018-02-07 08:50:06 UTC
I was hit by this bug. Can confirm that re-emerging boost with "nls" USE flag enabled solved it. 

[ebuild   R    ] dev-libs/boost-1.65.0:0/1.65.0::gentoo  USE="nls threads -context -debug -doc -icu -mpi -python -static-libs -tools" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" 0 KiB
[ebuild   R    ] app-office/libreoffice-6.0.0.3::gentoo  USE="branding cups dbus gstreamer gtk odk pdfimport -bluetooth -coinmp -debug -eds -firebird -googledrive -gtk2 -java -jemalloc -kde -libressl -mysql -postgres {-test} -vlc" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_5 -python2_7 -python3_4 -python3_6" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" 0 KiB
Comment 4 Larry the Git Cow gentoo-dev 2018-02-09 23:08:50 UTC
The bug has been closed via the following commit(s):

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

commit c5e46d000969def333b8265e2569079ce443c0ce
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-02-09 09:35:05 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-02-09 23:08:34 +0000

    app-office/libreoffice: DEPEND on dev-libs/boost[nls]
    
    Closes: https://bugs.gentoo.org/646564
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-office/libreoffice/libreoffice-6.0.9999.ebuild | 2 +-
 app-office/libreoffice/libreoffice-9999.ebuild     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)