From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: John Keeping <john@metanate.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [RFC PATCH] package/libiberty: use the same version as binutils
Date: Wed, 23 Feb 2022 15:27:31 +0100 [thread overview]
Message-ID: <20220223142731.GA189337@scaer> (raw)
In-Reply-To: <20220223115506.1191031-1-john@metanate.com>
John, All,
On 2022-02-23 11:55 +0000, John Keeping spake thusly:
> libiberty is built from the binutils source but this package has
> languished on version 2.32 while the binutils package now uses 2.36.1 by
> default.
>
> Even between the 2.32 version and GDB 10.2 which is the default (and
> where host-libiberty is used instead of a version bundled in the GDB
> source) there are memory leak fixes and several improvements to
> demangling.
>
> Update the libiberty package to simply use the same version as binutils
> so that there is no need to remember to update this package in the
> future. Replace the .hash file with a symlink so that the binutils
> hashes are used automatically.
>
> Signed-off-by: John Keeping <john@metanate.com>
> ---
> I'm not sure if this is this is the best way to improve the situation
> here - it's the smallest change to get something a bit more modern (in
> most circumstances), but I wonder if libiberty should use the GDB source
> instead as that's the one package we know both bundles libiberty source
> and will use host-libiberty in preference.
>
> package/libiberty/libiberty.hash | 6 +-----
> package/libiberty/libiberty.mk | 4 ++--
> 2 files changed, 3 insertions(+), 7 deletions(-)
> mode change 100644 => 120000 package/libiberty/libiberty.hash
>
> diff --git a/package/libiberty/libiberty.hash b/package/libiberty/libiberty.hash
> deleted file mode 100644
> index 0dafcea520..0000000000
> --- a/package/libiberty/libiberty.hash
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -# From ftp://gcc.gnu.org/pub/binutils/releases/sha512.sum
> -sha512 d326408f12a03d9a61a9de56584c2af12f81c2e50d2d7e835d51565df8314df01575724afa1e43bd0db45cfc9916b41519b67dfce03232aa4978704492a6994a binutils-2.32.tar.xz
> -
> -# Locally computed, same as binutils.hash
> -sha256 56bdea73b6145ef6ac5259b3da390b981d840c24cb03b8e1cbc678de7ecfa18d COPYING.LIB
> diff --git a/package/libiberty/libiberty.hash b/package/libiberty/libiberty.hash
> new file mode 120000
> index 0000000000..e0655d3af3
> --- /dev/null
> +++ b/package/libiberty/libiberty.hash
> @@ -0,0 +1 @@
> +../binutils/binutils.hash
> \ No newline at end of file
> diff --git a/package/libiberty/libiberty.mk b/package/libiberty/libiberty.mk
> index 6235a8b956..d0847bf298 100644
> --- a/package/libiberty/libiberty.mk
> +++ b/package/libiberty/libiberty.mk
> @@ -4,8 +4,8 @@
> #
> ################################################################################
>
> -LIBIBERTY_VERSION = 2.32
> -LIBIBERTY_SOURCE = binutils-$(LIBIBERTY_VERSION).tar.xz
> +LIBIBERTY_VERSION = $(BINUTILS_VERSION)
> +LIBIBERTY_SOURCE = $(BINUTILS_SOURCE)
Although this works, this is by pure chance: binutils is included before
libiberty, so BINUTILS_VERSION is defined. But we try and avoid such a
situation, unless we explicitly guarantee the include ordering (eg. gcc,
fftw, util-linux, or previously, qt5).
Instead, in such a case, we prefer that the version strin is duplicated,
and a comment added above to note that both shoujld be updated in sync.
See for example bluez5_utils and bluez5_utils-headers, mesa3d and
mesa3d-headers.
Regards,
Yann E. MORIN.
> LIBIBERTY_SITE = $(BR2_GNU_MIRROR)/binutils
> HOST_LIBIBERTY_DL_SUBDIR = binutils
>
> --
> 2.35.1
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-02-23 14:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-23 11:55 [Buildroot] [RFC PATCH] package/libiberty: use the same version as binutils John Keeping
2022-02-23 14:27 ` Yann E. MORIN [this message]
2022-02-23 14:51 ` Thomas Petazzoni via buildroot
2022-02-23 15:17 ` Yann E. MORIN
2022-02-23 16:39 ` John Keeping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220223142731.GA189337@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=john@metanate.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox