debugedit: fix build failure when enabling DEBUG_BUILD
PATCH v2 1/1 debugedit: fix build failure when enabling DEBUG_BUILD
From: Chen Qi <[email protected]>
When DEBUG_BUILD is enabled, we use "-Og" gcc options. In such case, the xxhash functions are considered not inline, yet debugedit.c defined XXH_INLINE_ALL to force inline, thus causing build failure.
Backport a patch which add "--disable-inlined-xxhash" option and make debugedit use that option when DEBUG_BUILD is enabled.
The 0003-Makefile.am-do-not-update-manual.patch is moved from musl specific patch to SRC_URI, because we now have a patch to modify debugedit.c and this will cause manual to be generated again. This is unnecessary and will report help2man missing.
--- .../debugedit/debugedit_5.1.bb | 6 +- ...on-to-allow-disabling-inlined-xxhash.patch | 81 +++++++++++++++++++ 2 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-devtools/debugedit/files/0001-Add-option-to-allow-disabling-inlined-xxhash.patch
meta/recipes-devtools/debugedit/debugedit_5.1.bb +3 -3
@@ -10,9 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ file://COPYING3;md5=d32239bcb673463ab874e80d47fae504" SRC_URI = "https://sourceware.org/ftp/debugedit/${PV}/debugedit-${PV}.tar.xz \ - " - -SRC_URI:append:libc-musl = "\ + file://0001-Add-option-to-allow-disabling-inlined-xxhash.patch \ file://0003-Makefile.am-do-not-update-manual.patch \ "
@@ -25,6 +23,8 @@ inherit pkgconfig autotools multilib_script RDEPENDS:${PN} += "bash elfutils-binutils" +EXTRA_OECONF = "${@oe.utils.vartrue('DEBUG_BUILD', '--disable-inlined-xxhash', '', d)}" + BBCLASSEXTEND = "native nativesdk" MULTILIB_SCRIPTS = "${PN}:${bindir}/find-debuginfo"
meta/recipes-devtools/debugedit/files/0001-Add-option-to-allow-disabling-inlined-xxhash.patch new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 1 line · Chen Qi via lists.openembedded.org
+Upstream-Status: Backport [
820498e881401a6f4b1715dc6831da965f6e1d69]
This doesn't say where the commit can be found. It's better to point to the git web ui:
https://sourceware.org/cgit/debugedit/commit/?id=820498e881401a6f4b1715dc6831da965f6e1d69
Alex
Got it. I'll send out V3.
Regards,
Qi
-----Original Message-----
From: Alexander Kanavin <[email protected]>
Sent: Thursday, February 20, 2025 6:28 PM
To: Chen, Qi <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core][PATCH V2] debugedit: fix build failure when enabling DEBUG_BUILD
Quoted 1 line · Chen Qi via lists.openembedded.org
+Upstream-Status: Backport [
820498e881401a6f4b1715dc6831da965f6e1d69]
This doesn't say where the commit can be found. It's better to point to the git web ui:
https://sourceware.org/cgit/debugedit/commit/?id=820498e881401a6f4b1715dc6831da965f6e1d69
Alex