summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRuben Di Battista <rubendibattista@users.noreply.github.com>2020-11-16 20:26:31 +0100
committerGitHub <noreply@github.com>2020-11-16 13:26:31 -0600
commit1fb8ae42e01ba5265360fb19f16bab303c4920dd (patch)
tree6d94ca3d8f2508182868d14ad3ddd57443cef0eb /var
parent6142ab56c7cb0dc382039abc4037b82d2439d3d0 (diff)
downloadspack-1fb8ae42e01ba5265360fb19f16bab303c4920dd.tar.gz
spack-1fb8ae42e01ba5265360fb19f16bab303c4920dd.tar.bz2
spack-1fb8ae42e01ba5265360fb19f16bab303c4920dd.tar.xz
spack-1fb8ae42e01ba5265360fb19f16bab303c4920dd.zip
texlive: Fix install of @live version (#19941)
The unattended install using the pre-compiled binaries (tl-install) needs a .profile file or it goes in interactive mode blocking the install process forever
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/texlive/package.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/texlive/package.py b/var/spack/repos/builtin/packages/texlive/package.py
index a6064dcdfd..1687af6bed 100644
--- a/var/spack/repos/builtin/packages/texlive/package.py
+++ b/var/spack/repos/builtin/packages/texlive/package.py
@@ -3,8 +3,10 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack import *
import os
import platform
+import tempfile
class Texlive(AutotoolsPackage):
@@ -192,6 +194,11 @@ class Texlive(AutotoolsPackage):
@when('@live')
def install(self, spec, prefix):
+ # The binary install needs a profile file to be present
+ tmp_profile = tempfile.NamedTemporaryFile()
+ tmp_profile.write("selected_scheme {0}".format(
+ spec.variants['scheme']).encode())
+
# Using texlive's mirror system leads to mysterious problems,
# in lieu of being able to specify a repository as a variant, hardwire
# a particular (slow, but central) one for now.
@@ -202,4 +209,6 @@ class Texlive(AutotoolsPackage):
scheme = spec.variants['scheme'].value
perl('./install-tl', '-scheme', scheme,
'-repository', _repository,
- '-portable', '-profile', '/dev/null')
+ '-portable', '-profile', tmp_profile.name)
+
+ tmp_profile.close()