media-libs/ftgl: skip unit tests (bug #619390)
authorPavel Kretov <firegurafiku@gmail.com>
Mon, 30 Oct 2017 14:42:07 +0000 (17:42 +0300)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 31 Oct 2017 22:07:42 +0000 (22:07 +0000)
The build issue seem to be related to C++11 support in CppUnit and can be
worked around with one of the following approaches:

 - compiling with CXXFLAGS+='-std=c++11',
 - disabling unit tests completely.

In order not to introduce formal CppUnit dependency into the ebuild,
the latter approach is chosen.
Closes: https://github.com/gentoo/gentoo/pull/6087

media-libs/ftgl/files/ftgl-2.1.3_rc5-gentoo.patch

index 43571d5a07db807a81f77be62a82a1c66e6a53bf..945c8742c6443ab18d5da10e8540a731e94c0f8f 100644 (file)
@@ -1,6 +1,16 @@
 --- configure.ac.old    2008-11-21 14:41:15.000000000 +0100
 +++ configure.ac        2008-11-21 14:44:19.000000000 +0100
-@@ -64,19 +64,11 @@
+@@ -50,8 +50,7 @@
+ FTGL_CHECK_GLUT
+ FTGL_CHECK_FONT
+
+-PKG_CHECK_MODULES(CPPUNIT, cppunit, [CPPUNIT="yes"], [CPPUNIT="no"])
+-AC_MSG_RESULT($CPPUNIT)
++CPPUNIT="no"
+ AM_CONDITIONAL(HAVE_CPPUNIT, test "x$CPPUNIT" != "xno")
+
+ dnl search the include directory (required for non-srcdir builds).
+@@ -64,19 +63,11 @@
  CFLAGS="${CFLAGS} -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
  
  # Build HTML documentatin?