Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7DD1AE00D4F; Thu, 18 Apr 2019 01:00:14 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 788AAE00D4A for ; Thu, 18 Apr 2019 01:00:13 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x3I80ApX004631 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 18 Apr 2019 01:00:10 -0700 (PDT) Received: from msp-lpggp1.wrs.com (172.25.34.110) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.439.0; Thu, 18 Apr 2019 01:00:10 -0700 From: To: Date: Thu, 18 Apr 2019 04:00:04 -0400 Message-ID: <20190418080005.3325-1-kai.kang@windriver.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Cc: yocto@yoctoproject.org Subject: [meta-selinux][PATCH 0/1] Fix build errors when enable selinux and ptest X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2019 08:00:14 -0000 Content-Transfer-Encoding: 8bit Content-Type: text/plain From: Kai Kang Fix build errors when enable selinux and ptest: DISTRO_FEATURES_append = "" ERROR: busybox-1.30.1-r0 do_package: Error executing a python function in exec_python_func() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: *** 0002:ptest_update_alternatives(d) 0003: File: '/home/kkang/buildarea/wrlx-201902/repo/layers/oe-core/meta/classes/ptest.bbclass', lineno: 97, function: ptest_update_alternatives 0093: for alt_name, alt_link, alt_target, _ in alternatives: 0094: # Some alternatives are for man pages, 0095: # check if the alternative is in PATH 0096: if os.path.dirname(alt_link) in bin_paths: *** 0097: os.symlink(alt_target, os.path.join(ptest_bindir, alt_name)) 0098:} 0099: 0100:do_configure_ptest_base[dirs] = "${B}" 0101:do_compile_ptest_base[dirs] = "${B}" Exception: FileExistsError: [Errno 17] File exists: '/usr/lib64/busybox/bin/ash' -> '/home/kkang/buildarea/wrlx-201902/LIN1019-1104/tmp-glibc/ work/aarch64-wrs-linux/busybox/1.30.1-r0/package/usr/lib64/busybox/ptest/bin/ash' ERROR: busybox-1.30.1-r0 do_package: [Errno 17] File exists: '/usr/lib64/busybox/bin/ash' -> '/home/kkang/buildarea/wrlx-201902/LIN1019-1104/t mp-glibc/work/aarch64-wrs-linux/busybox/1.30.1-r0/package/usr/lib64/busybox/ptest/bin/ash' ERROR: busybox-1.30.1-r0 do_package: Function failed: ptest_update_alternatives ERROR: Logfile of failure stored in: /home/kkang/buildarea/wrlx-201902/LIN1019-1104/tmp-glibc/work/aarch64-wrs-linux/busybox/1.30.1-r0/temp/lo g.do_package.87140 ERROR: Task (/home/kkang/buildarea/wrlx-201902/repo/layers/oe-core/meta/recipes-core/busybox/busybox_1.30.1.bb:do_package) failed with exit co de '1' NOTE: Tasks Summary: Attempted 1775 tasks of which 1774 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/kkang/buildarea/wrlx-201902/repo/layers/oe-core/meta/recipes-core/busybox/busybox_1.30.1.bb:do_package Kai Kang (1): busybox: disable PTEST_BINDIR recipes-core/busybox/busybox_selinux.inc | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.0