summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorBill Randle <william.c.randle@intel.com>2016-03-29 15:26:39 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-30 12:01:29 +0100
commit437841c1fc9ddcf3fd174bb352edba183f2ed63c (patch)
treed6e9266c04416d67e16732542f9dada3e0785270 /meta/recipes-extended
parentabb5b46ca3af3b886487799c6216eb660e860f41 (diff)
downloadpoky-437841c1fc9ddcf3fd174bb352edba183f2ed63c.tar.gz
man: fix src/Makefile to work with parallel make
The Makefile for man has a rule to create two generated targets with a program run from the shell. Because the rule was run twice, with parallel make, the generated files were being overwritten at the same time they were being compiled. This patch forces the rule to be run only once. [YOCTO #9333] (From OE-Core rev: 61f3ef6a209805577c0e731a73c4f0eab1ace748) Signed-off-by: Bill Randle <william.c.randle@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/man/man/man-1.6g-parallel.patch30
-rw-r--r--meta/recipes-extended/man/man_1.6g.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/man/man/man-1.6g-parallel.patch b/meta/recipes-extended/man/man/man-1.6g-parallel.patch
new file mode 100644
index 0000000000..72a88b898a
--- /dev/null
+++ b/meta/recipes-extended/man/man/man-1.6g-parallel.patch
@@ -0,0 +1,30 @@
1The Makefile for man has a rule to create two generated targets with
2a program run from the shell. Because the rule was run twice, with
3parallel make, the generated files were being overwritten at the same
4time they were being compiled. This patch forces the rule to be run
5only once.
6
7Upstream-Status: Pending
8
9Signed-off-by: Bill Randle <william.c.randle at intel.com>
10
11--- man-1.6g/src/Makefile.in.orig 2010-12-31 12:28:46.000000000 -0800
12+++ man-1.6g/src/Makefile.in 2016-03-28 09:09:16.845458798 -0700
13@@ -43,8 +43,10 @@
14 makemsg:
15 $(BUILD_CC) -o makemsg makemsg.c
16
17-msg.c gripedefs.h: ../msgs/mess.en makemsg
18+msg.c gripedefs.h: genfiles-stamp
19+genfiles-stamp: ../msgs/mess.en makemsg
20 ./makemsg ../msgs/mess.en gripedefs.h msg.c
21+ touch genfiles-stamp
22
23 # glob.c does not have prototypes
24 glob.o: glob.c ndir.h
25@@ -117,4 +119,4 @@
26
27 spotless: clean
28 rm -f Makefile config.status paths.h version.h man.conf
29- rm -f gripedefs.h msg.c mess.*.cat
30+ rm -f gripedefs.h msg.c mess.*.cat genfiles-stamp
diff --git a/meta/recipes-extended/man/man_1.6g.bb b/meta/recipes-extended/man/man_1.6g.bb
index fa4736b298..9b057b6573 100644
--- a/meta/recipes-extended/man/man_1.6g.bb
+++ b/meta/recipes-extended/man/man_1.6g.bb
@@ -53,6 +53,7 @@ SRC_URI = "http://pkgs.fedoraproject.org/lookaside/pkgs/man2html/${BP}.tar.gz/ba
53 file://manpath.5.gz;unpack=false \ 53 file://manpath.5.gz;unpack=false \
54 file://man-1.6g-whatis3.patch \ 54 file://man-1.6g-whatis3.patch \
55 file://configure_sed.patch \ 55 file://configure_sed.patch \
56 file://man-1.6g-parallel.patch \
56" 57"
57 58
58SRC_URI[md5sum] = "ba154d5796928b841c9c69f0ae376660" 59SRC_URI[md5sum] = "ba154d5796928b841c9c69f0ae376660"