From 74d9c5eb858bfe1dd16826b74be3af71bb1956d9 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Thu, 8 Sep 2016 14:49:24 +0300 Subject: gtk-doc: require perl-native only if api-documentation feature is enabled This should reduce build times. Signed-off-by: Alexander Kanavin --- ...r-out-if-perl-is-not-found-or-its-version.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch (limited to 'meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch') diff --git a/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch new file mode 100644 index 0000000000..4a9028742c --- /dev/null +++ b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-perl-is-not-found-or-its-version.patch @@ -0,0 +1,40 @@ +From e733241fb580f032efbbe684ec35d4c9d27f1595 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin +Date: Thu, 8 Sep 2016 13:38:39 +0300 +Subject: [PATCH] Do not error out if perl is not found or its version is too + old. + +This allows use to avoid depending on perl-native if we're not going +to use it (when api-docs are disabled). + +Upstream-Status: Inappropriate [oe-core specific] +Signed-off-by: Alexander Kanavin +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 2a61d6e..29415bd 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -36,7 +36,7 @@ dnl Check for Perl. + dnl + AC_PATH_PROG([PERL], [perl]) + if test -z "$PERL"; then +- AC_MSG_ERROR([perl not found]) ++ AC_MSG_WARN([perl not found]) + fi + + AC_MSG_CHECKING([if Perl version >= 5.18.0]) +@@ -44,7 +44,7 @@ if "$PERL" -e "require v5.18.0"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) +- AC_MSG_ERROR([perl >= 5.18.0 is required for gtk-doc]) ++ AC_MSG_WARN([perl >= 5.18.0 is required for gtk-doc]) + fi + + dnl +-- +2.9.3 + -- cgit 1.2.3-korg