default-distrovars: Enable minidebuginfo DISTRO_FEATURE by default
PATCH 1/1 default-distrovars: Enable minidebuginfo DISTRO_FEATURE by default
Enable the "minidebuginfo" DISTRO_FEATURE in builds so that all binaries have just enough debuginfo in them to get a useful stack trace.
This aids with debugging occasional failures that hit the autobuilder, at minimal cost. For example, core-image-sato with systemd:
core-image-sato: IMAGESIZE changed from 481532 to 486044 (+1%)
glibc: PKGSIZE changed from 3715743 to 3805871 (+2%)
sqlite3: PKGSIZE changed from 462840 to 469056 (+1%)
--- meta/conf/distro/include/default-distrovars.inc | 1 + 1 file changed, 1 insertion(+)
meta/conf/distro/include/default-distrovars.inc +1 -0
@@ -29,6 +29,7 @@ DISTRO_FEATURES_DEFAULTS ?= " \ acl alsa bluetooth debuginfod ext2 ipv4 ipv6 \ wifi xattr nfs zeroconf pci 3g nfc x11 vfat seccomp pulseaudio \ gobject-introspection-data ldconfig opengl ptest multiarch wayland vulkan \ + minidebuginfo \ " IMAGE_FEATURES ?= ""
Hi Richard,
Since default policies are generally used by derived distros, changing this default may have broader impacts. I wonder if the Yocto autobuilder issues you mentioned are commonly seen by OE users, as this change will embed symbols into binaries that some users may not expect.
Additionally, there are alternatives that people might have already deployed. I would suggest seeking user feedback before enabling this by default in OE-core.
Best regards,
Khem Raj
Quoted 42 lines · Richard Purdie via lists.openembedded.org
Enable the "minidebuginfo"
DISTRO_FEATUREin builds so that all binaries have just enough debuginfo in them to get a useful stack trace.This aids with debugging occasional failures that hit the autobuilder, at minimal cost. For example, core-image-sato with systemd:
core-image-sato: IMAGESIZE changed from 481532 to 486044 (+1%) glibc: PKGSIZE changed from 3715743 to 3805871 (+2%) sqlite3: PKGSIZE changed from 462840 to 469056 (+1%)[Idea taken from a poky patch from Ross Burton]Signed-off-by Richard Purdie <[email protected]>--- meta/conf/distro/include/default-distrovars.inc | 1 + 1 file changed, 1 insertion(+)meta/conf/distro/include/default-distrovars.inc +1
-1@@ -29,6 +29,7 @@ DISTRO_FEATURES_DEFAULTS ?= " \ acl alsa bluetooth debuginfod ext2 ipv4 ipv6 \ wifi xattr nfs zeroconf pci 3g nfc x11 vfat seccomp pulseaudio \ gobject-introspection-data ldconfig opengl ptest multiarch wayland vulkan \ + minidebuginfo \ " IMAGE_FEATURES ?= "" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group. View/Reply Online (#241840):
https://lists.openembedded.org/g/openembedded-core/message/241840
Mute This Topic: https://lists.openembedded.org/mt/120410504/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Khem,
Quoted 9 lines · Khem Raj
Since default policies are generally used by derived distros, changing this default may have broader impacts. I wonder if the Yocto autobuilder issues you mentioned are commonly seen by OE users, as this change will embed symbols into binaries that some users may not expect.
Additionally, there are alternatives that people might have already deployed. I would suggest seeking user feedback before enabling this by default in OE-core.
Our defaults tend to reflect developer usage rather than fully hardened and given that, I still would lean to make this the default, allowing easier debugging of issues. I suspect if you have issues with the debug symbols, you already set your own distro features...
The original proposal was to enable it in poky, however that would "fork" nodistro and poky sstate and I'm not sure we want to do that? We had decided to try and keep them more compatible for better sstate reuse and faster builds "out the box".
I'm open to opinions on what we should do if anyone else has opinions.
Cheers,
Richard