]> 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>
Thu, 19 Jul 2018 09:52:42 +0000 (10:52 +0100)
commitf0e1683d53e3b7436c04d665a181cdf5909e987c
treeeac28edb917e01767e8a6634307a73bdbb817abf
parentb233c8db7635250c59c02598308b0ea54580f4d0
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]

(From OE-Core rev: ffb0ece83e74797f4c3da3866bb3d691c388a5e5)

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