Skip to content
Snippets Groups Projects
Commit 67031734 authored by Richard Purdie's avatar Richard Purdie
Browse files

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: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent d74c5aa2
Branches
Tags 1.2_M4.rc3.2
No related merge requests found
......@@ -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" $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment