Summary: | editors/openoffice-4 and editors/openoffice-devel: fail to build with boost 1.67 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> | ||||
Component: | Individual Port(s) | Assignee: | Don Lewis <truckman> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | pfg, truckman | ||||
Priority: | --- | Keywords: | needs-patch | ||||
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(office) |
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 227427 | ||||||
Attachments: |
|
Description
Jan Beich
2018-04-16 13:32:42 UTC
(In reply to Jan Beich from comment #0) The release notes say: ____ Utility: Breaking change: <boost/utility.hpp> header no longer includes boost::next and boost::prior as they have been moved to the iterator module. Instead include <boost/next_prior.hpp>. Other uses of <boost/utility.hpp> are discouraged, it's better to use the header for the specific functionality instead. ____ So a simple replacement should work. s a side note: I am not sure how to upstream this since upstream still carries a very old boost version to accompany the older MSVC compiler. Something like this should work: #include <boost/version.h> #if BOOST_VERSION < 106700 #include <boost/utility.hpp> #else #include <boost/next_prior.hpp> #endif Don't forget to remove BROKEN line added on Boost 1.67 landing. A commit references this bug: Author: truckman Date: Wed Apr 18 21:06:00 UTC 2018 New revision: 467736 URL: https://svnweb.freebsd.org/changeset/ports/467736 Log: Fix editors/openoffice-4 build with boost 1.67 by checking the boost version and including <boost/next_prior.hpp> instead of <boost/utility.hpp> when the new version of boost is detected. PR: 227553 Reported by: jbeich Changes: head/editors/openoffice-4/Makefile head/editors/openoffice-4/files/patch-boost1.67 Created attachment 192636 [details]
Probable fix
Looking at opengrok, it appears boost:prior is only used twice. No uses of boost:next.
The attached patch (against AOO trunk) should fix it but is untested.
(In reply to Pedro F. Giffuni from comment #5) Nevermind .. basically the same patch was committed already. I will upstream this. The hangup has been finding enough CPU cycles for test builds ... (In reply to Don Lewis from comment #7) I hear you ... It does look good and the ASF buildbots all show green lights :). editors/openoffice-devel has been fixed by upgrading to upstream SVN r1829757 which incorporates the fix for boost 1.67. Author: truckman Date: Sun Apr 22 17:09:14 2018 New Revision: 468039 URL: https://svnweb.freebsd.org/changeset/ports/468039 Log: Upgrade openoffice-devel to upstream SVN r1829757. The fix for compatibility with boost 1.67 has been upstreamed, so remove BROKEN. Upstream has switched from gstreamer 0.10 to gstreamer 1.x, so change our dependency to match. Don't specify an explicit LIB_DEPENDS in addition to USE_GSTREAMER1. Most of the patches to work around various compiler issues have been upstreamed, so remove them here. Modernize patch-framework_Library__fwk.mk. |