package_rpm.bbclass: Set tmppath for rpm to somewhere which won't conflict with the...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Apr 2012 20:16:41 +0000 (20:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Apr 2012 20:25:10 +0000 (21:25 +0100)
commit7b8642c28340f208f6ceeda54ad4a9cc29a4ef54
tree93c8c93a9d4977e3ca7eea247173b02385f090fb
parent6410d539839320274ccfe4198b2ff2b38678083a
package_rpm.bbclass: Set tmppath for rpm to somewhere which won't conflict with the rootfs

If the rootfs has a specific layout in mind for /var/tmp, it should be
free to create this. Preinst scripts trigger rpm to create its tmppath
directory which could potentially conflict with this.

We're seeing issues if the provider of the /var/tmp wants to use a symlink
and a preinst script executes before it has been installed. This change
places tmppath as used by rpm somewhere safe which is already automatically
cleaned up too.

(From OE-Core rev: 71e95c744eaa4dda1b3237db2e13f666f121c92b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass