diff options
-rw-r--r-- | meta/recipes-gnome/gtk-doc/files/conditionaltests.patch | 34 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk-doc/files/conditionaltests.patch b/meta/recipes-gnome/gtk-doc/files/conditionaltests.patch new file mode 100644 index 0000000000..0c180f2605 --- /dev/null +++ b/meta/recipes-gnome/gtk-doc/files/conditionaltests.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Allow the tests to be explicitly disabled to avoid floating dependnecy | ||
2 | issues. This is not really an issue with RSS but is on previous releases. | ||
3 | |||
4 | RP 2017/6/27 | ||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Index: gtk-doc-1.25/configure.ac | ||
8 | =================================================================== | ||
9 | --- gtk-doc-1.25.orig/configure.ac | ||
10 | +++ gtk-doc-1.25/configure.ac | ||
11 | @@ -161,6 +161,11 @@ if test "x$GCC" = "xyes"; then | ||
12 | fi | ||
13 | fi | ||
14 | |||
15 | +AC_ARG_ENABLE([tests], | ||
16 | + AS_HELP_STRING([--enable-tests], | ||
17 | + [enable tests (default=yes)]),, | ||
18 | + [enable_tests="yes"]) | ||
19 | + | ||
20 | dnl if glib is available we can enable the tests | ||
21 | PKG_CHECK_MODULES(TEST_DEPS, [glib-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0], | ||
22 | [ glib_prefix="`$PKG_CONFIG --variable=prefix glib-2.0`" | ||
23 | @@ -171,6 +176,11 @@ PKG_CHECK_MODULES(TEST_DEPS, [glib-2.0 > | ||
24 | build_tests="no" | ||
25 | ] | ||
26 | ) | ||
27 | +if test "x$enable_tests" != "xyes"; then | ||
28 | + gtk_doc_use_libtool="no" | ||
29 | + build_tests="no" | ||
30 | +fi | ||
31 | + | ||
32 | AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL" -a x$gtk_doc_use_libtool = xyes ) | ||
33 | dnl this enable the rule in test/Makefile.am | ||
34 | AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xyes) | ||
diff --git a/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb b/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb index 7de36ae9e5..e0eb994e25 100644 --- a/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb +++ b/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb | |||
@@ -16,6 +16,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "api-documentation", | |||
16 | # hopefully no one minds because its scripts are not used for anything during build | 16 | # hopefully no one minds because its scripts are not used for anything during build |
17 | # and shouldn't be used on targets. | 17 | # and shouldn't be used on targets. |
18 | PACKAGECONFIG[working-scripts] = "--with-highlight=source-highlight,--with-highlight=no,libxslt-native xmlto-native source-highlight-native perl-native" | 18 | PACKAGECONFIG[working-scripts] = "--with-highlight=source-highlight,--with-highlight=no,libxslt-native xmlto-native source-highlight-native perl-native" |
19 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,glib-2.0" | ||
19 | 20 | ||
20 | # We cannot use host perl, because it may be too old for gtk-doc | 21 | # We cannot use host perl, because it may be too old for gtk-doc |
21 | EXTRANATIVEPATH += "perl-native" | 22 | EXTRANATIVEPATH += "perl-native" |
@@ -23,6 +24,7 @@ EXTRANATIVEPATH += "perl-native" | |||
23 | SRC_URI += "file://0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch \ | 24 | SRC_URI += "file://0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch \ |
24 | file://0001-Do-not-error-out-if-xsltproc-is-not-found.patch \ | 25 | file://0001-Do-not-error-out-if-xsltproc-is-not-found.patch \ |
25 | file://0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch \ | 26 | file://0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch \ |
27 | file://conditionaltests.patch \ | ||
26 | " | 28 | " |
27 | SRC_URI_append_class-native = " file://pkg-config-native.patch" | 29 | SRC_URI_append_class-native = " file://pkg-config-native.patch" |
28 | 30 | ||