summaryrefslogtreecommitdiffstats
path: root/patches/glibc-2.29/0101-don-t-regen-docs-if-perl-is-not-found.patch
blob: 866164dc027d0f8af6eb0af30fff36d18ab87dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Wed, 2 Nov 2011 00:14:37 +0100
Subject: [PATCH] don't regen docs if perl is not found

If we're using a cvs snapshot which updates the source files, and
perl isn't installed yet, then we can't regen the docs.  Not a big
deal, so just whine a little and continue on our merry way.

This patch was taken from gentoo.
http://bugs.gentoo.org/60132

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 manual/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/manual/Makefile b/manual/Makefile
index 4f76ee85d285..7fd1ee5251f4 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -102,9 +102,14 @@ $(objpfx)libm-err.texi: $(objpfx)stamp-libm-err
 $(objpfx)stamp-libm-err: $(..)math/gen-libm-test.py \
 			 $(wildcard $(foreach dir,$(sysdirs),\
 						  $(dir)/libm-test-ulps))
+ifneq ($(PERL),no)
 	pwd=`pwd`; \
 	$(PYTHON) $< -s $$pwd/.. -m $(objpfx)libm-err-tmp
 	$(move-if-change) $(objpfx)libm-err-tmp $(objpfx)libm-err.texi
+else
+	echo "Unable to rebuild math docs, no perl installed"
+	touch libm-err.texi
+endif
 	touch $@
 
 # Package version and bug reporting URL.