mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
multilib_script: fix packages split
In multilib_script.bbclass it renames script file which listed in
MULTILIB_SCRIPTS. It may mix up packages split. Take package curl as
example, ${bindir}/curl-config is packaged to curl-dev originally. But
it is renamed to curl-config-${MULTILIB_SUFFIX} and packaged to curl
when multilib is enabled.
And expand 'pkg' to fix QA warning:
| WARNING: Variable key FILES_${PN}-dev (
| ${bindir}/curl-config-${MULTILIB_SUFFIX}) replaces original key
| FILES_curl-dev (${includedir} ${FILES_SOLIBSDEV} ... ${bindir}/*-config)
Insert a necessary space to the argument 'value' of d.appendVar() as well.
(From OE-Core rev: 841bcbe429dcab54de3b89a927394750f9ccae60)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -24,9 +24,11 @@ python () {
|
||||
|
||||
for entry in (d.getVar("MULTILIB_SCRIPTS", False) or "").split():
|
||||
pkg, script = entry.split(":")
|
||||
epkg = d.expand(pkg)
|
||||
scriptname = os.path.basename(script)
|
||||
d.appendVar("ALTERNATIVE_" + pkg, scriptname + " ")
|
||||
d.appendVar("ALTERNATIVE_" + epkg, " " + scriptname + " ")
|
||||
d.setVarFlag("ALTERNATIVE_LINK_NAME", scriptname, script)
|
||||
d.setVarFlag("ALTERNATIVE_TARGET", scriptname, script + "-${MULTILIB_SUFFIX}")
|
||||
d.appendVar("multilibscript_rename", "\n mv ${PKGD}" + script + " ${PKGD}" + script + "-${MULTILIB_SUFFIX}")
|
||||
d.appendVar("FILES_" + epkg, " " + script + "-${MULTILIB_SUFFIX}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user