From 9c2c1956f0c316b0e142cacf8df3dc18d54d56b5 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 4 Mar 2020 05:34:54 +0530 Subject: windows.config: Place temporary wine files in var/tmp This is a more obvious place for it, and is self-documenting in the CI YAML too, where we exclude it from the cerbero-deps tarball. --- cerbero/config.py | 2 ++ config/windows.config | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/cerbero/config.py b/cerbero/config.py index 2fa1db8d..34d68600 100644 --- a/cerbero/config.py +++ b/cerbero/config.py @@ -243,6 +243,8 @@ class Config (object): self._create_path(os.path.join(self.prefix, 'share', 'aclocal')) self._create_path(os.path.join( self.build_tools_prefix, 'share', 'aclocal')) + self._create_path(os.path.join( + self.build_tools_prefix, 'var', 'tmp')) libdir = os.path.join(self.prefix, 'lib%s' % self.lib_suffix) self.libdir = libdir diff --git a/config/windows.config b/config/windows.config index 658e5cfe..9c2a8399 100644 --- a/config/windows.config +++ b/config/windows.config @@ -21,6 +21,10 @@ if platform == Platform.WINDOWS: if target_arch == Architecture.X86_64: build = 'x86_64-w64-mingw32' else: + # NOTE: Ensure that whatever directory this goes into is ignored by the + # .cerbero deps CI job otherwise we will tar up ~1GB of generated data. + os.environ['WINEPREFIX'] = os.path.join(build_tools_prefix, 'var', 'tmp', 'wine') + os.environ['WINEDEBUG'] = 'fixme-all' separator = ':' if target_arch == Architecture.X86: -- cgit v1.2.3