summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-12 20:16:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-12 21:24:55 +0100
commit71e95c744eaa4dda1b3237db2e13f666f121c92b (patch)
tree31a68b792f3dac1c4be0fd887b296c26c6091546 /meta/classes
parent1b576a2412647fbbf0a17e95171efdc458f4be16 (diff)
downloadopenembedded-core-71e95c744eaa4dda1b3237db2e13f666f121c92b.tar.gz
openembedded-core-71e95c744eaa4dda1b3237db2e13f666f121c92b.tar.bz2
openembedded-core-71e95c744eaa4dda1b3237db2e13f666f121c92b.tar.xz
openembedded-core-71e95c744eaa4dda1b3237db2e13f666f121c92b.zip
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index fd00fb13e..ffe3b312f 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -158,6 +158,7 @@ rpm_common_comand () {
--predefine "_rpmrc_platform_path ${target_rootfs}/etc/rpm/platform" \
-D "_var ${localstatedir}" \
-D "_dbpath ${rpmlibdir}" \
+ -D "_tmppath /install/tmp" \
--noparentdirs --nolinktos \
-D "__dbi_txn create nofsync private" \
-D "_cross_scriptlet_wrapper ${WORKDIR}/scriptlet_wrapper" $@