]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
update-alternatives: try to update FILES_${PN} when renaming a file
authorAndré Draszik <andre.draszik@jci.com>
Wed, 16 Jan 2019 12:51:16 +0000 (12:51 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Feb 2019 11:05:59 +0000 (11:05 +0000)
commitbcb3e7b7f88adaabc7b78c7c0155b4f68da254d8
treec6083b67228cad87c33736985dc3f020ba028986
parent0b782c39b9bb54fc3c15942a1b7fa3f6e179f9b6
update-alternatives: try to update FILES_${PN} when renaming a file

When using update-alternatives, FILES_${PN} must be
referencing the new name after update-alternatives has
renamed files.

This is more or less OK when having static lists of files to
be packaged into a package, but makes it quite hard to
dynamically generate FILES_${PN}, e.g. using do_split_packages(),
as in that case we can not easily modify what goes into
FILES_${PN}, because that list is based on filenames as seen
at the time do_split_packages() is executing.

Of couse one could explicitly specify the (renamed) file(s)
in the recipe, but that contradicts the intended usage of
do_split_packages().

Instead, if FILES_${PN} contains the file name as it was pre
renaming, we here modify this to reflect the new name.

This will allow usage of do_split_packages() to populate
FILES_${PN}.

[YOCTO #13058]

(From OE-Core rev: 5c23fe378732038643a450cbf916334d24764b70)

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-alternatives.bbclass