diff options
author | Harish Sadineni <Harish.Sadineni@windriver.com> | 2025-08-12 23:52:07 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-08-26 06:33:14 -0700 |
commit | 5d2bdb56f8c516993cf5fd20325fc4b4d2773426 (patch) | |
tree | 20507ad2ba1bf7f69ad4e824cb2f82e23c6b3d1a | |
parent | 62d813527d468c1a09860721fc139e750b2adca3 (diff) | |
download | poky-5d2bdb56f8c516993cf5fd20325fc4b4d2773426.tar.gz |
binutils: Fix gprofng broken symbolic link with gp-*
In binutils 2.44, application names were changed from the gp- prefix
(e.g., gp-display-text, gp-archive) to the gprofng- prefix
(e.g., gprofng-display-text, gprofng-archive). Temporary gp-*
symlinks were added to maintain compatibility with the older
gprofng-gui.
However, these compatibility symlinks did not support cross-platform
toolchain prefixes, which resulted in broken gp-* symbolic links.
Support for cross-platform prefixes are added upstream in binutils 2.45,
so this change backports that fix to resolve broken symlinks issue.
Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=90803ffdcc4d8c3d17566bf8dccadbad312f07a9]
(From OE-Core rev: 55684a63904365d8a6ab2a8ce9e091f29b0b7df5)
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.44.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.44.inc b/meta/recipes-devtools/binutils/binutils-2.44.inc index 32928ee167..26c2a413b8 100644 --- a/meta/recipes-devtools/binutils/binutils-2.44.inc +++ b/meta/recipes-devtools/binutils/binutils-2.44.inc | |||
@@ -45,5 +45,6 @@ SRC_URI = "\ | |||
45 | file://0018-CVE-2025-5245.patch \ | 45 | file://0018-CVE-2025-5245.patch \ |
46 | file://0019-CVE-2025-7545.patch \ | 46 | file://0019-CVE-2025-7545.patch \ |
47 | file://0018-CVE-2025-7546.patch \ | 47 | file://0018-CVE-2025-7546.patch \ |
48 | file://0020-Fix-for-borken-symlinks.patch \ | ||
48 | " | 49 | " |
49 | S = "${WORKDIR}/git" | 50 | S = "${WORKDIR}/git" |
diff --git a/meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch b/meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch new file mode 100644 index 0000000000..b26cf8a83a --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | From 90803ffdcc4d8c3d17566bf8dccadbad312f07a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Zheng Junjie <zhengjunjie@iscas.ac.cn> | ||
3 | Date: Mon, 10 Feb 2025 17:04:55 +0800 | ||
4 | Subject: [PATCH] gprofng: Fix cross-compilation binary name. | ||
5 | |||
6 | commit d25ba4596e85da6d8af78c88b5917e14763afbe1 create symbolic link | ||
7 | no care cross-compilation prefix. | ||
8 | |||
9 | (cherry picked from commit:90803ffdcc4d8c3d17566bf8dccadbad312f07a9) | ||
10 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=90803ffdcc4d8c3d17566bf8dccadbad312f07a9] | ||
11 | |||
12 | Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> | ||
13 | --- | ||
14 | gprofng/src/Makefile.am | 12 +++++------- | ||
15 | gprofng/src/Makefile.in | 12 +++++------- | ||
16 | 2 files changed, 10 insertions(+), 14 deletions(-) | ||
17 | |||
18 | diff --git a/gprofng/src/Makefile.am b/gprofng/src/Makefile.am | ||
19 | index a132a9ddb05..0465cdb06e3 100644 | ||
20 | --- a/gprofng/src/Makefile.am | ||
21 | +++ b/gprofng/src/Makefile.am | ||
22 | @@ -179,10 +179,8 @@ $(srcdir)/DbeSession.cc: QLParser.tab.hh | ||
23 | .PHONY: install-exec-local | ||
24 | install-exec-local: | ||
25 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
26 | - rm -f $(DESTDIR)$(bindir)/gp-{archive,collect-app,display-html,display-src,display-text} | ||
27 | - ln -s gprofng-archive $(DESTDIR)$(bindir)/gp-archive | ||
28 | - ln -s gprofng-collect-app $(DESTDIR)$(bindir)/gp-collect-app | ||
29 | - ln -s gprofng-display-html $(DESTDIR)$(bindir)/gp-display-html | ||
30 | - ln -s gprofng-display-src $(DESTDIR)$(bindir)/gp-display-src | ||
31 | - ln -s gprofng-display-text $(DESTDIR)$(bindir)/gp-display-text | ||
32 | - | ||
33 | + for i in gp-{archive,collect-app,display-html,display-src,display-text}; do \ | ||
34 | + oldname=`echo $$i | sed '$(transform)'`; \ | ||
35 | + rm -f $(DESTDIR)$(bindir)/$$oldname ; \ | ||
36 | + ln -s `echo $$oldname | sed 's&gp-&gprofng-&'` $(DESTDIR)$(bindir)/$$oldname; \ | ||
37 | + done | ||
38 | diff --git a/gprofng/src/Makefile.in b/gprofng/src/Makefile.in | ||
39 | index d0dec12e244..d6f1f9438b6 100644 | ||
40 | --- a/gprofng/src/Makefile.in | ||
41 | +++ b/gprofng/src/Makefile.in | ||
42 | @@ -1119,13 +1119,11 @@ $(srcdir)/DbeSession.cc: QLParser.tab.hh | ||
43 | .PHONY: install-exec-local | ||
44 | install-exec-local: | ||
45 | $(mkinstalldirs) $(DESTDIR)$(bindir) | ||
46 | - rm -f $(DESTDIR)$(bindir)/gp-{archive,collect-app,display-html,display-src,display-text} | ||
47 | - ln -s gprofng-archive $(DESTDIR)$(bindir)/gp-archive | ||
48 | - ln -s gprofng-collect-app $(DESTDIR)$(bindir)/gp-collect-app | ||
49 | - ln -s gprofng-display-html $(DESTDIR)$(bindir)/gp-display-html | ||
50 | - ln -s gprofng-display-src $(DESTDIR)$(bindir)/gp-display-src | ||
51 | - ln -s gprofng-display-text $(DESTDIR)$(bindir)/gp-display-text | ||
52 | - | ||
53 | + for i in gp-{archive,collect-app,display-html,display-src,display-text}; do \ | ||
54 | + oldname=`echo $$i | sed '$(transform)'`; \ | ||
55 | + rm -f $(DESTDIR)$(bindir)/$$oldname ; \ | ||
56 | + ln -s `echo $$oldname | sed 's&gp-&gprofng-&'` $(DESTDIR)$(bindir)/$$oldname; \ | ||
57 | + done | ||
58 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
59 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
60 | .NOEXPORT: | ||
61 | -- | ||
62 | 2.43.7 | ||