diff mbox series

[3/3] binutils: Delete gdb and supporting sources

Message ID 20230115184358.2276696-3-raj.khem@gmail.com
State New
Headers show
Series [1/3] binutils: Upgrade to 2.40 release | expand

Commit Message

Khem Raj Jan. 15, 2023, 6:43 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/binutils/binutils.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Alejandro Hernandez Jan. 18, 2023, 8:47 a.m. UTC | #1
Hey Khem,

On Sun, 15 Jan 2023 at 11:44, Khem Raj <raj.khem@gmail.com> wrote:

> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-devtools/binutils/binutils.inc | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/meta/recipes-devtools/binutils/binutils.inc
> b/meta/recipes-devtools/binutils/binutils.inc
> index 98acf0a222..2b38aeb62d 100644
> --- a/meta/recipes-devtools/binutils/binutils.inc
> +++ b/meta/recipes-devtools/binutils/binutils.inc
> @@ -140,6 +140,16 @@ export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}"
>
>  MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes",
> "no", d)}"
>  do_configure[vardeps] += "MULTIARCH"
> +
> +addtask do_prepare_sources after do_patch before do_configure
> +
> +# Remove gdb and supporting source directories, they are detected by
> +# configure otherwise and demands additional gdb deps e.g. gmp, mpc, mpfr
> +do_prepare_sources () {
> +       rm -rf ${S}/gdb ${S}/gdbserver ${S}/gdbsupport ${S}/gnulib \
> +       ${S}/libbacktrace ${S}/libdecnumber ${S}/readline ${S}/sim
> +}
> +
>

This seems to have been fixed upstream, I wonder if its better to backport
that patch to 2.40 so it aligns properly with the --disable-gdb flag we are
passing:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=5fb0e308577143ceb313fde5538dc9ecb038f29f

Cheers,

Alejandro

>  do_configure () {
>         (cd ${S} && gnu-configize)
>
> --
> 2.39.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#175949):
> https://lists.openembedded.org/g/openembedded-core/message/175949
> Mute This Topic: https://lists.openembedded.org/mt/96291245/3619605
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alejandro@enedino.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Khem Raj Jan. 18, 2023, 9:13 a.m. UTC | #2
On Wed, Jan 18, 2023 at 12:47 AM Alejandro Hernandez <aehs29@gmail.com> wrote:
>
> Hey Khem,
>
> On Sun, 15 Jan 2023 at 11:44, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>>  meta/recipes-devtools/binutils/binutils.inc | 10 ++++++++++
>>  1 file changed, 10 insertions(+)
>>
>> diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
>> index 98acf0a222..2b38aeb62d 100644
>> --- a/meta/recipes-devtools/binutils/binutils.inc
>> +++ b/meta/recipes-devtools/binutils/binutils.inc
>> @@ -140,6 +140,16 @@ export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}"
>>
>>  MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}"
>>  do_configure[vardeps] += "MULTIARCH"
>> +
>> +addtask do_prepare_sources after do_patch before do_configure
>> +
>> +# Remove gdb and supporting source directories, they are detected by
>> +# configure otherwise and demands additional gdb deps e.g. gmp, mpc, mpfr
>> +do_prepare_sources () {
>> +       rm -rf ${S}/gdb ${S}/gdbserver ${S}/gdbsupport ${S}/gnulib \
>> +       ${S}/libbacktrace ${S}/libdecnumber ${S}/readline ${S}/sim
>> +}
>> +
>
>
> This seems to have been fixed upstream, I wonder if its better to backport that patch to 2.40 so it aligns properly with the --disable-gdb flag we are passing:
> https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=5fb0e308577143ceb313fde5538dc9ecb038f29f
>

Thanks yes its better to backport it, I will add it to v2.

> Cheers,
>
> Alejandro
>>
>>  do_configure () {
>>         (cd ${S} && gnu-configize)
>>
>> --
>> 2.39.0
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#175949): https://lists.openembedded.org/g/openembedded-core/message/175949
>> Mute This Topic: https://lists.openembedded.org/mt/96291245/3619605
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alejandro@enedino.org]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
Richard Purdie Jan. 18, 2023, 9:58 a.m. UTC | #3
On Wed, 2023-01-18 at 01:13 -0800, Khem Raj wrote:
> On Wed, Jan 18, 2023 at 12:47 AM Alejandro Hernandez <aehs29@gmail.com> wrote:
> > 
> > Hey Khem,
> > 
> > On Sun, 15 Jan 2023 at 11:44, Khem Raj <raj.khem@gmail.com> wrote:
> > > 
> > > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > > ---
> > >  meta/recipes-devtools/binutils/binutils.inc | 10 ++++++++++
> > >  1 file changed, 10 insertions(+)
> > > 
> > > diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
> > > index 98acf0a222..2b38aeb62d 100644
> > > --- a/meta/recipes-devtools/binutils/binutils.inc
> > > +++ b/meta/recipes-devtools/binutils/binutils.inc
> > > @@ -140,6 +140,16 @@ export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}"
> > > 
> > >  MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}"
> > >  do_configure[vardeps] += "MULTIARCH"
> > > +
> > > +addtask do_prepare_sources after do_patch before do_configure
> > > +
> > > +# Remove gdb and supporting source directories, they are detected by
> > > +# configure otherwise and demands additional gdb deps e.g. gmp, mpc, mpfr
> > > +do_prepare_sources () {
> > > +       rm -rf ${S}/gdb ${S}/gdbserver ${S}/gdbsupport ${S}/gnulib \
> > > +       ${S}/libbacktrace ${S}/libdecnumber ${S}/readline ${S}/sim
> > > +}
> > > +
> > 
> > 
> > This seems to have been fixed upstream, I wonder if its better to backport that patch to 2.40 so it aligns properly with the --disable-gdb flag we are passing:
> > https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=5fb0e308577143ceb313fde5538dc9ecb038f29f
> > 
> 
> Thanks yes its better to backport it, I will add it to v2.

I'm happier with that as I was worried how the other approach was going
to interact with the archiver and other code.

Thanks,

Richard
diff mbox series

Patch

diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 98acf0a222..2b38aeb62d 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -140,6 +140,16 @@  export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}"
 
 MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}"
 do_configure[vardeps] += "MULTIARCH"
+
+addtask do_prepare_sources after do_patch before do_configure
+
+# Remove gdb and supporting source directories, they are detected by
+# configure otherwise and demands additional gdb deps e.g. gmp, mpc, mpfr
+do_prepare_sources () {
+	rm -rf ${S}/gdb ${S}/gdbserver ${S}/gdbsupport ${S}/gnulib \
+	${S}/libbacktrace ${S}/libdecnumber ${S}/readline ${S}/sim
+}
+
 do_configure () {
 	(cd ${S} && gnu-configize)