diff options
author | Keerthivasan Raghavan <kraghava@qti.qualcomm.com> | 2025-09-01 10:40:41 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-08 14:05:10 +0100 |
commit | f81b351440e77d153d8f57a9cfac103e169abcec (patch) | |
tree | 478dcfabd33f8a329686a92cd577352d7a4bb0e3 | |
parent | ac3e32c0e01884de608385a87ebad20b2eb06330 (diff) | |
download | poky-f81b351440e77d153d8f57a9cfac103e169abcec.tar.gz |
coreutils_9.7.bb: fix update-alternative support for base32
base32 is listed as update-alternative binary but does not
set the alternatie variables for it to take effect causing
the original ELF file to be installed in the destination
instead of the symlink. Fix this by setting the alternative
variables and by moving the original binary into subdir.
(From OE-Core rev: 1eff156c4fe408699e3489cf125f30e0af94d8fd)
Signed-off-by: Keerthivasan Raghavan <kraghava@qti.qualcomm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_9.7.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-core/coreutils/coreutils_9.7.bb b/meta/recipes-core/coreutils/coreutils_9.7.bb index 5a6456d65e..3658f7100c 100644 --- a/meta/recipes-core/coreutils/coreutils_9.7.bb +++ b/meta/recipes-core/coreutils/coreutils_9.7.bb | |||
@@ -90,7 +90,7 @@ do_install:class-native() { | |||
90 | } | 90 | } |
91 | 91 | ||
92 | do_install:append() { | 92 | do_install:append() { |
93 | for i in df mktemp nice printenv base64; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${BPN}; done | 93 | for i in df mktemp nice printenv base32 base64; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${BPN}; done |
94 | 94 | ||
95 | install -d ${D}${base_bindir} | 95 | install -d ${D}${base_bindir} |
96 | [ "${base_bindir}" != "${bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${BPN}; done | 96 | [ "${base_bindir}" != "${bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${BPN}; done |
@@ -110,10 +110,14 @@ ALTERNATIVE_PRIORITY = "100" | |||
110 | # Make hostname's priority higher than busybox but lower than net-tools | 110 | # Make hostname's priority higher than busybox but lower than net-tools |
111 | ALTERNATIVE_PRIORITY[hostname] = "90" | 111 | ALTERNATIVE_PRIORITY[hostname] = "90" |
112 | ALTERNATIVE:${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs} base32 base64 nice printenv mktemp df" | 112 | ALTERNATIVE:${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs} base32 base64 nice printenv mktemp df" |
113 | ALTERNATIVE:${PN}-doc = "base64.1 nice.1 mktemp.1 df.1 groups.1 kill.1 uptime.1 stat.1 hostname.1" | 113 | ALTERNATIVE:${PN}-doc = "base32.1 base64.1 nice.1 mktemp.1 df.1 groups.1 kill.1 uptime.1 stat.1 hostname.1" |
114 | 114 | ||
115 | ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1" | 115 | ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1" |
116 | 116 | ||
117 | ALTERNATIVE_LINK_NAME[base32] = "${base_bindir}/base32" | ||
118 | ALTERNATIVE_TARGET[base32] = "${bindir}/base32.${BPN}" | ||
119 | ALTERNATIVE_LINK_NAME[base32.1] = "${mandir}/man1/base32.1" | ||
120 | |||
117 | ALTERNATIVE_LINK_NAME[base64] = "${base_bindir}/base64" | 121 | ALTERNATIVE_LINK_NAME[base64] = "${base_bindir}/base64" |
118 | ALTERNATIVE_TARGET[base64] = "${bindir}/base64.${BPN}" | 122 | ALTERNATIVE_TARGET[base64] = "${bindir}/base64.${BPN}" |
119 | ALTERNATIVE_LINK_NAME[base64.1] = "${mandir}/man1/base64.1" | 123 | ALTERNATIVE_LINK_NAME[base64.1] = "${mandir}/man1/base64.1" |