Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630016 - dev-cpp/libcutl-1.10.0 failed to build with boost-1.65.0
Summary: dev-cpp/libcutl-1.10.0 failed to build with boost-1.65.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
: 630014 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-05 18:09 UTC by Stefan Böhmann
Modified: 2017-09-06 22:57 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,8.66 KB, text/x-log)
2017-09-05 18:11 UTC, Stefan Böhmann
Details
config.log (config.log,36.53 KB, text/x-log)
2017-09-05 18:11 UTC, Stefan Böhmann
Details
use bundled boost (use-bundled-boost.patch,398 bytes, patch)
2017-09-06 13:20 UTC, Urmet Saar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Böhmann 2017-09-05 18:09:19 UTC
configure can not find boost regex:

configure: error: boost regex is not found; consider using CPPFLAGS/LDFLAGS or --with-boost=DIR to specify its location
Comment 1 Stefan Böhmann 2017-09-05 18:11:04 UTC
Created attachment 492676 [details]
build.log
Comment 2 Stefan Böhmann 2017-09-05 18:11:17 UTC
Created attachment 492678 [details]
config.log
Comment 3 Urmet Saar 2017-09-06 13:17:38 UTC
Can confirm. libcutl wants to use tr1 versions of boost regex headers but these have been removed in boost 1.65.

Simplest way to get around the error would be to allow libcutl to use its bundled boost.
Comment 4 Urmet Saar 2017-09-06 13:20:32 UTC
Created attachment 492740 [details, diff]
use bundled boost
Comment 5 Jonas Stein gentoo-dev 2017-09-06 14:49:04 UTC
*** Bug 630014 has been marked as a duplicate of this bug. ***
Comment 6 Jonas Stein gentoo-dev 2017-09-06 14:52:04 UTC
to use the bundled boost may be a workaround, but now what we want to do in the official tree.
Comment 7 Urmet Saar 2017-09-06 16:44:33 UTC
The patch in freebsd seems simple enough. It just changes the code to use standard c++ regexes instead of boost tr1 wrappers which are gone with 1.65

https://svnweb.freebsd.org/ports/head/devel/libcutl/files/patch-cutl_re_re.cxx?view=markup&pathrev=445764
Comment 8 David Seifert gentoo-dev 2017-09-06 22:18:51 UTC
(In reply to Urmet Saar from comment #7)
> The patch in freebsd seems simple enough. It just changes the code to use
> standard c++ regexes instead of boost tr1 wrappers which are gone with 1.65
> 
> https://svnweb.freebsd.org/ports/head/devel/libcutl/files/patch-cutl_re_re.
> cxx?view=markup&pathrev=445764

I see this as the only option. It's 2017, and it's good that Boost is cleaning up with this TR1 cruft. Using the bundled boost is *not* an option.
Comment 9 Larry the Git Cow gentoo-dev 2017-09-06 22:46:59 UTC
Bug has been closed via the following commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7deaa00a74a445c4147d3dcd5df94f9f9b5418a

commit b7deaa00a74a445c4147d3dcd5df94f9f9b5418a
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2017-09-06 22:46:27 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2017-09-06 22:46:46 +0000

    dev-cpp/libcutl: Use std::regex over boost::regex
    
    * boost-1.65.0 has removed TR1 support. It's 2017
      and we can use C++11's <regex> support now.
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=630016
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../files/libcutl-1.10.0-boost-1.65-tr1.patch      | 162 +++++++++++++++++++++
 dev-cpp/libcutl/libcutl-1.10.0.ebuild              |  16 +-
 2 files changed, 175 insertions(+), 3 deletions(-)
Comment 10 Urmet Saar 2017-09-06 22:57:32 UTC
It actually looks to me like the only use of boost in libcutl is for the regex wrappers and whole boost dependency could be dropped.