]> code.ossystems Code Review - openembedded-core.git/commit
rpm: Avoid leaking temporary scriplet files
authorOlof Johansson <olof.johansson@axis.com>
Tue, 3 Jul 2018 12:00:08 +0000 (14:00 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Jul 2018 11:27:41 +0000 (12:27 +0100)
commitffb0ece83e74797f4c3da3866bb3d691c388a5e5
tree03bef88f7c29760efc41286f63a4a8ed467b90dc
parent516c1d5c2b2875ac103d4b5e8e482f852477dc8f
rpm: Avoid leaking temporary scriplet files

RPM writes each package scriptlet (post-/preinstall) to
/var/tmp/rpm-tmp.XXXXXX --- a lot of files potentially gets created.
When debugging is enabled, these temporary scriptlet files aren't
cleaned up at all and after a while this results in the filesystem
resources are eaten up (like running out of available inodes).

Normally, the temporary files would have been written to the tmp
directory of the target sysroot (which we can easily clean up), but in
this tree, you can't necessarily run the scriptlets.

Fixes [YOCTO #12792]

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch