From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-gx0-f175.google.com ([209.85.161.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RbsgV-0001W3-6c for openembedded-core@lists.openembedded.org; Sat, 17 Dec 2011 12:44:11 +0100 Received: by ggnh1 with SMTP id h1so3501659ggn.6 for ; Sat, 17 Dec 2011 03:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=1X2ogjL8R6298S/v1cBAqXMRb149MlCQFXGTQ1nbnbY=; b=DZqrwvFWe9iNJWQX9krnrhlw8mxvRKyjEZufVs4MJVCyPCCcSEHtuPjRkOYUOwKc1b ytcFILyy2XEJ4vkoeYqytCpDu/XiAHR8MlY+skDVbkFIiMZohM3+T6O4bcYR5VGQUvIh 5jdkiU5aNrOfAsQcIVaqDUs6LrjKOBIb3St4Q= Received: by 10.101.11.28 with SMTP id o28mr5315959ani.68.1324121827403; Sat, 17 Dec 2011 03:37:07 -0800 (PST) Received: from localhost.localdomain ([189.114.111.55]) by mx.google.com with ESMTPS id 5sm28482923anz.14.2011.12.17.03.37.04 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Dec 2011 03:37:06 -0800 (PST) Sender: Otavio Salvador From: Otavio Salvador To: openembedded-core@lists.openembedded.org Date: Sat, 17 Dec 2011 11:36:56 +0000 Message-Id: <20d7007632dde53f3a868e8374a45619319213c2.1324121807.git.otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: Subject: [PATCH 1/1] connman: disable 'alg-test' building X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2011 11:44:11 -0000 'alg-test' requires 'linux/if_alg.h' header enforcing a dependency on linux-libc-headers 2.6.39 or newer. Signed-off-by: Otavio Salvador --- meta/recipes-connectivity/connman/connman.inc | 8 --- .../connman/connman/disable_alg-test.patch | 46 ++++++++++++++++++++ meta/recipes-connectivity/connman/connman_0.78.bb | 3 +- 3 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 meta/recipes-connectivity/connman/connman/disable_alg-test.patch diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index bb1b279..d1bf7cd 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc @@ -49,14 +49,6 @@ USERADD_PARAM_${PN} = "--system --no-create-home \ inherit autotools pkgconfig update-rc.d useradd -# alg-test doesn't build, so disable that and test -# for if_alg.h as this header is only in 2.6.39 -do_configure_prepend() { - sed -i 's:tools/alg-test ::g' Makefile.am - sed -i 's:AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes,::g; - s:AC_MSG_ERROR(User-space algorithm header files are required))::g' configure.ac -} - do_compile_append() { sed -i -e s:deny:allow:g src/connman-dbus.conf } diff --git a/meta/recipes-connectivity/connman/connman/disable_alg-test.patch b/meta/recipes-connectivity/connman/connman/disable_alg-test.patch new file mode 100644 index 0000000..c231d75 --- /dev/null +++ b/meta/recipes-connectivity/connman/connman/disable_alg-test.patch @@ -0,0 +1,46 @@ +From b9a20c8eb61b600ced284646a1bea588fdd8a5ea Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Fri, 16 Dec 2011 19:31:59 -0200 +Subject: [PATCH] Disable building of alg-test + +alg-test utility depends on linux/if_alg.h header that is only +available on kernels >= 2.6.39. + +Upstream Status: Inappropriate [configuration] + +Signed-off-by: Otavio Salvador +--- + Makefile.am | 2 +- + configure.ac | 3 --- + 2 files changed, 1 insertions(+), 4 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index d5a76f9..d42a766 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -144,7 +144,7 @@ noinst_PROGRAMS += tools/wispr tools/supplicant-test \ + tools/dbus-test tools/polkit-test \ + tools/iptables-test tools/tap-test tools/wpad-test \ + tools/stats-tool tools/private-network-test \ +- tools/alg-test unit/test-session ++ unit/test-session + + tools_wispr_SOURCES = $(gweb_sources) tools/wispr.c + tools_wispr_LDADD = @GLIB_LIBS@ @GNUTLS_LIBS@ -lresolv +diff --git a/configure.ac b/configure.ac +index f63fea8..67bfe85 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -437,9 +437,6 @@ if (test "${enable_tools}" = "yes"); then + AC_MSG_ERROR(GnuTLS library is required)) + AC_SUBST(GNUTLS_CFLAGS) + AC_SUBST(GNUTLS_LIBS) +- +- AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes, +- AC_MSG_ERROR(User-space algorithm header files are required)) + fi + AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes") + +-- +1.7.7.3 + diff --git a/meta/recipes-connectivity/connman/connman_0.78.bb b/meta/recipes-connectivity/connman/connman_0.78.bb index 74c102b..c73cad9 100644 --- a/meta/recipes-connectivity/connman/connman_0.78.bb +++ b/meta/recipes-connectivity/connman/connman_0.78.bb @@ -1,11 +1,12 @@ require connman.inc -PR = "r5" +PR = "r6" # 0.78 tag SRCREV = "02f5d5fe2d7c71514a6387ba2b772b42d8e8d297" SRC_URI = "git://git.kernel.org/pub/scm/network/connman/connman.git \ file://add_xuser_dbus_permission.patch \ file://ethernet_default.patch \ + file://disable_alg-test.patch \ file://connman" S = "${WORKDIR}/git" -- 1.7.2.5