From patchwork Sun Sep 15 02:59:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173805 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2004619ilq; Sat, 14 Sep 2019 20:00:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAL7lBc0HCYjLENk+FJE7DnIHps+q4NyncTNl/S081rVAZ0dDcx0I75nHARAqvzQObl3Dk X-Received: by 2002:a63:c304:: with SMTP id c4mr18798007pgd.126.1568516424211; Sat, 14 Sep 2019 20:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568516424; cv=none; d=google.com; s=arc-20160816; b=j5B6B3S5zN/urxGlohZM7IYtPsa2MvurT7beWNn2fllPGfAvdN+oHtoo3nZIvmP5sy MSSwAuEc1TX0kzL4eqvu6s+ndIT/1Up6VO9Jsh8lHI4EAD63KjHW+2aUpHHndMLReW4t FEZOcITn3Y52x+qrlhWUgmxlzkBYxQjYjkha4/MYQ+FMil1Y1b2KF5otP/CtlaXBR6UF aiv4ix5UqcwwH65nb8CNXhQ02n202fj9zTsN83tUBnwEVktWpBIJ4PaBh2+dLpdJL5Jg z9Ttit9ALWkQKFiMXa59WswqygcMGDtEhkNPyuD82TdjqRbtclf+lrJMyNBdT9IxUOYY SJkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=8/sJnfd4qq+efDG0WAA4/L2Wddt5ANYXIVM3Hl339ms=; b=uKpcJLLWgJFL7IB1pKBKSpyXzf/FBr/lpOqWlqmnbukAI0hALQm6ySs5FU5FEleZkt sJyNBhPBJmdXQjVCK6FMaw0cxk3e4Zq9F63rd1PYP447U/ioLSTiz5nsbJp9re+KOrcP 58z0xzkCSz6HwmtfpUTwlrm7wzDcmaBHyvLFYb7lFktjqFX6ITy5mZP24BDtIUqaE6oZ c2DqAyRoFSIMivGzovnX+A9NBahLRfKUnatIJvSnDnjAjhmFbCF+5LoHqHrxm2pQg7p7 1y053CZLrMRvCo73aRCJmqPReT7Bp4r9qQsftZtXDZet9muHONjkgTNnq+PjFeVLswBL fj5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RRQLnTEe; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id k33si27906764pgi.563.2019.09.14.20.00.23; Sat, 14 Sep 2019 20:00:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RRQLnTEe; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2EABE7EC64; Sun, 15 Sep 2019 03:00:21 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mail.openembedded.org (Postfix) with ESMTP id 63A966D4B6 for ; Sun, 15 Sep 2019 02:59:29 +0000 (UTC) Received: by mail-pf1-f169.google.com with SMTP id b13so20336056pfo.8 for ; Sat, 14 Sep 2019 19:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IBsb8KGV3o1XPIeGQA3RA6oDUpxvPwZQ/XqELAEcHH4=; b=RRQLnTEe3RSivSYjwIUemxjsOSnGdr0BWb7Kv3J15uxMiBgICGuwFQsF1KeeqAgQlE yCGUmcJqA7Hi1Ff6wf9crwFNFLbAKz1/FwPeuv8l4/pF8BHsZu+4o+tiKYMt/WE1xf1p J3OZGYnku+qf7pMYabq3Ds5bTO/zXB8mC/MVLerYJXYib65h5lptW6YUaJ235pdrTnlM BZlRhdqFLCKtf/x+yzKQuyxJeX13d5rPBPT371Vj57Qvo7CLb0Cna/D3SeQGw2/DEDB6 8DHTfpRouXbtmZNVmMfUd03IOuLXnU+SMY3UTuTcAj+FfWV3NiBQVzZXmc2KpWJdTXBa TX/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IBsb8KGV3o1XPIeGQA3RA6oDUpxvPwZQ/XqELAEcHH4=; b=MWjOiiizlFBVT4ZLZ0viiAkc2FnUKnso62DqIZ6R5jHZtKKPwoycIyfkRqaqDyTxzq utQp5xU+gBIlkm3j3CGvoUJrWkmG7GhPiOGP9JxMUYCaZY/nJJLcX5wne+QPb+AUVG80 sgdg+s4B9/YBIE9dj8B+iQxy534zTPVf6xzAxsDJDH212WrG+udz6ZfPnzPX9gSKNsnL Nr6hg9+rQFR67O26ovp692H5Euj8Y89zhV0WcYQGXXytElcnqD5aVGfzDVcdo6YGRoaQ EEdaT3IuPgRNUVIPApJ0Hcul87uquT+DgTdDvdNNb/1sW0Lfc0zK+n3+Pck4QdME2phY I56Q== X-Gm-Message-State: APjAAAWuEXwYDPfcSFAl2ySWVudZQFFwiiBZad6N+Qb9f5MerhRE9gwI OS3G1TjeJntnNmYd7a4Rgnhnji2txCw= X-Received: by 2002:aa7:85d0:: with SMTP id z16mr62897pfn.206.1568516370027; Sat, 14 Sep 2019 19:59:30 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id 6sm54699668pfa.162.2019.09.14.19.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2019 19:59:29 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 14 Sep 2019 19:59:21 -0700 Message-Id: <20190915025922.3859296-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] glibc: Move DISTRO_FEATURE specific do_install code for target recipe only X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org nativesdk-glibc should be spared of recompile when the distro features are changed e.g. ldconfig is not in DISTRO_FEATURES, this happens when sdk with musl and another one with glibc is built Fixes Variable do_install value changed: ... -DISTRO_FEATURES{ldconfig} = Set +DISTRO_FEATURES{ldconfig} = Unset Signed-off-by: Khem Raj s --- meta/recipes-core/glibc/glibc-package.inc | 39 ++++++++++++----------- 1 file changed, 20 insertions(+), 19 deletions(-) -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc index 9b1e7b7903..2e8f9f3e02 100644 --- a/meta/recipes-core/glibc/glibc-package.inc +++ b/meta/recipes-core/glibc/glibc-package.inc @@ -83,14 +83,6 @@ do_install_append () { rm -f ${D}${infodir}/dir fi - if ! ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', 'true', 'false', d)}; then - # The distro doesn't want these files so let's not install them - rm -f ${D}${sysconfdir}/ld.so.conf - rm -f ${D}${base_sbindir}/ldconfig - # This directory will be empty now so remove it too. - rmdir ${D}${sysconfdir} - fi - install -d ${D}${sysconfdir}/init.d install -d ${D}${localstatedir}/db/nscd install -m 0755 ${S}/nscd/nscd.init ${D}${sysconfdir}/init.d/nscd @@ -102,6 +94,26 @@ do_install_append () { install -d ${D}${systemd_unitdir}/system install -m 0644 ${S}/nscd/nscd.service ${D}${systemd_unitdir}/system/ + # The dynamic loader will have been installed into + # ${base_libdir}. However, if that isn't going to end up being + # available in the ABI-mandated location, then a symlink must + # be created. + + if [ -n "${ARCH_DYNAMIC_LOADER}" -a ! -e "${D}${root_prefix}/lib/${ARCH_DYNAMIC_LOADER}" ]; then + install -d ${D}${root_prefix}/lib + ln -s ${@oe.path.relative('${root_prefix}/lib', '${base_libdir}')}/${ARCH_DYNAMIC_LOADER} \ + ${D}${root_prefix}/lib/${ARCH_DYNAMIC_LOADER} + fi +} + +do_install_append_class-target() { + if ! ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', 'true', 'false', d)}; then + # The distro doesn't want these files so let's not install them + rm -f ${D}${sysconfdir}/ld.so.conf + rm -f ${D}${base_sbindir}/ldconfig + # This directory will be empty now so remove it too. + rmdir ${D}${sysconfdir} + fi if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/tmpfiles.d echo "d /run/nscd 755 root root -" \ @@ -114,18 +126,7 @@ do_install_append () { > ${D}${sysconfdir}/default/volatiles/98_nscd fi - # The dynamic loader will have been installed into - # ${base_libdir}. However, if that isn't going to end up being - # available in the ABI-mandated location, then a symlink must - # be created. - - if [ -n "${ARCH_DYNAMIC_LOADER}" -a ! -e "${D}${root_prefix}/lib/${ARCH_DYNAMIC_LOADER}" ]; then - install -d ${D}${root_prefix}/lib - ln -s ${@oe.path.relative('${root_prefix}/lib', '${base_libdir}')}/${ARCH_DYNAMIC_LOADER} \ - ${D}${root_prefix}/lib/${ARCH_DYNAMIC_LOADER} - fi } - do_install_append_aarch64 () { do_install_armmultilib } From patchwork Sun Sep 15 02:59:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173804 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2004194ilq; Sat, 14 Sep 2019 19:59:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwH0TRm+1CZlbIl6GfAxya137Dcn1CFN6YbdpsJNTLLZbT2+3jONSeG0CA3fv1zAIa7Agw8 X-Received: by 2002:a63:fa13:: with SMTP id y19mr3669596pgh.262.1568516384052; Sat, 14 Sep 2019 19:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568516384; cv=none; d=google.com; s=arc-20160816; b=hqrJWQYFvF2pZm4Gl51DFuuAp99yXKUGjPuIsweGc659clKOrn2Sgcc6G+ukffExxO 8i+TiPJxrn/MksrFDSoALCnwqmCBYMT2GdBr/W9c3UigCfiG0M4DnYhIZJ/gCtjHJdl0 uFx+OFPWA+Lx/766zlE9COmpMEUvOh/YccBq4F9PwBIHIPhrleBY7jQ7rYpbr3EUJyva SeLasARUkarRYSnRBol/ALH1QJDNjru3K2aj9a4wVVbx2N5mAdQyDpztM26pVNKgr87f ktZ35JzCIXonqX9njPgeOFneSF931dZUCRdythg9OFfFH3NfWRjOw9+LX1xdbWWdjKLE EGRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=1fNlnCFQ/XzJ23Kw5fSAp+g9aCPA8krlrNfZLJuWA5c=; b=TtpF+hG8o5gz/25/EryGR8ghg5GwYHQhnHAxDHluRKyfEF7+xT/VovhHsap8DLZtAp sjBitfWGzOg6+XVDKghyUaOiCaStJjiOfXN3HEyJhapz1yoP7f591HaLu7ICV18AgPO0 Mb/kfjXzUJ++9uYtzURx2Z91Ul1sJUINhkeEgvNfXdcJFa51fKwJwsbwVpUvalr9Q9D5 /Z4agSwop07SawmZXl2r/dKYjvzavQgD2gg5EDiDjPpTnlYdGYqk2mBt4yG0CdxSiw9b 9L7OsJYRW8aKmUJNZIss0FuhJ5JCM9nrqVI+FVKe8mInrjXor33tG7mKKrf+GmMgxoJS vmxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=muwApwIH; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r10si29500325pgs.474.2019.09.14.19.59.42; Sat, 14 Sep 2019 19:59:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=muwApwIH; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7DF3E6D4B6; Sun, 15 Sep 2019 02:59:33 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id 1F4226D4B6 for ; Sun, 15 Sep 2019 02:59:29 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id 205so20363104pfw.2 for ; Sat, 14 Sep 2019 19:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f966UGdMbrIalZGi3rvBuQDjFONl0e0e46FUB+haXXE=; b=muwApwIHL5UVmOANe9fMFYEH2LOOiCOen1pz3GnmdbfpRMEKcVC2+iZahO0Dw4gBCn pxBulSueV3PBWxE0yaGXrNq1KctuRWD4662PD7lkHxXPdF3wJ3EpnGmZqfXC9Jy2PSWz hEz7u1efLL0n8jd0uOMpKWrwMe6zOGPELp/wUCw6a+EVBCF8J1SnH3obdEt2XZhNhKYQ hCTwar7DgyRGlLBl+EMJ1UbyKUqUKQGOG3HXzvlexTygiNznKKK1jHSgQMmxhdt4BGhv Ivhq5adAAm+pwq8FKjRY+27HbZcZ3K8qv/7BcdHx4leYnBWTUeYcIEw5Q/Bc5GdG1vTA ElJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f966UGdMbrIalZGi3rvBuQDjFONl0e0e46FUB+haXXE=; b=FLLmbgNCxMnesPjRJfcW36UP+PC7CMSz7eCuWEGpj7YvwreKqdSdjpLtq2+ICeBYVQ saUQdcABRtUDBhjBssBwQustXx6DxMYgYrl4RO0iGHonBoZydfQJFC+JnBLfbWsvBqG/ XE3VXVRRsFYvaUI1YkKOgzOfisOo0M8CjCo8LJjKBm09+unGYWziQ6mk0r6Gstxu1vqG QFYybTrxhKY5EEDqjA/Nm5hUNag9oJT9CctlFT1EsSY809Gld0xRBixBy2gW6khf4SBu +0P48P/ehlzbNO6FAsI1dcR+IGZKIyb8mpnKUlfgnpANf6PIhxZyQ6um7Z/fMHS56R6Q x3Wg== X-Gm-Message-State: APjAAAXIE57SZ3kBDb1RcTcY1RucMFinPwyFLhsBN2L1nd0FNnljh+PG TxL0c4KccTzjQheyTs/0P1mfsnM8xUI= X-Received: by 2002:a65:6152:: with SMTP id o18mr40834903pgv.279.1568516370650; Sat, 14 Sep 2019 19:59:30 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id 6sm54699668pfa.162.2019.09.14.19.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2019 19:59:30 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 14 Sep 2019 19:59:22 -0700 Message-Id: <20190915025922.3859296-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190915025922.3859296-1-raj.khem@gmail.com> References: <20190915025922.3859296-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] populate_sdk_base.bbclass: nativesdk-glibc-locale is required on musl too X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org musl based extensible sdk fails to install ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: Your system needs to support the en_US.UTF-8 locale. The real reason is that its missing locale-archive in buildtools-tarball hence python3 from buildtools-tarball fails to run bitbake when installing esdk Signed-off-by: Khem Raj --- meta/classes/populate_sdk_base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 59920a57a7..4e3794f75c 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass @@ -63,7 +63,7 @@ python () { SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" SDK_DEPENDS = "virtual/fakeroot-native ${SDK_ARCHIVE_DEPENDS} cross-localedef-native nativesdk-qemuwrapper-cross ${@' '.join(["%s-qemuwrapper-cross" % m for m in d.getVar("MULTILIB_VARIANTS").split()])} qemuwrapper-cross" PATH_prepend = "${STAGING_DIR_HOST}${SDKPATHNATIVE}${bindir}/crossscripts:${@":".join(all_multilib_tune_values(d, 'STAGING_BINDIR_CROSS').split())}:" -SDK_DEPENDS_append_libc-glibc = " nativesdk-glibc-locale" +SDK_DEPENDS += "nativesdk-glibc-locale" # We want the MULTIARCH_TARGET_SYS to point to the TUNE_PKGARCH, not PACKAGE_ARCH as it # could be set to the MACHINE_ARCH