]> code.ossystems Code Review - openembedded-core.git/commit
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:24:55 +0000 (21:24 +0100)
commit71e95c744eaa4dda1b3237db2e13f666f121c92b
tree31a68b792f3dac1c4be0fd887b296c26c6091546
parent1b576a2412647fbbf0a17e95171efdc458f4be16
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.

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