diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-17 14:07:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-17 14:07:47 +0000 |
commit | 7c9730bcb62df7cbf8248c5db9a478aac52c60ea (patch) | |
tree | 3521ee333c83fb6c7ff14d0a0a2d742464e88767 /app-text/dvisvgm/files | |
parent | 29394d0921808a94a409f01eff49f681651de5d5 (diff) |
gentoo auto-resync : 17:02:2023 - 14:07:46
Diffstat (limited to 'app-text/dvisvgm/files')
-rw-r--r-- | app-text/dvisvgm/files/dvisvgm-3.0.2-gcc-13.patch | 109 | ||||
-rw-r--r-- | app-text/dvisvgm/files/dvisvgm-3.0.2-rendering.patch | 25 |
2 files changed, 134 insertions, 0 deletions
diff --git a/app-text/dvisvgm/files/dvisvgm-3.0.2-gcc-13.patch b/app-text/dvisvgm/files/dvisvgm-3.0.2-gcc-13.patch new file mode 100644 index 000000000000..092c91aa31d4 --- /dev/null +++ b/app-text/dvisvgm/files/dvisvgm-3.0.2-gcc-13.patch @@ -0,0 +1,109 @@ +https://github.com/mgieseki/dvisvgm/commit/d5df85b403602c927fe56a1f692af91182a1facd + +From d5df85b403602c927fe56a1f692af91182a1facd Mon Sep 17 00:00:00 2001 +From: Martin Gieseking <martin.gieseking@uos.de> +Date: Mon, 30 Jan 2023 10:51:15 +0100 +Subject: [PATCH] added missing includes of cstdint required for GCC 13 + +--- a/src/BasicDVIReader.hpp ++++ b/src/BasicDVIReader.hpp +@@ -21,6 +21,8 @@ + #ifndef BASICDVIREADER_HPP + #define BASICDVIREADER_HPP + ++#include <cstdint> ++ + #include "Matrix.hpp" + #include "MessageException.hpp" + #include "StreamReader.hpp" +--- a/src/Bitmap.hpp ++++ b/src/Bitmap.hpp +@@ -21,6 +21,7 @@ + #ifndef BITMAP_HPP + #define BITMAP_HPP + ++#include <cstdint> + #include <ostream> + #include <vector> + +--- a/src/CMap.hpp ++++ b/src/CMap.hpp +@@ -22,6 +22,7 @@ + #define CMAP_HPP + + #include <algorithm> ++#include <cstdint> + #include <ostream> + #include <vector> + #include "FontEncoding.hpp" +--- a/src/Color.hpp ++++ b/src/Color.hpp +@@ -21,6 +21,7 @@ + #ifndef COLOR_HPP + #define COLOR_HPP + ++#include <cstdint> + #include <string> + #include <valarray> + #include <vector> +--- a/src/DVIReader.hpp ++++ b/src/DVIReader.hpp +@@ -21,6 +21,7 @@ + #ifndef DVIREADER_HPP + #define DVIREADER_HPP + ++#include <cstdint> + #include <limits> + #include <map> + #include <stack> +--- a/src/FileSystem.hpp ++++ b/src/FileSystem.hpp +@@ -21,6 +21,7 @@ + #ifndef FILESYSTEM_HPP + #define FILESYSTEM_HPP + ++#include <cstdint> + #include <string> + #include <vector> + +--- a/src/InputBuffer.hpp ++++ b/src/InputBuffer.hpp +@@ -22,6 +22,7 @@ + #define INPUTBUFFER_HPP + + #include <algorithm> ++#include <cstdint> + #include <cstring> + #include <istream> + #include <string> +--- a/src/RangeMap.hpp ++++ b/src/RangeMap.hpp +@@ -22,6 +22,7 @@ + #define RANGEMAP_HPP + + #include <algorithm> ++#include <cstdint> + #include <ostream> + #include <vector> + +--- a/src/Unicode.hpp ++++ b/src/Unicode.hpp +@@ -21,6 +21,7 @@ + #ifndef UNICODE_HPP + #define UNICODE_HPP + ++#include <cstdint> + #include <string> + + struct Unicode { +--- a/src/ttf/TTFTable.hpp ++++ b/src/ttf/TTFTable.hpp +@@ -19,6 +19,7 @@ + *************************************************************************/ + + #pragma once ++#include <cstdint> + #include <ostream> + #include <sstream> + #include <vector> + diff --git a/app-text/dvisvgm/files/dvisvgm-3.0.2-rendering.patch b/app-text/dvisvgm/files/dvisvgm-3.0.2-rendering.patch new file mode 100644 index 000000000000..c53e07d58cb4 --- /dev/null +++ b/app-text/dvisvgm/files/dvisvgm-3.0.2-rendering.patch @@ -0,0 +1,25 @@ +https://github.com/mgieseki/dvisvgm/issues/227 +https://github.com/mgieseki/dvisvgm/commit/62d695b0bf0220a209d143f32054d5a3c872c992 + +From 62d695b0bf0220a209d143f32054d5a3c872c992 Mon Sep 17 00:00:00 2001 +From: Martin Gieseking <martin.gieseking@uos.de> +Date: Sun, 5 Feb 2023 13:12:48 +0100 +Subject: [PATCH] popPageContext: reset initial char context by only one level + and don't rewind it back to the page element (fixes #227) + +--- a/src/SVGTree.cpp ++++ b/src/SVGTree.cpp +@@ -330,11 +330,11 @@ void SVGTree::pushPageContext (unique_ptr<SVGElement> node) { + } + + +-/** Pops the current context element and restored the previous one. */ ++/** Pops the current context element and restores the previous one. */ + void SVGTree::popPageContext () { + if (!_pageContextStack.empty()) + _pageContextStack.pop(); +- _charHandler->setInitialContextNode(_page); ++ _charHandler->setInitialContextNode(_pageContextStack.empty() ? _page : _pageContextStack.top()); + } + + |