]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm.bbclass : escape "%" in files and directories name
authorSébastien Mennetrier <smennetrier@voxtok.com>
Wed, 20 May 2015 14:48:19 +0000 (16:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Aug 2015 22:45:22 +0000 (23:45 +0100)
commit5ed1c7f556df3fafd45d493010cc0bbe74d05ebd
tree7afa418871a5d581af7fb0f62780938ac6b9c4df
parent9f1ce43fa1bdd3952ccf510cb648ebe9e0e8aac2
package_rpm.bbclass : escape "%" in files and directories name

The rpm process replace all the "%name" in the spec file by the name of
the package. So, if the package is composed of some files or directories
named "%name...", the rpm package process failed.

Replace all "%" present in files or directories names by "%%%%%%%%" to
correctly escape "%" due to the number of times that % is treated as an
escape character.  Jeff Johnson says this is the Right Thing To Do.

[ YOCTO #5397 ]

Signed-off-by: Sébastien Mennetrier <smennetrier@voxtok.com>
Signed-off-by: Michaël Burtin <mburtin@voxtok.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package_rpm.bbclass