All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] layer.conf: Filter docs dependencies for efficiency
@ 2022-03-04 16:40 Richard Purdie
  2022-03-04 16:40 ` [PATCH 2/3] layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot Richard Purdie
  2022-03-04 16:40 ` [PATCH 3/3] python3: Reduce util-linux dependency to util-linux-libuuid Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Purdie @ 2022-03-04 16:40 UTC (permalink / raw)
  To: openembedded-core

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 <richard.purdie@linuxfoundation.org>
---
 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
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/3] layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot
  2022-03-04 16:40 [PATCH 1/3] layer.conf: Filter docs dependencies for efficiency Richard Purdie
@ 2022-03-04 16:40 ` Richard Purdie
  2022-03-04 16:40 ` [PATCH 3/3] python3: Reduce util-linux dependency to util-linux-libuuid Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2022-03-04 16:40 UTC (permalink / raw)
  To: openembedded-core

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 <richard.purdie@linuxfoundation.org>
---
 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
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 3/3] python3: Reduce util-linux dependency to util-linux-libuuid
  2022-03-04 16:40 [PATCH 1/3] layer.conf: Filter docs dependencies for efficiency Richard Purdie
  2022-03-04 16:40 ` [PATCH 2/3] layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot Richard Purdie
@ 2022-03-04 16:40 ` Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2022-03-04 16:40 UTC (permalink / raw)
  To: openembedded-core

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 <richard.purdie@linuxfoundation.org>
---
 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"
 
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-04 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 16:40 [PATCH 1/3] layer.conf: Filter docs dependencies for efficiency Richard Purdie
2022-03-04 16:40 ` [PATCH 2/3] layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot Richard Purdie
2022-03-04 16:40 ` [PATCH 3/3] python3: Reduce util-linux dependency to util-linux-libuuid Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.