texlive-bin: add patch for gcc11

This commit is contained in:
Naveen M K
2021-10-30 10:51:51 +05:30
parent 519f025fc5
commit 1369b357d4
2 changed files with 41 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
From 74fcc9e3933d63bb55662894e135dcce0e4f9235 Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Sat, 30 Oct 2021 10:45:57 +0530
Subject: [PATCH 2/2] dvisvgm: Fix for gcc11
---
texk/dvisvgm/dvisvgm-src/src/FileSystem.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/texk/dvisvgm/dvisvgm-src/src/FileSystem.cpp b/texk/dvisvgm/dvisvgm-src/src/FileSystem.cpp
index 476c0c8e..d766a5b9 100644
--- a/texk/dvisvgm/dvisvgm-src/src/FileSystem.cpp
+++ b/texk/dvisvgm/dvisvgm-src/src/FileSystem.cpp
@@ -33,9 +33,6 @@
#include <unistd.h>
#endif
-
-using namespace std;
-
#ifdef _WIN32
#include <direct.h>
#include "windows.hpp"
@@ -52,6 +49,8 @@ using namespace std;
#endif
+using namespace std;
+
string FileSystem::TMPDIR;
FileSystem::TemporaryDirectory FileSystem::_tmpdir;
--
2.33.1.windows.1

View File

@@ -47,13 +47,15 @@ source=(
"0002-fix-lauchers-mingw32.patch"
"0003-runscript-always-quote-args.patch"
"0004-mpxout-x64.patch"
"0005-texk-dvipdfm-x-Don-t-copy-libtool-wrapper.patch")
"0005-texk-dvipdfm-x-Don-t-copy-libtool-wrapper.patch"
"0006-dvisvgm-Fix-for-gcc11.patch")
sha256sums=('f17bdf0fba64790151b39bcb1d6d4f0ee97da6bcf15b4c9282ff9056bb8da5ee'
'86ef2a99b2f0caed42777419837d9b539af1d1c8a101701e539e5467bb88662e'
'decff8db61302c2a1760cfd4b42aaf0e25fcb7d2b9621cea3ec3f4c2557976a1'
'0339fe12b2ec7537ce62d064fffd43e8ee02280ffac3dd012f07dc17a713acdc'
'574f04b9f41b579b283b6d86c1b1ee07f97f45b01a12d77953db5eca6572d3da'
'b525e528d6da0c9e1ad7fa123ea62636a7811c5219b40e59d65f2385f0ca96fd')
'b525e528d6da0c9e1ad7fa123ea62636a7811c5219b40e59d65f2385f0ca96fd'
'c21c3aaf2528653563647551237bb05ae7b3a91c9ad5bfeaed35a731cf9ae965')
apply_patch_with_msg() {
for _patch in "$@"
@@ -70,7 +72,8 @@ prepare() {
apply_patch_with_msg 0003-runscript-always-quote-args.patch
apply_patch_with_msg 0004-mpxout-x64.patch
apply_patch_with_msg 0005-texk-dvipdfm-x-Don-t-copy-libtool-wrapper.patch
apply_patch_with_msg 0006-dvisvgm-Fix-for-gcc11.patch
# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
sed -i s/SELFAUTOPARENT/TEXMFROOT/ texk/tex4htk/t4ht.c
autoreconf -fiv