summaryrefslogtreecommitdiffstats
path: root/meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch')
-rw-r--r--meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch b/meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch
new file mode 100644
index 0000000000..e38ec92c05
--- /dev/null
+++ b/meta/recipes-rt/rt-tests/files/fix-re-install-failure.patch
@@ -0,0 +1,48 @@
1Currently gzip on host is used. If host gzip is provided by pigz, it fails to
2redo install that pigz can't handle the option after file name. When run:
3
4gzip src/backfire/backfire.4 -c > OUTPUT_FILE
5
6File src/backfire/backfire.4 is zipped into backfire.4.gz but the OUTPUT_FILE
7is empty. When rerun do_install, it shows warning:
8
9| gzip: src/backfire/backfire.4 does not exist -- skipping
10
11and empty manual gzip files are created:
12
13$ file image/usr/share/man/man4/backfire.4.gz
14image/usr/share/man/man4/backfire.4.gz: empty
15
16Fix it by putting option '-c' before the file name.
17
18Upstream-Status: Pending
19
20Signed-off-by: Kai Kang <kai.kang@windriver.com>
21---
22--- git/Makefile.orig 2014-11-14 15:47:26.406638419 +0800
23+++ git/Makefile 2014-11-14 15:46:53.890637533 +0800
24@@ -127,15 +127,15 @@
25 cp $(TARGETS) "$(DESTDIR)$(bindir)"
26 install -D -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c"
27 install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile"
28- gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz"
29- gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz"
30- gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz"
31- gzip src/ptsematest/ptsematest.8 -c >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz"
32- gzip src/sigwaittest/sigwaittest.8 -c >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz"
33- gzip src/svsematest/svsematest.8 -c >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz"
34- gzip src/pmqtest/pmqtest.8 -c >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz"
35- gzip src/backfire/sendme.8 -c >"$(DESTDIR)$(mandir)/man8/sendme.8.gz"
36- gzip src/hackbench/hackbench.8 -c >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz"
37+ gzip -c src/backfire/backfire.4 >"$(DESTDIR)$(mandir)/man4/backfire.4.gz"
38+ gzip -c src/cyclictest/cyclictest.8 >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz"
39+ gzip -c src/pi_tests/pi_stress.8 >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz"
40+ gzip -c src/ptsematest/ptsematest.8 >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz"
41+ gzip -c src/sigwaittest/sigwaittest.8 >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz"
42+ gzip -c src/svsematest/svsematest.8 >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz"
43+ gzip -c src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz"
44+ gzip -c src/backfire/sendme.8 >"$(DESTDIR)$(mandir)/man8/sendme.8.gz"
45+ gzip -c src/hackbench/hackbench.8 >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz"
46
47 .PHONY: install_hwlatdetect
48 install_hwlatdetect: hwlatdetect