gdb: use update-alternatives for sframe-spec.info
PATCH 1/2 gdb: use update-alternatives for sframe-spec.info
From: Wang Mingyu <[email protected]>
binutils also uses the doc 'sframe-spec.info'.
binutils has a priority of 100.
--- meta/recipes-devtools/gdb/gdb-common.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-devtools/gdb/gdb-common.inc +6 -0
@@ -53,6 +53,12 @@ do_configure () { # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the # right bits installed by binutils. Same for bfd.info -- also from binutils. +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "50" +ALTERNATIVE:${PN}-doc = "sframe-spec" +ALTERNATIVE_LINK_NAME[sframe-spec] = "${infodir}/sframe-spec.info" + do_install:append() { rm -rf ${D}${libdir} rm -rf ${D}${includedir}
Signature · 1 line
2.34.1
PATCH 2/2 binutils: use update-alternatives for sframe-spec.info
From: Wang Mingyu <[email protected]>
gdb also uses the doc 'sframe-spec.info'.
gdb has a priority of 50.
--- meta/recipes-devtools/binutils/binutils_2.40.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-devtools/binutils/binutils_2.40.bb +6 -0
@@ -34,6 +34,12 @@ EXTRA_OECONF:class-native = "--enable-targets=all \ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE:${PN}-doc = "sframe-spec" +ALTERNATIVE_LINK_NAME[sframe-spec] = "${infodir}/sframe-spec.info" + do_install:class-native () { autotools_do_install
Signature · 1 line
2.34.1
Quoted 6 lines · wangmy
From: Wang Mingyu <[email protected]>
binutils also uses the doc 'sframe-spec.info'.
binutils has a priority of 100.
I think binutils is right package to provide this info file. Please delete it in do_install of gdb. We do not need two copies.
Quoted 35 lines
Signed-off-by Wang Mingyu <[email protected]>--- meta/recipes-devtools/gdb/gdb-common.inc | 6 ++++++ 1 file changed, 6 insertions(+)meta/recipes-devtools/gdb/gdb-common.inc +6
-1@@ -53,6 +53,12 @@ do_configure () { # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the # right bits installed by binutils. Same for bfd.info -- also from binutils. +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "50" +ALTERNATIVE:${PN}-doc = "sframe-spec" +ALTERNATIVE_LINK_NAME[sframe-spec] = "${infodir}/sframe-spec.info" + do_install:append() { rm -rf ${D}${libdir} rm -rf ${D}${includedir} --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180272): https://lists.openembedded.org/g/openembedded-core/message/180272
Mute This Topic: https://lists.openembedded.org/mt/98405289/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-