layer.conf: Filter docs dependencies for efficiency
PATCH 1/3 layer.conf: Filter docs dependencies for efficiency
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.
--- meta/conf/layer.conf | 4 ++++ 1 file changed, 4 insertions(+)
meta/conf/layer.conf +4 -0
@@ -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
Signature · 1 line
2.32.0
PATCH 2/3 layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot
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.
--- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+)
meta/conf/layer.conf +2 -0
@@ -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
Signature · 1 line
2.32.0
PATCH 3/3 python3: Reduce util-linux dependency to util-linux-libuuid
In reply to Richard PurdieOnly libuuid is needed by python so reduce the dependency and hence reduce the amount pulled into the syroot for the native case in particular.
--- meta/recipes-devtools/python/python3_3.10.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3_3.10.2.bb +1 -1
@@ -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"
Signature · 1 line
2.32.0