* [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info
@ 2023-04-21 6:06 wangmy
2023-04-21 6:06 ` [OE-core] [PATCH 2/2] binutils: " wangmy
2023-04-21 6:19 ` [OE-core] [PATCH 1/2] gdb: " Khem Raj
0 siblings, 2 replies; 3+ messages in thread
From: wangmy @ 2023-04-21 6:06 UTC (permalink / raw)
To: openembedded-core; +Cc: Wang Mingyu
From: Wang Mingyu <wangmy@fujitsu.com>
binutils also uses the doc 'sframe-spec.info'.
binutils has a priority of 100.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
meta/recipes-devtools/gdb/gdb-common.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 925b0c2f80..338d1650d2 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [OE-core] [PATCH 2/2] binutils: use update-alternatives for sframe-spec.info
2023-04-21 6:06 [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info wangmy
@ 2023-04-21 6:06 ` wangmy
2023-04-21 6:19 ` [OE-core] [PATCH 1/2] gdb: " Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: wangmy @ 2023-04-21 6:06 UTC (permalink / raw)
To: openembedded-core; +Cc: Wang Mingyu
From: Wang Mingyu <wangmy@fujitsu.com>
gdb also uses the doc 'sframe-spec.info'.
gdb has a priority of 50.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
meta/recipes-devtools/binutils/binutils_2.40.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/binutils/binutils_2.40.bb b/meta/recipes-devtools/binutils/binutils_2.40.bb
index 9087af87c5..1f67b0549d 100644
--- a/meta/recipes-devtools/binutils/binutils_2.40.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.40.bb
@@ -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
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info
2023-04-21 6:06 [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info wangmy
2023-04-21 6:06 ` [OE-core] [PATCH 2/2] binutils: " wangmy
@ 2023-04-21 6:19 ` Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2023-04-21 6:19 UTC (permalink / raw)
To: wangmy; +Cc: openembedded-core
On Thu, Apr 20, 2023 at 11:06 PM wangmy <wangmy@fujitsu.com> wrote:
>
> From: Wang Mingyu <wangmy@fujitsu.com>
>
> 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.
>
> Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> ---
> meta/recipes-devtools/gdb/gdb-common.inc | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
> index 925b0c2f80..338d1650d2 100644
> --- a/meta/recipes-devtools/gdb/gdb-common.inc
> +++ b/meta/recipes-devtools/gdb/gdb-common.inc
> @@ -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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-21 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 6:06 [OE-core] [PATCH 1/2] gdb: use update-alternatives for sframe-spec.info wangmy
2023-04-21 6:06 ` [OE-core] [PATCH 2/2] binutils: " wangmy
2023-04-21 6:19 ` [OE-core] [PATCH 1/2] gdb: " Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox