commit: 791ea6cb7a7ab2eb006a947bb74275e1fceaf98b Author: George Burgess IV <gbiv <AT> google <DOT> com> AuthorDate: Wed Aug 9 19:25:38 2023 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Sat Sep 2 00:23:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=791ea6cb
sys-apps/lshw: force c++14 in version 02.19.2b_p20210121 Clang has used C++17 as its default standard since clang-16 (released 17-Mar-2023). This version of lshw does not compile cleanly with this new standard. Keep it on C++14, since newer versions compile without issue. Signed-off-by: George Burgess IV <gbiv <AT> google.com> Closes: https://github.com/gentoo/gentoo/pull/32235 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> ...2.19.2b_p20210121-r3.ebuild => lshw-02.19.2b_p20210121-r4.ebuild} | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild b/sys-apps/lshw/lshw-02.19.2b_p20210121-r4.ebuild similarity index 90% rename from sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild rename to sys-apps/lshw/lshw-02.19.2b_p20210121-r4.ebuild index 527ff09582af..1b0a868d5049 100644 --- a/sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild +++ b/sys-apps/lshw/lshw-02.19.2b_p20210121-r4.ebuild @@ -65,6 +65,11 @@ src_prepare() { src_compile() { tc-export CC CXX AR PKG_CONFIG use static && append-ldflags -static + # Some toolchains are defaulting to C++17, which causes + # `<sys-apps/lshw-02.19.2b_p20220831` to break due to its use of the + # `register` keyword. Just pin it at 14, since future versions don't + # have this issue. + append-cxxflags '-std=c++14' # Need two sep make statements to avoid parallel build issues. #588174 local sqlite=$(usex sqlite 1 0)
