]> code.ossystems Code Review - openembedded-core.git/commit
rt-tests: fix redo install error
authorKai Kang <kai.kang@windriver.com>
Tue, 4 Aug 2015 03:25:35 +0000 (11:25 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Aug 2015 22:14:30 +0000 (15:14 -0700)
commita172c208c821af7f9527fe25f337f51c52ba8793
tree6010ec488b43e82584a57763e0c59d735c29fbb8
parent781ec1061306f43265f9d756a89d1b86bd5d19a0
rt-tests: fix redo install error

Currently gzip on host is used. If host gzip is provided by pigz, it
fails to redo install that pigz can't handle the option after file name.
When run command for target install in Makefile:

gzip src/backfire/backfire.4 -c > OUTPUT_FILE

File src/backfire/backfire.4 is zipped into backfire.4.gz but the
OUTPUT_FILE is empty. When rerun do_install, it shows warning:

| gzip: src/backfire/backfire.4 does not exist -- skipping

and empty manual gzip files are created:

$ file image/usr/share/man/man4/backfire.4.gz
image/usr/share/man/man4/backfire.4.gz: empty

Fix it by putting option '-c' before the file name.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch [new file with mode: 0644]
meta/recipes-rt/rt-tests/rt-tests.inc