diff options
author | Dan Lipsa <dan.lipsa@kitware.com> | 2021-01-28 15:58:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 15:58:55 -0500 |
commit | 5a9da90d072937e3daf3ea32194ef2c098101165 (patch) | |
tree | 33efd11a255a96250066f2425bc40dc2d22ede0b /var | |
parent | f523ea8c4e4e293af5e8e00c9b385f2ccde29fac (diff) | |
download | spack-5a9da90d072937e3daf3ea32194ef2c098101165.tar.gz spack-5a9da90d072937e3daf3ea32194ef2c098101165.tar.bz2 spack-5a9da90d072937e3daf3ea32194ef2c098101165.tar.xz spack-5a9da90d072937e3daf3ea32194ef2c098101165.zip |
Use utf8 for latex build. (#21360)
Patch provided by @Billae
Avoid the following error:
File "/home/danlipsa/projects/spack/lib/spack/llnl/util/tty/log.py", line 768, in _writer_daemon
line = _retry(in_pipe.readline)()
File "/home/danlipsa/projects/spack/lib/spack/llnl/util/tty/log.py", line 830, in wrapped
return function(*args, **kwargs)
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x97 in position 220: invalid start byte
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libtheora/fix_encoding.patch | 12 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/libtheora/package.py | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libtheora/fix_encoding.patch b/var/spack/repos/builtin/packages/libtheora/fix_encoding.patch new file mode 100644 index 0000000000..d0f2127cd7 --- /dev/null +++ b/var/spack/repos/builtin/packages/libtheora/fix_encoding.patch @@ -0,0 +1,12 @@ +diff --git a/doc/spec/spec.tex b/doc/spec/spec.tex +index 2206e10..34a0724 100644 +--- a/doc/spec/spec.tex ++++ b/doc/spec/spec.tex +@@ -14,6 +14,7 @@ + \usepackage{float} + \usepackage[pdfpagemode=None,pdfstartview=FitH,pdfview=FitH,colorlinks=true]% + {hyperref} ++\usepackage{utf8x}[inputenc] + + \newtheorem{theorem}{Theorem}[section] + \newcommand{\idx}[1]{{\ensuremath{\mathit{#1}}}} diff --git a/var/spack/repos/builtin/packages/libtheora/package.py b/var/spack/repos/builtin/packages/libtheora/package.py index 5255a195cf..c67e6531b9 100644 --- a/var/spack/repos/builtin/packages/libtheora/package.py +++ b/var/spack/repos/builtin/packages/libtheora/package.py @@ -24,6 +24,7 @@ class Libtheora(AutotoolsPackage): depends_on('libpng') patch('exit-prior-to-running-configure.patch', when='@1.1.1') + patch('fix_encoding.patch', when='@1.1:') patch('https://gitlab.xiph.org/xiph/theora/-/commit/7288b539c52e99168488dc3a343845c9365617c8.patch', sha256='2e4f891f6880386d9391f3e4eaf4a23493de4eea532f9b5cb8a04b5f7cd09301', when='^libpng@1.6:') |