From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 8E3647717F for ; Thu, 12 Nov 2015 10:44:24 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id tACAiNX4018678 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 12 Nov 2015 02:44:24 -0800 (PST) Received: from pek-kkang-d2.wrs.com (128.224.163.135) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.248.2; Thu, 12 Nov 2015 02:44:23 -0800 From: To: Date: Thu, 12 Nov 2015 18:44:19 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [PATCH 0/6] waf-samba: fix build failure on targets unsupported by qemu X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 10:44:24 -0000 Content-Type: text/plain From: Jackie Huang Comments: samba and required packages started to use waf build system since 4.x, and the waf bbclass use qemu user mode to help configure checking by default, but not all targets are supported by qemu user mode, so it definitely fail on those targets (it failed on our fsl_t2xxx and cav-octeon3). The solution here it so use waf cross-answer mode to avoid using qemu, but we need to prepare the cross-answers, it's easy and error-prone if we try to get these cross-answers manually, but fortunately, waf provides another mode to help generate them in newer version, so upgrade related packages and backport patches for samba (I also tried to upgrad samba to 4.3.1, but it still doesn't work in my runtime testing after some bug fixing, so I keep in the current version for now, I may upgrade it sometime later if I get better understand about the new version). Build tested on: intel-x86-64 qemux86 qemuarm qemuarma9 qemuarm64 qemumips qemumips64 fsl-ls20xx fsl-t2xxx xilinx-zynq cav-octeon3 -- The following changes since commit 721a2cabf352085d34dd14c22e71914d3429ca59: ntp: upgrade 4.2.8p3 -> 4.2.8p4 (2015-11-11 12:12:08 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib.git jhuang0/d-samba_answer_cross_151112-2 http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d-samba_answer_cross_151112-2 Jackie Huang (6): libtevent: upgrade to 0.9.25 talloc: upgrade to 2.1.3 libldb: upgrade to 1.1.21 libtdb: upgrade to 1.3.7 samba: backport patches for cross-compiling waf-samba.bbclass: add cross-answers option and files meta-oe/classes/waf-samba.bbclass | 43 +++++- meta-oe/conf/layer.conf | 1 + meta-oe/files/waf-cross-answers/README | 3 + .../waf-cross-answers/cross-answers-aarch64.txt | 38 +++++ .../files/waf-cross-answers/cross-answers-arm.txt | 39 +++++ .../files/waf-cross-answers/cross-answers-i586.txt | 39 +++++ .../files/waf-cross-answers/cross-answers-mips.txt | 39 +++++ .../waf-cross-answers/cross-answers-mips64.txt | 38 +++++ .../waf-cross-answers/cross-answers-powerpc.txt | 39 +++++ .../waf-cross-answers/cross-answers-powerpc64.txt | 39 +++++ .../waf-cross-answers/cross-answers-x86_64.txt | 38 +++++ ...1-waf-sanitize-and-fix-added-cross-answer.patch | 60 ++++++++ ...-Adds-a-new-mode-to-samba-cross-compiling.patch | 112 ++++++++++++++ ...-readability-of-cross-answers-generated-b.patch | 66 ++++++++ ...wafsamba-CHECK_SIZEOF-cross-compile-frien.patch | 72 +++++++++ .../0005-build-unify-and-fix-endian-tests.patch | 169 +++++++++++++++++++++ ...006-avoid-using-colon-in-the-checking-msg.patch | 32 ++++ ...sing-of-cross-answers-file-in-case-answer.patch | 36 +++++ meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 7 + .../libldb/{libldb_1.1.17.bb => libldb_1.1.21.bb} | 4 +- .../libtdb/{libtdb_1.3.0.bb => libtdb_1.3.7.bb} | 4 +- .../{libtevent_0.9.21.bb => libtevent_0.9.25.bb} | 4 +- .../talloc/{talloc_2.1.1.bb => talloc_2.1.3.bb} | 12 +- 23 files changed, 921 insertions(+), 13 deletions(-) create mode 100644 meta-oe/files/waf-cross-answers/README create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-aarch64.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-arm.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-i586.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-mips.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-mips64.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-powerpc.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-powerpc64.txt create mode 100644 meta-oe/files/waf-cross-answers/cross-answers-x86_64.txt create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0001-waf-sanitize-and-fix-added-cross-answer.patch create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0002-Adds-a-new-mode-to-samba-cross-compiling.patch create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0003-waf-improve-readability-of-cross-answers-generated-b.patch create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0004-build-make-wafsamba-CHECK_SIZEOF-cross-compile-frien.patch create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0005-build-unify-and-fix-endian-tests.patch create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0006-avoid-using-colon-in-the-checking-msg.patch create mode 100644 meta-oe/recipes-connectivity/samba/samba-4.1.12/0007-waf-Fix-parsing-of-cross-answers-file-in-case-answer.patch rename meta-oe/recipes-support/libldb/{libldb_1.1.17.bb => libldb_1.1.21.bb} (92%) rename meta-oe/recipes-support/libtdb/{libtdb_1.3.0.bb => libtdb_1.3.7.bb} (87%) rename meta-oe/recipes-support/libtevent/{libtevent_0.9.21.bb => libtevent_0.9.25.bb} (86%) rename meta-oe/recipes-support/talloc/{talloc_2.1.1.bb => talloc_2.1.3.bb} (80%) -- 1.9.1