Bug 271846 - textproc/clucene: apply gentoo patch for C++17 conformance
Summary: textproc/clucene: apply gentoo patch for C++17 conformance
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks: 271047
  Show dependency treegraph
 
Reported: 2023-06-05 17:11 UTC by Dimitry Andric
Modified: 2023-06-05 20:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (office)


Attachments
textproc/clucene: apply gentoo patch for C++17 conformance (5.87 KB, patch)
2023-06-05 17:11 UTC, Dimitry Andric
fluffy: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2023-06-05 17:11:30 UTC
Some parts of CLucene use std::binary_function, which was deprecated in
C++11, and has been completely removed as of C++17. This shows up while
building libreoffice with clang >= 16 or gcc >= 11, because C++17 is the
default standard now.

Apply a diff from https://bugs.gentoo.org/869170 that fixes this, by
removing usage of std::binary_function, and replacing it with typedefs.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-06-05 17:11:53 UTC
Created attachment 242620 [details]
textproc/clucene: apply gentoo patch for C++17 conformance
Comment 2 Dima Panov freebsd_committer freebsd_triage 2023-06-05 17:24:38 UTC
Comment on attachment 242620 [details]
textproc/clucene: apply gentoo patch for C++17 conformance

Go forward!
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-06-05 20:47:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=36efbbee6de97066e076a994b05dcb076a4ca6c2

commit 36efbbee6de97066e076a994b05dcb076a4ca6c2
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-06-05 17:10:41 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-05 20:45:44 +0000

    textproc/clucene: apply gentoo patch for C++17 conformance

    Some parts of CLucene use std::binary_function, which was deprecated in
    C++11, and has been completely removed as of C++17. This shows up while
    building libreoffice with clang >= 16 or gcc >= 11, because C++17 is the
    default standard now.

    Apply a diff from https://bugs.gentoo.org/869170 that fixes this, by
    removing usage of std::binary_function, and replacing it with typedefs.

    PR:             271846
    Approved by:    fluffy (maintainer)
    MFH:            2023Q2

 textproc/clucene/Makefile                          |   2 +-
 .../clucene/files/patch-fix-binary-function (new)  | 147 +++++++++++++++++++++
 2 files changed, 148 insertions(+), 1 deletion(-)