summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2018-11-13 17:37:19 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-11-13 10:37:19 -0600
commita852028b02c7f4b47cdeb496f78552ec9c7a9642 (patch)
tree2a7c47007f719612525d8472df4204d0a35c5e32
parentfe8c28703637228d81873b908f3681cd3eeb1851 (diff)
downloadspack-a852028b02c7f4b47cdeb496f78552ec9c7a9642.tar.gz
spack-a852028b02c7f4b47cdeb496f78552ec9c7a9642.tar.bz2
spack-a852028b02c7f4b47cdeb496f78552ec9c7a9642.tar.xz
spack-a852028b02c7f4b47cdeb496f78552ec9c7a9642.zip
glib: explicitly disable gtk-doc (#9771)
glib should not use the globally installed gtk-doc. Otherwise, gtk-doc can fail with Python errors such as `ImportError: No module named site`. This is due to the fact that Spack sets `PYTHONHOME`, which can confuse the global Python installation that is used by gtk-doc.
-rw-r--r--var/spack/repos/builtin/packages/glib/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/glib/package.py b/var/spack/repos/builtin/packages/glib/package.py
index ab554165a1..e21ea6f345 100644
--- a/var/spack/repos/builtin/packages/glib/package.py
+++ b/var/spack/repos/builtin/packages/glib/package.py
@@ -72,6 +72,18 @@ class Glib(AutotoolsPackage):
os.path.basename(self.spec['python'].command.path))
)
args.extend(self.enable_or_disable('tracing'))
+ # glib should not use the globally installed gtk-doc. Otherwise,
+ # gtk-doc can fail with Python errors such as "ImportError: No module
+ # named site". This is due to the fact that Spack sets PYTHONHOME,
+ # which can confuse the global Python installation used by gtk-doc.
+ args.append('--disable-gtk-doc-html')
+ # glib uses gtk-doc even though it should be disabled if it can find
+ # its binaries. Override the checks to use the true binary.
+ true = which('true')
+ args.append('GTKDOC_CHECK={0}'.format(true))
+ args.append('GTKDOC_CHECK_PATH={0}'.format(true))
+ args.append('GTKDOC_MKPDF={0}'.format(true))
+ args.append('GTKDOC_REBASE={0}'.format(true))
return args
@property