]> code.ossystems Code Review - openembedded-core.git/commit
multilib_script: Add support for multilib scripts
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jul 2018 13:09:29 +0000 (13:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Feb 2019 22:13:07 +0000 (22:13 +0000)
commit97e2d65d1c406bc58fe693e500fcc939459bac1a
treeb4f40b2328ffaa5e32de4912db9e671cf2edd6c9
parent9e1c69932add702b9c5bc1faa9ef5db975de0ee3
multilib_script: Add support for multilib scripts

Whilst the package managers handle multilib ELF binaries well, they don't
handle scripts in the *bindir directories well. This adds support for
marking these up so that they can be handled using update-alternatives.

Its done this way so that non-multilib systems don't see any changes and
there is standardisation amongst the multilibs on how the alternatives are
named and prioritiesd. The priotitisation code needs to be added but this
change means there is somewhere to add it.

Recipe needs to set MULTILIB_SCRIPTS in the form <pkgname>:<scriptname>, e.g.
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/file1 ${PN}:${base_bindir}/file2"
to indicate which script files to process from which packages.

libtool is used a as a reference to stop the libtool scripts conflicting
in a multilib case and allows the kernel-devsrc change to be merged.

(From OE-Core rev: 18e837433d07cfdce4019c13f682c6676425a2ad)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/multilib_script.bbclass [new file with mode: 0644]
meta/recipes-devtools/libtool/libtool_2.4.6.bb