From patchwork Wed Apr 17 11:30:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasyl Vavrychuk X-Patchwork-Id: 42609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1F55C4345F for ; Wed, 17 Apr 2024 11:32:12 +0000 (UTC) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by mx.groups.io with SMTP id smtpd.web10.10467.1713353524982436299 for ; Wed, 17 Apr 2024 04:32:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Eq7hGm6J; spf=pass (domain: gmail.com, ip: 209.85.218.52, mailfrom: vvavrychuk@gmail.com) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a5269c3f9c7so408837566b.2 for ; Wed, 17 Apr 2024 04:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713353523; x=1713958323; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H25OSKlW0R4RIO7T97PCUoyzD2O6Sbij+MxYY/q3VfA=; b=Eq7hGm6JkINX+jug5z+U36UqOyUcxfiCEX9Wrg8fvxmoYzyHTadxhw4Yvcv1vi7zfq om6U6UGckvrp1rIu3m6jJWlV/HPJiS2PhYoXuaiY+kPwhsHRVEqRcGSuFOv+UyqXnLmP UYfdb8la7XIOehAtjG+jO3leeX84UvZTX+XIQfANOoWviztwO/NvIxeF/tB7uttHULrY ED28Exyect/b2co3nsHRaNjrmxgdOx65W+kmPifs0fZFpfyvlJgpF+XvYtgkTliILJZx 7L9Y9hFBIdVAL0z0uFRJGyydsQ8mo/TGCs7KClxZxhOjMlVn2rOSxsJ+5GlmDMfQOS3Q 1ntA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713353523; x=1713958323; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H25OSKlW0R4RIO7T97PCUoyzD2O6Sbij+MxYY/q3VfA=; b=D9QT0KkIzIgw1dt+7JjYbVzAqvtYyrnjrV9xxnR9wNciN17F5xIwClBzPaKZtishGb jcE+FPkkcVmWGv+6hfIyRNnsIeROqT2tgHxmqmNtmydkRfqWgVtR4UPSV/zuvdUMz1cu SlhTKNZSDv3yzB9MqUWNQF7eL4rNINGCXJ/crYFtuBhvouoLqqpVEQUvL6+RHQ9Dnhjn 4Itx+neXBYIhnfhS1hR9wgv17Ii46TdM0va4bvhrpO6CD0rU0Ke646i5D0WiaU652FF7 h6B0+RmH7ZbFBe+POyIysYOJCqXWRJfwt/RSsUfXRGQKE9zmjr3/rkY3g60N6iqgnflY Sy9g== X-Forwarded-Encrypted: i=1; AJvYcCVUJ8afIyS41VHVQrPmYokjKjyTFAGcO7CblSn0BPyGgz7LOgnVQlzTnfmZVeQ1hM2PIwgP33S0u0PIm6rVDcgwOeZfpB8vPvc1zZgO7kmG X-Gm-Message-State: AOJu0Yz1IMEyaTWjfuz/FYO1S7UUO+NQTuv3Ed1/itNeo3MjHJMF/w4C w6887q7JVkqaJSMFqIr6awc5KcP7q9WbiQgzYizbJhixSxxj9iNm X-Google-Smtp-Source: AGHT+IGGNBQ8oC3BFdjZBURWHyfBeFu7aKyfjQ55UXT7uz9jGrd5pNuNfpsIIz3RbKh0BrtB7ACkLQ== X-Received: by 2002:a17:906:6a1d:b0:a52:527a:63fa with SMTP id qw29-20020a1709066a1d00b00a52527a63famr9229683ejc.33.1713353522960; Wed, 17 Apr 2024 04:32:02 -0700 (PDT) Received: from LWO1-LHP-A10856.synapse.com ([213.130.23.14]) by smtp.gmail.com with ESMTPSA id re3-20020a170906d8c300b00a5559f0f9dcsm623127ejb.79.2024.04.17.04.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 04:32:02 -0700 (PDT) From: Vasyl Vavrychuk To: Ross Burton , Denys Dmytriyenko , meta-arm@lists.yoctoproject.org Cc: Vasyl Vavrychuk Subject: [PATCH 1/3] external-arm-toolchain: wrap base_libdir vs libdir manipulations under usrmerge check Date: Wed, 17 Apr 2024 14:30:40 +0300 Message-Id: <20240417113042.91880-2-vvavrychuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417113042.91880-1-vvavrychuk@gmail.com> References: <20240417113042.91880-1-vvavrychuk@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 17 Apr 2024 11:32:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5557 With `usrmerge` disto feature `base_libdir` and `libdir` are the same, so it does not make sense to: * removing "duplicates" between them * move files from `base_libdir` to `libdir` This fixes build error | mv: '.../tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/external-arm-toolchain/12.2.Rel1/image/usr/lib/libasan.a' and '.../tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/external-arm-toolchain/12.2.Rel1/image/usr/lib/libasan.a' are the same file in case of `usrmerge` feature enabled. Signed-off-by: Vasyl Vavrychuk Acked-by: Denys Dmytriyenko --- .../external-arm-toolchain.bb | 62 ++++++++++--------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb index fab17611..27aadffd 100644 --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb @@ -135,37 +135,39 @@ do_install() { ln -sf ../../lib/libm.so.6 ${D}${libdir}/libm.so ln -sf ../../lib/libc_malloc_debug.so.0 ${D}${libdir}/libc_malloc_debug.so - # remove potential .so duplicates from base_libdir - # for all symlinks created above in libdir - rm -f ${D}${base_libdir}/librt.so - rm -f ${D}${base_libdir}/libcrypt.so - rm -f ${D}${base_libdir}/libresolv.so - rm -f ${D}${base_libdir}/libnss_hesiod.so - rm -f ${D}${base_libdir}/libutil.so - rm -f ${D}${base_libdir}/libBrokenLocale.so - rm -f ${D}${base_libdir}/libpthread.so - rm -f ${D}${base_libdir}/libthread_db.so - rm -f ${D}${base_libdir}/libanl.so - rm -f ${D}${base_libdir}/libdl.so - rm -f ${D}${base_libdir}/libnss_db.so - rm -f ${D}${base_libdir}/libnss_dns.so - rm -f ${D}${base_libdir}/libnss_files.so - rm -f ${D}${base_libdir}/libnss_compat.so - rm -f ${D}${base_libdir}/libm.so - - # Move these completely to ${libdir} and delete duplicates in ${base_libdir} - for lib in asan hwasan atomic gfortran gomp itm lsan sanitizer stdc++ tsan ubsan; do - if [ -e ${D}${base_libdir}/lib${lib}.spec ] ; then - mv ${D}${base_libdir}/lib${lib}.spec ${D}${libdir} - fi - if [ -e ${D}${base_libdir}/lib${lib}.a ] ; then - mv ${D}${base_libdir}/lib${lib}.a ${D}${libdir} - fi - rm -f ${D}${base_libdir}/lib${lib}* - done + if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'false', 'true', d)}; then + # remove potential .so duplicates from base_libdir + # for all symlinks created above in libdir + rm -f ${D}${base_libdir}/librt.so + rm -f ${D}${base_libdir}/libcrypt.so + rm -f ${D}${base_libdir}/libresolv.so + rm -f ${D}${base_libdir}/libnss_hesiod.so + rm -f ${D}${base_libdir}/libutil.so + rm -f ${D}${base_libdir}/libBrokenLocale.so + rm -f ${D}${base_libdir}/libpthread.so + rm -f ${D}${base_libdir}/libthread_db.so + rm -f ${D}${base_libdir}/libanl.so + rm -f ${D}${base_libdir}/libdl.so + rm -f ${D}${base_libdir}/libnss_db.so + rm -f ${D}${base_libdir}/libnss_dns.so + rm -f ${D}${base_libdir}/libnss_files.so + rm -f ${D}${base_libdir}/libnss_compat.so + rm -f ${D}${base_libdir}/libm.so + + # Move these completely to ${libdir} and delete duplicates in ${base_libdir} + for lib in asan hwasan atomic gfortran gomp itm lsan sanitizer stdc++ tsan ubsan; do + if [ -e ${D}${base_libdir}/lib${lib}.spec ] ; then + mv ${D}${base_libdir}/lib${lib}.spec ${D}${libdir} + fi + if [ -e ${D}${base_libdir}/lib${lib}.a ] ; then + mv ${D}${base_libdir}/lib${lib}.a ${D}${libdir} + fi + rm -f ${D}${base_libdir}/lib${lib}* + done - # Clean up duplicate libs that are both in base_libdir and libdir - rm -f ${D}${libdir}/libgcc* + # Clean up duplicate libs that are both in base_libdir and libdir + rm -f ${D}${libdir}/libgcc* + fi # Besides ld-${EAT_VER_LIBC}.so, other libs can have duplicates like lib*-${EAT_VER_LIBC}.so # Only remove them if both are regular files and are identical From patchwork Wed Apr 17 11:30:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasyl Vavrychuk X-Patchwork-Id: 42610 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B85BDC001CC for ; Wed, 17 Apr 2024 11:32:12 +0000 (UTC) Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by mx.groups.io with SMTP id smtpd.web10.10468.1713353526754897327 for ; Wed, 17 Apr 2024 04:32:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gXuYF+G9; spf=pass (domain: gmail.com, ip: 209.85.218.44, mailfrom: vvavrychuk@gmail.com) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a554afec54eso164397366b.1 for ; Wed, 17 Apr 2024 04:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713353525; x=1713958325; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0s1BnHmrKllgphjPNZtA+G088CnlmXOqAK5axkMkF0U=; b=gXuYF+G9q2BbC5G9sMTptf2+piVicJeZ0Iv+GU3Q7vejJXAbIfMuTcERiZRW8GkPRB 8C9x7q04treqrpNshP2OFqK0ivNgigWRNcQ+TBpsofZK67WlqtNzPGl6jY+5Rhj36PJe ggoZA89jBXhaAVbiVZelqH20bjIlxQiIPlZDh0aVEwXfCRk2TmJ+IM8+tByP3I4Q63R1 dQjoOf5470o0TM7ouGYNaAGGTni5RZTr4nI1rpnFTqLp42i46MpA1KgTq0TWQ9sHt4cg zUL3V3/4tfGKBKJNWPe+vrJRanP/RcTiBc2002Uu6MhSqls5fCLNYUi3xe6YmFSF9x0x B+kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713353525; x=1713958325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0s1BnHmrKllgphjPNZtA+G088CnlmXOqAK5axkMkF0U=; b=g7vMwh9Rlrn+VbRvkCDXARUO+ZOc1dwU6uPqJ2Dxv03JxMjCNpjGXFHkzZ1j66+LJ3 vOnaZyrKE9r4Wid7/Z0KAu90JdfVto6KqQPjvzsdiAq2BzCgonhBi/wtDps665hnsftM uvzBHuTG28Oc/7pYHGsAmQ9AZnKOTrNWoKsnuqqHK5PrwjKV3iAZgZWrc9OzVMyYawN+ 723X5vx/gkTO87LEfh2Y7RgNk5/7FgUXuVVRNOAif87aNSgUfve1yn7JOSxDWh7biMi+ wBPFy1xhwU7tWsQyXdZBneWdHsLoLVS8JLzSV5qvI2GUUugYDcaW/qNjPl/eXNEbnFsn HmRw== X-Forwarded-Encrypted: i=1; AJvYcCXbPUIh1O/xCfadRkxTn2Be4mi7UZOqUG8wJ0tJGhe107brF9aSatVU/MHFmdO498K7RRTAfAOzMKqrspYv6QTcud47mEm0fbdC+/LEK4sk X-Gm-Message-State: AOJu0Yz59aKVDoTzlIDBypGKofql9m+ng9OOPd7uivFBTTk55BvXtjPG RwGOuvC58NcNFiYboi/ZraKOcXh3nRSU28X3lnJXCqdQ0T/QyMLM X-Google-Smtp-Source: AGHT+IGe9X7CfCUObhCezmQeytlPNlT36R8qbQYX823xy9KP1MciLI2dKUBoX6Xh+/iQefoWaK/EcA== X-Received: by 2002:a17:906:a28a:b0:a52:4795:511c with SMTP id i10-20020a170906a28a00b00a524795511cmr6385913ejz.34.1713353524856; Wed, 17 Apr 2024 04:32:04 -0700 (PDT) Received: from LWO1-LHP-A10856.synapse.com ([213.130.23.14]) by smtp.gmail.com with ESMTPSA id re3-20020a170906d8c300b00a5559f0f9dcsm623127ejb.79.2024.04.17.04.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 04:32:03 -0700 (PDT) From: Vasyl Vavrychuk To: Ross Burton , Denys Dmytriyenko , meta-arm@lists.yoctoproject.org Cc: Vasyl Vavrychuk Subject: [PATCH 2/3] external-arm-toolchain: in libc.so GNU ld script use base_libdir Date: Wed, 17 Apr 2024 14:30:41 +0300 Message-Id: <20240417113042.91880-3-vvavrychuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417113042.91880-1-vvavrychuk@gmail.com> References: <20240417113042.91880-1-vvavrychuk@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 17 Apr 2024 11:32:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5558 `base_libdir` gets replaced with `/lib` or `/usr/lib` depending on `usrmerge` distro feature. Signed-off-by: Vasyl Vavrychuk --- .../external-arm-toolchain/external-arm-toolchain.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb index 27aadffd..ab608128 100644 --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb @@ -207,9 +207,9 @@ do_install() { rm -rf ${D}${includedir}/rpcsvc/rquota.* if [ -f ${D}${libdir}/libc.so ];then - sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../${EAT_LIBDIR}#g" -e "s# /usr/${EAT_LIBDIR}/# /usr/lib/#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" -e "s# /${EAT_LIBDIR}/ld-linux# ../../${EAT_LIBDIR}/ld-linux#g" ${D}${libdir}/libc.so + sed -i -e "s# /${EAT_LIBDIR}/${EAT_TARGET_SYS}# ../../${EAT_LIBDIR}#g" -e "s# /usr/${EAT_LIBDIR}/# /usr/lib/#g" -e "s# /usr/${EAT_LIBDIR}/${EAT_TARGET_SYS}# .#g" -e "s# /${EAT_LIBDIR}/ld-linux# ../../${base_libdir}/ld-linux#g" ${D}${libdir}/libc.so sed -i -e "s# /${EAT_LIBDIR}/libc.so.6# /lib/libc.so.6#g" ${D}${libdir}/libc.so - sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so + sed -i -e "s# /lib# ../../${base_libdir}#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so fi if [ -f ${D}${base_libdir}/libc.so ];then From patchwork Wed Apr 17 11:30:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasyl Vavrychuk X-Patchwork-Id: 42611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DCADC4345F for ; Wed, 17 Apr 2024 11:32:22 +0000 (UTC) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mx.groups.io with SMTP id smtpd.web10.10469.1713353528048330523 for ; Wed, 17 Apr 2024 04:32:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=giSnFbY1; spf=pass (domain: gmail.com, ip: 209.85.218.48, mailfrom: vvavrychuk@gmail.com) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a4702457ccbso682541366b.3 for ; Wed, 17 Apr 2024 04:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713353526; x=1713958326; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M1eAJt/LARM+zuJMYSE7aQc3GI7L7iFs1JUy6c0hrhk=; b=giSnFbY1OPi/5liqB3C9J2qvP4ILgooiPhvi6Fl8BlVayRc8x77NGrcpWdD4NED8aL ZScxwpoUftmrZE4K/1hL22Vmhr6Oh3f94UZg9K8n/4TntKH2BNJEm4k6Le0RSTNk4GpV paBkN75bEhIG+Ut842DISxmXWYQfItxBkxBq37a1+ylenPAkGM2C7qtKyq9QI9kyhivf zQ65TZGD8pIN+kBFJdl+fDP9hMQYIv6gX0x9fJD93kXwLU9pYlmcKahRFW2+dHv4WJbz QT9OjzEU25OmZXHR4+WwkkE4gULfaNG9Tk3aFSVi2irdLnp6CuAaIRoffD6H2TGx4ey0 CdpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713353526; x=1713958326; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M1eAJt/LARM+zuJMYSE7aQc3GI7L7iFs1JUy6c0hrhk=; b=RHf+NIi48J9vj3MeIFdre4705JTTotOVjd4QfpnRFt1aAcUmjMwH7mFb37QxeNx+sg HCcBikoUl34US6FQKAxdM96/tcJJaYNqmAaBwpmtoVcXk550PJZ2LoO5JuxRfEe2GU0z AQh09S+dSuNUOYwro5x4Bk+8s+ya3SFPs/AEluI1JRbABwmfzTEN4ePuqn1SE0KziPvm WU3VSmk1ytD8BUJ1BibsMFde1yN14O2CQiHFivP0oV8y/SogqVXgWkfEWPQqP/pwVPA7 YIToVQCmcRSokghu0UZAUSEDW1aDa2EF2IAXK8WhGWD6KBcb7I6DV780mgOqXLO8Lai6 J8pg== X-Forwarded-Encrypted: i=1; AJvYcCWIZ7vWxSAAb4HYYkOaOigSIias24VF5/xYvZNCt2ky7gftwKX8h/pGQo7GtjtpLhehmXXXhGOAdCYjwo1nKnZfWLyPl2duUIuKAzQwzIFl X-Gm-Message-State: AOJu0YweEmgUy3UsPfBd51c/XHCunW22sIVe5aLHyabtukxJGOoejw/6 T2Xtt5EK54Tqq4/he6HJWuOAMiK77oxyR75ytc+1LkuSVbck2FrO X-Google-Smtp-Source: AGHT+IFEjrRqGbb/4tChoKVOwQ+GbrVaUZoyqqUIde+8LC93LuYDvjWMCjl7WTIjY0XaftH/O5lWgw== X-Received: by 2002:a17:907:6e8c:b0:a4e:3fad:b973 with SMTP id sh12-20020a1709076e8c00b00a4e3fadb973mr12290021ejc.65.1713353526106; Wed, 17 Apr 2024 04:32:06 -0700 (PDT) Received: from LWO1-LHP-A10856.synapse.com ([213.130.23.14]) by smtp.gmail.com with ESMTPSA id re3-20020a170906d8c300b00a5559f0f9dcsm623127ejb.79.2024.04.17.04.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 04:32:05 -0700 (PDT) From: Vasyl Vavrychuk To: Ross Burton , Denys Dmytriyenko , meta-arm@lists.yoctoproject.org Cc: Vasyl Vavrychuk Subject: [PATCH 3/3] external-arm-toolchain: remove ${base_libdir}/libpthread*.so from FILES:${PN} Date: Wed, 17 Apr 2024 14:30:42 +0300 Message-Id: <20240417113042.91880-4-vvavrychuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417113042.91880-1-vvavrychuk@gmail.com> References: <20240417113042.91880-1-vvavrychuk@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 17 Apr 2024 11:32:22 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/5559 When `usrmerge` distro feature is not enabled, then `${base_libdir}` resolves to `/lib` and `/lib/libpthread*.so` does not match any files. But, with `usrmerge` distro feature, `${base_libdir}` is `/usr/lib`, so removed line leads to `/usr/lib/libpthread.so` symlink included in `${PN}` which causes QA check failure. Signed-off-by: Vasyl Vavrychuk Acked-by: Denys Dmytriyenko --- .../external-arm-toolchain/external-arm-toolchain.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb index ab608128..f0955b29 100644 --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb @@ -528,7 +528,6 @@ FILES:${PN} += "\ ${base_libdir}/ld*.so.* \ ${base_libdir}/ld-*.so \ ${base_libdir}/libpthread*.so.* \ - ${base_libdir}/libpthread*.so \ ${base_libdir}/libpthread-*.so \ ${base_libdir}/libresolv*.so.* \ ${base_libdir}/libresolv-*.so \