inputbuffer.h does not presently include cstdint fails to build with gcc-15.0.0_pre20240804 Reproducible: Always Steps to Reproduce: select gcc:15 =app-i18n/fcitx-5.1.10:5 Actual Results: FAILED: src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DFCITX_GETTEXT_DOMAIN=\"fcitx5\" -DFMT_HEADER_ONLY=1 -DFcitx5Utils_EXPORTS -I/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10_build -I/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/.. -I/var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10_build/src/lib/fcitx-utils -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/elogind -Wall -Wextra -march=native -O3 -flto=jobserver -mprefer-vector-width=512 -fno-vect-cost-model -pipe -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o -MF src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o.d -o src/lib/fcitx-utils/CMakeFiles/Fcitx5Utils.dir/inputbuffer.cpp.o -c /var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.cpp In file included from /var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.cpp:7: /var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.h:56:15: error: ‘uint32_t’ has not been declared 56 | bool type(uint32_t unicode); | ^~~~~~~~ /var/tmp/portage/app-i18n/fcitx-5.1.10/work/fcitx5-5.1.10/src/lib/fcitx-utils/inputbuffer.h:82:5: error: ‘uint32_t’ does not name a type 82 | uint32_t charAt(size_t i) const; | ^~~~~~~~
Created attachment 899824 [details, diff] inputbuffer.h cstdint add patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d15160b358179c5dabf2a1e142df6d541eef47 commit 04d15160b358179c5dabf2a1e142df6d541eef47 Author: Yongxiang Liang <tanekliang@gmail.com> AuthorDate: 2024-08-15 05:56:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-15 20:34:48 +0000 app-i18n/fcitx: fix missing cstdint for GCC 15 Closes: https://bugs.gentoo.org/937737 Signed-off-by: Yongxiang Liang <tanekliang@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> app-i18n/fcitx/fcitx-5.1.10-r1.ebuild | 127 +++++++++++++++++++++ .../fcitx-5.1.10-include-cstdint-for-gcc-15.patch | 12 ++ 2 files changed, 139 insertions(+)