From patchwork Fri Mar 4 16:40:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 4694 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 CB3E2C433EF for ; Fri, 4 Mar 2022 16:40:59 +0000 (UTC) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.groups.io with SMTP id smtpd.web09.643.1646412058724781539 for ; Fri, 04 Mar 2022 08:40:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=FovVMgeW; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.47, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f47.google.com with SMTP id az40-20020a05600c602800b00380f6f473b0so464871wmb.1 for ; Fri, 04 Mar 2022 08:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=riCmMHhk4M+WVAW0JtvxZN2dasO0v2A3qXwbKhyypsg=; b=FovVMgeWolfKzGhN1gJvzDAt/7RgxrD8FVi0BUHTAd3d9PELlB4SJRcgxTLm2uemQZ 1msEVciq2bS5v5wVVUzSyo9OeYioQlryQXjYuEBkaobXc8jFqSDFf9TP8+moe31doTTR u7DqCYFmW9v9lHJzVoSvm1Sf9l2UwHuJEybZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=riCmMHhk4M+WVAW0JtvxZN2dasO0v2A3qXwbKhyypsg=; b=cjK4wnFHe4zPsPnkx/MVPrxT302zn1Ha+pQq6mtTAWzB/guAQaZDYbQ5UP3GBqXTjm fSSZe2Fx9b+lHv/rXJAMEB7gBsfZgOpjNMjlRR3rLg4jrWGVHjPI7altnvuhTue/h6Ou h2RiKGx4hdLAdAKzQvMR7pjsHaJVuaPH83t4UREeKOb6VqujmWoInjgoA9lPVTuJ29Ji R6HM13veDM1lMYOgx0n4VDjcrf6TR1Rh7lj/FQaLBE7m5ptZGCyYu0LeDAoUx+pDFlnK p/XW8+e9fLT5gZBHytGYe3HwbUML3g/EdVSD1skQOLjtFUl1lUmOUpVEHfQ2Cyrt0wKc Zd+w== X-Gm-Message-State: AOAM533rEKTyODV5iEpnwUgPfbmroT+Om8CVIwkR6VFulAJfqcEENvTe CJRnLcWXH/8n0gbRFOHrZkGoa3YnvU2AYrhN X-Google-Smtp-Source: ABdhPJwkCCJGPRIDsjn/lEwqbzK78Sh+Kp26yVVLC65/vOz+6hE4uV1Ok8YFNkiBWJHuyNWzGXvJDQ== X-Received: by 2002:a05:600c:d2:b0:388:fd80:3b37 with SMTP id u18-20020a05600c00d200b00388fd803b37mr5899233wmm.144.1646412056864; Fri, 04 Mar 2022 08:40:56 -0800 (PST) Received: from hex.int.rpsys.net ([2001:8b0:aba:5f3c:f5cf:8b05:e0eb:94af]) by smtp.gmail.com with ESMTPSA id d8-20020a056000114800b001f045f3435asm6970536wrx.108.2022.03.04.08.40.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 08:40:56 -0800 (PST) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] layer.conf: Filter docs dependencies for efficiency Date: Fri, 4 Mar 2022 16:40:53 +0000 Message-Id: <20220304164055.379402-1-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 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 ; Fri, 04 Mar 2022 16:40:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162739 Where a recipe has depends on native docs tools, in most cases we don't need recipes that depend on that recipe to also install these things into the sysroot. We can rely on recipes wanting these tools to have direct dependencies instead. This massively reduced dependency creep in simple recipes (e.g. an allarch one) and reduced the size of builds with the api-documentation feature substancially. gperf-native is also included since that would normally have a direct dependency in a recipe which needs it too. Signed-off-by: Richard Purdie --- meta/conf/layer.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index bdeb8a47589..8f30de5f6b4 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf @@ -100,6 +100,10 @@ SSTATE_EXCLUDEDEPS_SYSROOT += "\ .*->patch-native \ .*->pkgconfig-native \ .*->quilt-native \ + .*->xmlto-native \ + .*->gperf-native \ + .*->gtk-doc-native \ + .*->texinfo-native \ " # Nothing needs to depend on libc-initial # base-passwd/shadow-sysroot don't need their dependencies From patchwork Fri Mar 4 16:40:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 4695 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 CBCA7C433FE for ; Fri, 4 Mar 2022 16:41:00 +0000 (UTC) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.groups.io with SMTP id smtpd.web10.576.1646412059546748817 for ; Fri, 04 Mar 2022 08:40:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=MuH24syH; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.49, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f49.google.com with SMTP id m42-20020a05600c3b2a00b00382ab337e14so6324478wms.3 for ; Fri, 04 Mar 2022 08:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=E5dEJgkMCsBVzFbShHdu+odMLn5QDii7Uf6jYIc6NBw=; b=MuH24syHCczAmg2sJWCdGAf95ucaLuMTOfwf/ZxargX0iv/Z0A9KFSVreirx5LPgmW 95OAqJ4A1MwoBtvESTf+c8WkiMG9a8QLf8g7MSu6BTOLEyiuJYGOzwMsf43xrLKpKC2J uJX2Si4c5nISa38k7VC3/jag1W1gPiT7yMktM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E5dEJgkMCsBVzFbShHdu+odMLn5QDii7Uf6jYIc6NBw=; b=by99sQd09gWAM+c96t5FFxBcK4Z0erDFG0r7ZFdyZFR/ohUesE6QDN9NIB7GokIsoY 4b+kTKPcnsOnmnN2e7ToaXyoE6ecW24L1/uxfid7+NqjfwxBuA3wi5ytqVZ0QtYheGDL njlZHJWGC/ImTOpeFItGzVo2qPCSO94Fw+ER5cPHqIzyRBMJxxa6krWPcW3yFCYkqNtQ jxHGZ2kzNI+28qV8I1aldzKatHVJAd+8weLeE2CW4agvFr7dm57RaOyZg9MT+y7GsflM 3z1h5fKrVa3ndGyTm523V9ezvvplBM7gj23434MyZPPd6s5pkMBp63onY+MrdxxC/jci 7wiQ== X-Gm-Message-State: AOAM532GDtlvy3QWQ3DfPr3JHFF55iwBS8TmLuX2e23ewdihBN4GvDhl xLuClgBGMj6XBZXucqNFdTyUUyEjUVMYsNVK X-Google-Smtp-Source: ABdhPJxvGiAz5Cjh07tuOHJdQOcGyKZ5alvH6VuY3duJJpHR/zIeZg1vTzjAnk6ixqB/B5KyNLLSdw== X-Received: by 2002:a05:600c:2250:b0:383:bab2:9df5 with SMTP id a16-20020a05600c225000b00383bab29df5mr8442519wmm.162.1646412057866; Fri, 04 Mar 2022 08:40:57 -0800 (PST) Received: from hex.int.rpsys.net ([2001:8b0:aba:5f3c:f5cf:8b05:e0eb:94af]) by smtp.gmail.com with ESMTPSA id d8-20020a056000114800b001f045f3435asm6970536wrx.108.2022.03.04.08.40.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 08:40:57 -0800 (PST) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot Date: Fri, 4 Mar 2022 16:40:54 +0000 Message-Id: <20220304164055.379402-2-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220304164055.379402-1-richard.purdie@linuxfoundation.org> References: <20220304164055.379402-1-richard.purdie@linuxfoundation.org> 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 ; Fri, 04 Mar 2022 16:41:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162740 Currently, libarchive-native pulls e2fsprogs and all it's dependencies into the sysroot. Since only headers are needed at buildtime and there is no runtime dependency, we can avoid this and shrink the native sysroots. Signed-off-by: Richard Purdie --- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 8f30de5f6b4..3eda0b0ded9 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf @@ -91,6 +91,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ # (e.g. X -> Y -> binutils-cross -> bison-native) no longer meet the # dependency incidentally. This improves determinism and avoids build # failures when people switch to external toolchains. +# libarchive only needs e2fsprogs headers at buildtime SSTATE_EXCLUDEDEPS_SYSROOT += "\ .*->autoconf-native \ .*->automake-native \ @@ -104,6 +105,7 @@ SSTATE_EXCLUDEDEPS_SYSROOT += "\ .*->gperf-native \ .*->gtk-doc-native \ .*->texinfo-native \ + libarchive-native->e2fsprogs-native \ " # Nothing needs to depend on libc-initial # base-passwd/shadow-sysroot don't need their dependencies From patchwork Fri Mar 4 16:40:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 4696 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 CA778C433EF for ; Fri, 4 Mar 2022 16:41:01 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.web10.579.1646412061069731830 for ; Fri, 04 Mar 2022 08:41:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Vdsic+mN; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.42, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f42.google.com with SMTP id k24so4052509wrd.7 for ; Fri, 04 Mar 2022 08:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Ylm/Jo5m6AQtgSlDpvyNB+VzyGiucFClLUV224gDXNM=; b=Vdsic+mN4UQYiwPlvTleZF7ypG4LNMtIr3Ew6aOiVEjpyTVVjnMcSvbUuPz3s1EOEE PdaEGi1GiNUiHlyiHmtiMB31e5/iJJ80AslWCd1Z6YgPu9mLcN4wyfeD6Ohg2lfQ2de4 BhQr5Cxs3MtIPpRQz66/FsVAsrMCk3rJXb/o0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ylm/Jo5m6AQtgSlDpvyNB+VzyGiucFClLUV224gDXNM=; b=KfMAoeWEpuOaui6y/Erqt+pc3hO+H3VcMPT/OKysmZLiJVY1NG/MWijR4mSdfpkmuh qsp3V+bpHT8hXbdSnQnErl4tz+7Krveqve2qmmm+rSaGhw/PFFRtYKPwEuK//Yt12ES/ caogP9AKQttM1VhNTBP5JUaePl1bG2/RbLPZ9DoXQ8IrRKSIAKDFUSRmhpJeEVUKx4O6 GWuT9n47DEQr0bpUDG3eoc+H/wQygtOkveqiyJvH1JaAQIlNNUpvXe21xzHpq+0+w1m6 ZYRns5G09FYwuqjH/kkHlbiUTtCs1OZS4UFrVIdGdINqc3cL57BsfdjczGxz8XC1Z6L0 /XVw== X-Gm-Message-State: AOAM532tYdCGVxAh7qi8qvfue3N3enkN3sR61rC5XQP3MwNVMNDIOF03 5ZlC0lwStRZ+6NxWJaX2mZ5oprUK9yd/NIUy X-Google-Smtp-Source: ABdhPJx+k03b1yf6W3tLgQEW9/ZEgbG80UI9iAHrrN/Ao2nll2M0PARRiJ8Pk96TTx3o5AvVcWxEvw== X-Received: by 2002:a5d:68cd:0:b0:1f0:771f:82a with SMTP id p13-20020a5d68cd000000b001f0771f082amr2929748wrw.613.1646412059208; Fri, 04 Mar 2022 08:40:59 -0800 (PST) Received: from hex.int.rpsys.net ([2001:8b0:aba:5f3c:f5cf:8b05:e0eb:94af]) by smtp.gmail.com with ESMTPSA id d8-20020a056000114800b001f045f3435asm6970536wrx.108.2022.03.04.08.40.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 08:40:58 -0800 (PST) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] python3: Reduce util-linux dependency to util-linux-libuuid Date: Fri, 4 Mar 2022 16:40:55 +0000 Message-Id: <20220304164055.379402-3-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220304164055.379402-1-richard.purdie@linuxfoundation.org> References: <20220304164055.379402-1-richard.purdie@linuxfoundation.org> 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 ; Fri, 04 Mar 2022 16:41:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162741 Only libuuid is needed by python so reduce the dependency and hence reduce the amount pulled into the syroot for the native case in particular. Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python3_3.10.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3_3.10.2.bb b/meta/recipes-devtools/python/python3_3.10.2.bb index e61b23c6a9b..32da2a12c8d 100644 --- a/meta/recipes-devtools/python/python3_3.10.2.bb +++ b/meta/recipes-devtools/python/python3_3.10.2.bb @@ -71,7 +71,7 @@ ALTERNATIVE_LINK_NAME[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config ALTERNATIVE_TARGET[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}" -DEPENDS = "bzip2-replacement-native libffi bzip2 openssl sqlite3 zlib virtual/libintl xz virtual/crypt util-linux libtirpc libnsl2 autoconf-archive-native" +DEPENDS = "bzip2-replacement-native libffi bzip2 openssl sqlite3 zlib virtual/libintl xz virtual/crypt util-linux-libuuid libtirpc libnsl2 autoconf-archive-native" DEPENDS:append:class-target = " python3-native" DEPENDS:append:class-nativesdk = " python3-native"