From c03dcdedb183f6aa4a8680a0c04d48e7a4d520a8 Mon Sep 17 00:00:00 2001 From: Hadrien G Date: Thu, 26 Jul 2018 22:54:46 +0200 Subject: [PATCH] FTGL package workarounds (#8812) * FTGL package workarounds * Remove blank line * Only require doxygen at build time --- var/spack/repos/builtin/packages/ftgl/package.py | 10 ++++++++++ .../builtin/packages/ftgl/remove-extra-qualifier.diff | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff diff --git a/var/spack/repos/builtin/packages/ftgl/package.py b/var/spack/repos/builtin/packages/ftgl/package.py index 95e968e371..a2fcb7c702 100644 --- a/var/spack/repos/builtin/packages/ftgl/package.py +++ b/var/spack/repos/builtin/packages/ftgl/package.py @@ -37,6 +37,9 @@ class Ftgl(AutotoolsPackage): version('2.1.2', 'f81c0a7128192ba11e036186f9a968f2') + # There is an unnecessary qualifier around, which makes modern GCC sad + patch('remove-extra-qualifier.diff') + # Ftgl does not come with a configure script depends_on('autoconf', type='build') depends_on('automake', type='build') @@ -48,6 +51,13 @@ class Ftgl(AutotoolsPackage): depends_on('glu') depends_on('freetype@2.0.9:') + # Currently, "make install" will fail if the docs weren't built + # + # FIXME: Can someone with autotools experience fix the build system + # so that it doesn't fail when that happens? + # + depends_on('doxygen', type='build') + @property @when('@2.1.2') def configure_directory(self): diff --git a/var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff b/var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff new file mode 100644 index 0000000000..cff9a3836e --- /dev/null +++ b/var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff @@ -0,0 +1,11 @@ +--- FTGL/include/FTTextureGlyph.h 2018-07-26 08:30:55.144488976 +0000 ++++ FTGL/include/FTTextureGlyph.h 2018-07-26 08:29:42.072489186 +0000 +@@ -52,7 +52,7 @@ + * Reset the currently active texture to zero to get into a known state before + * drawing a string. This is to get round possible threading issues. + */ +- static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;} ++ static void ResetActiveTexture(){ activeTextureID = 0;} + + private: + /**