diff options
author | Sam James <sam@gentoo.org> | 2024-08-15 21:28:38 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-08-15 21:28:38 +0100 |
commit | 9e7230aefd5dea1760f44fe3000a447140bf05df (patch) | |
tree | a4db35d5ada16aea081fdd196c85486db296f0ad /app-text/libodfgen | |
parent | sci-electronics/kicad: fix build w/ gcc-15 (diff) | |
download | gentoo-9e7230aefd5dea1760f44fe3000a447140bf05df.tar.gz gentoo-9e7230aefd5dea1760f44fe3000a447140bf05df.tar.bz2 gentoo-9e7230aefd5dea1760f44fe3000a447140bf05df.zip |
app-text/libodfgen: fix build w/ gcc-15
Closes: https://bugs.gentoo.org/937527
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text/libodfgen')
-rw-r--r-- | app-text/libodfgen/files/libodfgen-0.1.8-gcc15-cstdint.patch | 12 | ||||
-rw-r--r-- | app-text/libodfgen/libodfgen-0.1.8.ebuild | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/app-text/libodfgen/files/libodfgen-0.1.8-gcc15-cstdint.patch b/app-text/libodfgen/files/libodfgen-0.1.8-gcc15-cstdint.patch new file mode 100644 index 000000000000..1fcf58d88e8a --- /dev/null +++ b/app-text/libodfgen/files/libodfgen-0.1.8-gcc15-cstdint.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/937527 +https://sourceforge.net/p/libwpd/tickets/27/ +--- a/src/OdfGenerator.cxx ++++ b/src/OdfGenerator.cxx +@@ -33,6 +33,7 @@ + #include <math.h> + + #include <cctype> ++#include <cstdint> + #include <limits> + #include <memory> + #include <string> diff --git a/app-text/libodfgen/libodfgen-0.1.8.ebuild b/app-text/libodfgen/libodfgen-0.1.8.ebuild index 13c381630736..56e3812647de 100644 --- a/app-text/libodfgen/libodfgen-0.1.8.ebuild +++ b/app-text/libodfgen/libodfgen-0.1.8.ebuild @@ -31,6 +31,10 @@ BDEPEND=" doc? ( app-text/doxygen ) " +PATCHES=( + "${FILESDIR}"/${PN}-0.1.8-gcc15-cstdint.patch +) + src_prepare() { default [[ ${PV} == 9999 ]] && eautoreconf |