From patchwork Sun Oct 11 21:24:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 528809 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id A3A731402A1 for ; Mon, 12 Oct 2015 08:24:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DA3CC8A180; Sun, 11 Oct 2015 21:24:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W0ylRA7YxHi3; Sun, 11 Oct 2015 21:24:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7E94389383; Sun, 11 Oct 2015 21:24:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BFCE71C1064 for ; Sun, 11 Oct 2015 21:24:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B75D18DD1D for ; Sun, 11 Oct 2015 21:24:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2PTrCnyDn0-U for ; Sun, 11 Oct 2015 21:24:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by whitealder.osuosl.org (Postfix) with ESMTPS id D16CC8C9D9 for ; Sun, 11 Oct 2015 21:24:48 +0000 (UTC) Received: from linux.local ([94.216.56.123]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M6874-1aUokh3Stm-00yAHp for ; Sun, 11 Oct 2015 23:24:45 +0200 From: Peter Seiderer To: buildroot@busybox.net Date: Sun, 11 Oct 2015 23:24:43 +0200 Message-Id: <1444598683-12269-2-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444598683-12269-1-git-send-email-ps.report@gmx.net> References: <1444598683-12269-1-git-send-email-ps.report@gmx.net> X-Provags-ID: V03:K0:OcV+LK9GT+1+uqy3n15BMOk8BG+fWPuij5kdvZWIXXOJomdQwZE s6L+H+Gu9XjsHBPAf9D/D7/FK4HmYhzDHAYWVgO67Kek0Iaf0u4r1d/qKAoQwD3YMQnm/Mo P/9KP/+XBeC1Lr1WknxjjDEBFekt0TkV9hffqU2XqOtJ+SaMq/vdbBZbCNiyid/slJ/FDHQ te3a1tWP2zS9dS/JEBvpw== X-UI-Out-Filterresults: notjunk:1; V01:K0:S6IrhQFC7Y0=:iQn6Wh23fqZTua/srpmL8r SNUFOwTuOr3Ddhta/WIq8866+F+FLbLD/T2poY6XvGI419+B9XIbSyivAe47td/6Cihn1i/K+ CHMUHE1hayYx9iWqqADZwKTochPsz3bPcZS/lHzAcYkwLq+A/myELzIWRpEtkfJOg8aKUJuRb U+9ayzTKwbUrCuxVY8e3FZP+yrj70JkGZyhKwmFaABmw9l6nNETmeCvwBb6dtkLNUg/C5jONX IA/dvRPasXj5ImnMUzYCjX8G9BVYp44htEt+oDGu8LJdsCm5VFRwwEqxu6XlOfiXQDjqEDkpa tPpeTR3NfHezMXy+AYYyOkA1BPiPhGOPmAt3X4BSP+ScsbqFRNSMWOdqUgQmrYVUcr4NL1NRu Sgoi7qsanApGHGtdj0/34tdY9pRHx6bBWYuvYhMWDaAVuesPT5Rs8xqWEWG8PsebJlgFsWuie uAESHgPHuigUu2pHl5laJ695QZ3Pb8Wf+tVbuuGLSq/q6oa56X89Luq2kPrvO6+GbDrE99Z6L M39/z7i8Y3KC6SwSoO+fZ1rj4+G7Wvz70CHQIXq3aOJE7cCI9Z6dz6AhhTNpzU9VaflfcdH5w oPC0RuIMRmvgvM/z5tlouDvAJVbzmDi3SOkSRVsqRyS0QW/xdrU2kckRapHgAarPFxqTUHiHm t0IyFCAumf8jQdTGscwpsCemp6PG6Og1QLSd/qss18+BWm0SnDnHYhiI8+N3Vq113oiHJ8Qdt 90nRc1gW8BYcXnZ/sqS9ngYx/Kzkxi5M+lX4M4C8fWO5s0suhyhRGOd51uQ= Subject: [Buildroot] [PATCH v1 2/2] libevdev: disable runtime tests X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add new configure option '--disable-runtime-tests' and use it do disable runtime tests which fail to compile on some uclibc configurations. Fixes [1], [2]: test-libevdev-init.c: In function 'test_set_clock_id': test-libevdev-init.c:493: error: 'CLOCK_MONOTONIC_RAW' undeclared (first use in this function) and compile failure for !BR2_USE_MMU configuration: test-main.c:(.text+0x8): undefined reference to `_fork' [1] http://autobuild.buildroot.net/results/0d0/0d0a987471ce8e9f76fc96e0ae8f0bfeadb45028/ [2] http://autobuild.buildroot.net/results/939/9392033f1b8d2c8e4e8791c90918dabbe28a7067/ Signed-off-by: Peter Seiderer --- ...onfigure-add-disable-runtime-tests-option.patch | 44 ++++++++++++++++++++++ package/libevdev/libevdev.mk | 5 +++ 2 files changed, 49 insertions(+) create mode 100644 package/libevdev/0001-configure-add-disable-runtime-tests-option.patch diff --git a/package/libevdev/0001-configure-add-disable-runtime-tests-option.patch b/package/libevdev/0001-configure-add-disable-runtime-tests-option.patch new file mode 100644 index 0000000..f4a8100 --- /dev/null +++ b/package/libevdev/0001-configure-add-disable-runtime-tests-option.patch @@ -0,0 +1,44 @@ +From 0e7e71ab1b5b457b5c566cc3b0beeff795f183d1 Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Sun, 11 Oct 2015 13:33:19 +0200 +Subject: [PATCH] configure: add '--disable-runtime-tests' option + +Signed-off-by: Peter Seiderer +--- + configure.ac | 13 +++++++++++-- + 1 file changed, 11 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 54a2510..f285e93 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -74,7 +74,16 @@ else + AC_MSG_WARN([check not found - skipping building unit tests]) + fi + AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"]) +-AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"]) ++AC_ARG_ENABLE([runtime-tests], ++ AS_HELP_STRING([--disable-runtime-tests], [Disable runtime tests])) ++AS_IF([test "x$enable_runtime_tests" != "xno"], ++ [enable_runtime_tests=yes], ++ [enable_runtime_tests=no]) ++ ++AC_MSG_RESULT([ ++ BLA ${enable_runtime_tests} ++ ]) ++AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x${enable_runtime_tests}x$HAVE_CHECK" = "xyesxyes"]) + AM_CONDITIONAL(ENABLE_STATIC_LINK_TEST, [test "x$enable_static" = "xyes"]) + + with_cflags="" +@@ -159,7 +168,7 @@ AC_MSG_RESULT([ + Libdir ${libdir} + + Build documentation ${have_doxygen} +- Enable unit-tests ${HAVE_CHECK} ++ Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests}) + Enable profiling ${enable_gcov} + Static library symbol check ${static_symbol_leaks_test} + ]) +-- +2.1.4 + diff --git a/package/libevdev/libevdev.mk b/package/libevdev/libevdev.mk index d9a2be6..97d8a92 100644 --- a/package/libevdev/libevdev.mk +++ b/package/libevdev/libevdev.mk @@ -10,9 +10,14 @@ LIBEVDEV_SOURCE = libevdev-$(LIBEVDEV_VERSION).tar.xz LIBEVDEV_LICENSE = X11 LIBEVDEV_LICENSE_FILES = COPYING +# patch touches configure.ac +LIBEVDEV_AUTORECONF = YES + # Uses PKG_CHECK_MODULES() in configure.ac LIBEVDEV_DEPENDENCIES = host-pkgconf LIBEVDEV_INSTALL_STAGING = YES +LIBEVDEV_CONF_OPTS += --disable-runtime-tests + $(eval $(autotools-package))