summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-03 14:46:28 +0100
committerSam James <sam@gentoo.org>2023-07-03 14:46:31 +0100
commit9f1ffa4a2a46aef7387495ebc440b52608ebb987 (patch)
treea88cfe1fc3f635bab7a22d9c5579ab300775fc40 /app-text
parentwww-servers/nginx: Stabilize 1.24.0-r1 arm, #909561 (diff)
downloadgentoo-9f1ffa4a2a46aef7387495ebc440b52608ebb987.tar.gz
gentoo-9f1ffa4a2a46aef7387495ebc440b52608ebb987.tar.bz2
gentoo-9f1ffa4a2a46aef7387495ebc440b52608ebb987.zip
app-text/dvisvgm: fix build w/ gcc 13 (again)
Closes: https://bugs.gentoo.org/906250 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/dvisvgm/dvisvgm-3.0.4.ebuild4
-rw-r--r--app-text/dvisvgm/files/dvisvgm-3.0.4-gcc13.patch29
2 files changed, 33 insertions, 0 deletions
diff --git a/app-text/dvisvgm/dvisvgm-3.0.4.ebuild b/app-text/dvisvgm/dvisvgm-3.0.4.ebuild
index c94c72cd11ca..d583b7ecb4d2 100644
--- a/app-text/dvisvgm/dvisvgm-3.0.4.ebuild
+++ b/app-text/dvisvgm/dvisvgm-3.0.4.ebuild
@@ -40,6 +40,10 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc13.patch
+)
+
src_configure() {
local myargs=(
--disable-bundled-libs
diff --git a/app-text/dvisvgm/files/dvisvgm-3.0.4-gcc13.patch b/app-text/dvisvgm/files/dvisvgm-3.0.4-gcc13.patch
new file mode 100644
index 000000000000..a6452baf6794
--- /dev/null
+++ b/app-text/dvisvgm/files/dvisvgm-3.0.4-gcc13.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/906250
+https://github.com/mgieseki/dvisvgm/commit/b16a8d1c452d809118ceade4d2e8c6f9dfce48ac
+
+From b16a8d1c452d809118ceade4d2e8c6f9dfce48ac Mon Sep 17 00:00:00 2001
+From: Martin Gieseking <martin.gieseking@uos.de>
+Date: Fri, 5 May 2023 22:22:00 +0200
+Subject: [PATCH] added missing includes
+
+--- a/src/DVIActions.hpp
++++ b/src/DVIActions.hpp
+@@ -21,6 +21,7 @@
+ #ifndef DVIACTIONS_HPP
+ #define DVIACTIONS_HPP
+
++#include <cstdint>
+ #include <string>
+ #include <vector>
+
+--- a/src/Pair.hpp
++++ b/src/Pair.hpp
+@@ -22,6 +22,7 @@
+ #define PAIR_HPP
+
+ #include <cmath>
++#include <cstdint>
+ #include <ostream>
+ #include "macros.hpp"
+
+