Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940119 - app-office/libreoffice-24.2.6.2: fails to build with >=libcxx-19: error: implicit instantiation of undefined template 'std::char_traits<int>'
Summary: app-office/libreoffice-24.2.6.2: fails to build with >=libcxx-19: error: impl...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-23 01:51 UTC by nvinson234
Modified: 2024-09-24 09:04 UTC (History)
2 users (show)

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


Attachments
libreoffice-24.2.6.2.ebuild.patch (8nMYyrdk,1.43 KB, patch)
2024-09-23 09:03 UTC, nvinson234
Details | Diff
libreoffice-24.2.6.2-0001-There-is-no-std-basic_string-int.patch (libreoffice-24.2.6.2-0001-There-is-no-std-basic_string-int.patch,1.52 KB, patch)
2024-09-23 09:08 UTC, nvinson234
Details | Diff
libreoffice-24.2.6.2-UnpackedTarball_zxcvbn-c.mk-libcxx-19.patch (libreoffice-24.2.6.2-UnpackedTarball_zxcvbn-c.mk-libcxx-19.patch,460 bytes, patch)
2024-09-23 09:17 UTC, nvinson234
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nvinson234 2024-09-23 01:51:57 UTC
In file included from dict-generate.cpp:25:
In file included from /usr/include/c++/v1/iostream:42:
In file included from /usr/include/c++/v1/ios:220:
In file included from /usr/include/c++/v1/__locale:24:
/usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<int>'
  820 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
dict-generate.cpp:861:18: note: in instantiation of template class 'std::basic_string<int>' requested here
  861 |     StringOfInts Chld;
      |                  ^


Reproducible: Always
Comment 1 nvinson234 2024-09-23 09:03:38 UTC
Created attachment 903611 [details, diff]
libreoffice-24.2.6.2.ebuild.patch
Comment 2 nvinson234 2024-09-23 09:08:30 UTC
Created attachment 903612 [details, diff]
libreoffice-24.2.6.2-0001-There-is-no-std-basic_string-int.patch

based off upstream patch (https://github.com/LibreOffice/core/blob/master/external/zxcvbn-c/0001-There-is-no-std-basic_string-int.patch.1)
Comment 3 nvinson234 2024-09-23 09:17:07 UTC
Created attachment 903613 [details, diff]
libreoffice-24.2.6.2-UnpackedTarball_zxcvbn-c.mk-libcxx-19.patch

Makefile patch to ensure 0001-There-is-no-std-basic_string-int.patch gets applied.

Note: The file that needs to be patched, ${WORKDIR}/UnpackedTarball/zxcvbn-c/dict-generate.cpp, isn't available until after src_compile() is called.