Bug 272782 - devel/codeblocks: needs ISO C++ 2011 when compiled with Clang 16
Summary: devel/codeblocks: needs ISO C++ 2011 when compiled with Clang 16
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-28 20:51 UTC by Trond Endrestøl
Modified: 2023-07-30 23:05 UTC (History)
1 user (show)

See Also:


Attachments
Git formatted patch for devel/codeblocks/Makefile enforcing ISO C++ 2011 (478 bytes, patch)
2023-07-28 20:51 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2023-07-28 20:51:31 UTC
Created attachment 243674 [details]
Git formatted patch for devel/codeblocks/Makefile enforcing ISO C++ 2011

Otherwise std::mem_fun() must be changed to std::mem_fn().
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-07-28 21:04:05 UTC
This looks reasonable.  If possible, please set your name and surname in Bugzilla so I can put correct authorship data into the git commit.
Comment 2 Trond Endrestøl 2023-07-29 08:35:43 UTC
(In reply to Robert Clausecker from comment #1)
done
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-07-30 23:00:57 UTC
A commit in branch main references this bug:

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

commit c2bade1b964baa45b4eb2829f40f663048057e2c
Author:     Trond Endrestøl <Trond.Endrestol@ximalas.info>
AuthorDate: 2023-07-28 21:04:40 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-07-30 22:59:05 +0000

    devel/codeblocks: fix build with recent clang

    Port uses std::mem_fun which went away with C++17.  Enforce use of
    C++11 to fix the build.

    PR:             272782
    MFH:            2023Q3

 devel/codeblocks/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-07-30 23:03:13 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=377174bb0ba73be18dc3d4a08e4508f4e8bb73e9

commit 377174bb0ba73be18dc3d4a08e4508f4e8bb73e9
Author:     Trond Endrestøl <Trond.Endrestol@ximalas.info>
AuthorDate: 2023-07-28 21:04:40 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-07-30 23:01:41 +0000

    devel/codeblocks: fix build with recent clang

    Port uses std::mem_fun which went away with C++17.  Enforce use of
    C++11 to fix the build.

    PR:             272782
    MFH:            2023Q3
    (cherry picked from commit c2bade1b964baa45b4eb2829f40f663048057e2c)

 devel/codeblocks/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2023-07-30 23:05:37 UTC
Thank you for your contribution.