loudmouth: fix autoconf errors
authorJo-Philipp Wich <redacted>
Wed, 18 Jan 2017 03:39:56 +0000 (04:39 +0100)
committerJo-Philipp Wich <redacted>
Wed, 18 Jan 2017 03:48:07 +0000 (04:48 +0100)
Do not override configure recipe and do not invoke upstream autogen.sh.
The shipped autogen.sh attempts to call "gtkdocize" which is no guaranteed
build prereq of LEDE or OpenWrt.

Also add a patch to disable the processing of documentation, tests and
examples as these resources rely on gtk-doc infrastructure which is not
available within LEDE or OpenWrt.

Example error for the bad autogen.sh invocation:

    ( cd .../loudmouth-1.5.3; ./autogen.sh )
    ./autogen.sh: 33: ./autogen.sh: gtkdocize: not found
    Makefile:73: recipe for target '.../.configured_yynyyyyn' failed

Example error for the lacking gtk-doc automake infrastructure:

    automake: error: cannot open < gtk-doc.make: No such file or directory
    autoreconf: .../host/bin/automake failed with exit status: 1
    [...]
    config.status: error: cannot find input file: `docs/reference/Makefile.in'
    Makefile:72: recipe for target '.../.configured_yynyn' failed

Signed-off-by: Jo-Philipp Wich <redacted>
libs/loudmouth/Makefile
libs/loudmouth/patches/900-disable-docs-examples-tests.patch [new file with mode: 0644]

index 1f062093d27cf39eae4c7ca61b3627e59343ef93..f8ad4df6c88ef31f8505ee259c51b5f234de8e5a 100644 (file)
@@ -43,11 +43,6 @@ endef
 CONFIGURE_ARGS += \
        --with-ssl=openssl
 
-define Build/Configure
-       ( cd $(PKG_BUILD_DIR); ./autogen.sh )
-       $(call Build/Configure/Default)
-endef
-
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/
        $(CP) \
diff --git a/libs/loudmouth/patches/900-disable-docs-examples-tests.patch b/libs/loudmouth/patches/900-disable-docs-examples-tests.patch
new file mode 100644 (file)
index 0000000..e2c91e6
--- /dev/null
@@ -0,0 +1,27 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,7 +1,7 @@
+ include $(top_srcdir)/build/Makefile.am.lm
+-SUBDIRS = loudmouth docs examples $(TEST_DIRS)
+-DIST_SUBDIRS = loudmouth docs examples tests
++SUBDIRS = loudmouth
++DIST_SUBDIRS = loudmouth
+ ACLOCAL_AMFLAGS = -I m4
+--- a/configure.ac
++++ b/configure.ac
+@@ -307,12 +307,7 @@ AC_SUBST(LOUDMOUTH_LIBS)
+ AC_OUTPUT([
+ Makefile
+-docs/Makefile
+-docs/reference/Makefile
+ loudmouth/Makefile
+-examples/Makefile
+-tests/Makefile
+-tests/parser-tests/Makefile
+ loudmouth-1.0.pc])
+ dnl ==========================================================================
git clone https://git.99rst.org/PROJECT