diff options
author | Yongxiang Liang <tanekliang@gmail.com> | 2024-09-07 21:20:36 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-07 23:07:58 +0100 |
commit | 233b77e82c1c86e05f494d0314b99acaa127623a (patch) | |
tree | 66caa005ce8a5b4ea290af71579543b265d7518c /app-i18n | |
parent | profiles: x86: Drop obsolete package.mask, moved to global p.mask (diff) | |
download | gentoo-233b77e82c1c86e05f494d0314b99acaa127623a.tar.gz gentoo-233b77e82c1c86e05f494d0314b99acaa127623a.tar.bz2 gentoo-233b77e82c1c86e05f494d0314b99acaa127623a.zip |
app-i18n/opencc: fix for gcc-15
Closes: https://bugs.gentoo.org/937629
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38499
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/opencc/files/opencc-1.1.7-fix-missing-cstdint-for-gcc-15.patch | 13 | ||||
-rw-r--r-- | app-i18n/opencc/opencc-1.1.7-r1.ebuild | 4 | ||||
-rw-r--r-- | app-i18n/opencc/opencc-1.1.7.ebuild | 4 |
3 files changed, 21 insertions, 0 deletions
diff --git a/app-i18n/opencc/files/opencc-1.1.7-fix-missing-cstdint-for-gcc-15.patch b/app-i18n/opencc/files/opencc-1.1.7-fix-missing-cstdint-for-gcc-15.patch new file mode 100644 index 000000000000..8e80ff29014c --- /dev/null +++ b/app-i18n/opencc/files/opencc-1.1.7-fix-missing-cstdint-for-gcc-15.patch @@ -0,0 +1,13 @@ +https://github.com/BYVoid/OpenCC/pull/894 +Fix missing cstdint for GCC 15 + +--- a/src/SerializedValues.cpp ++++ b/src/SerializedValues.cpp +@@ -17,6 +17,7 @@ + */ + + #include <cassert> ++#include <cstdint> + #include <cstring> + + #include "Lexicon.hpp" diff --git a/app-i18n/opencc/opencc-1.1.7-r1.ebuild b/app-i18n/opencc/opencc-1.1.7-r1.ebuild index 89372cdb262c..afce6038391d 100644 --- a/app-i18n/opencc/opencc-1.1.7-r1.ebuild +++ b/app-i18n/opencc/opencc-1.1.7-r1.ebuild @@ -47,6 +47,10 @@ BDEPEND="${PYTHON_DEPS} DOCS=( AUTHORS NEWS.md README.md ) +PATCHES=( + "${FILESDIR}/${P}-fix-missing-cstdint-for-gcc-15.patch" +) + pkg_setup() { use python && python-single-r1_pkg_setup } diff --git a/app-i18n/opencc/opencc-1.1.7.ebuild b/app-i18n/opencc/opencc-1.1.7.ebuild index bb06c29d91af..300ca308f554 100644 --- a/app-i18n/opencc/opencc-1.1.7.ebuild +++ b/app-i18n/opencc/opencc-1.1.7.ebuild @@ -34,6 +34,10 @@ BDEPEND="${PYTHON_DEPS} DOCS=( AUTHORS NEWS.md README.md ) +PATCHES=( + "${FILESDIR}/${P}-fix-missing-cstdint-for-gcc-15.patch" +) + src_prepare() { rm -r deps || die |