patches/glibc/2.9/220-manual-no-perl.patch
branchnewlib
changeset 1365 c4d124ed9f8e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.9/220-manual-no-perl.patch	Sun Apr 19 16:17:11 2009 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +Original patch from: gentoo/src/patchsets/glibc/2.9/1030_all_glibc-manual-no-perl.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +If we're using a cvs snapshot which updates the source files, and
     1.8 +perl isn't installed yet, then we can't regen the docs.  Not a big
     1.9 +deal, so just whine a little and continue on our merry way.
    1.10 +
    1.11 +http://bugs.gentoo.org/60132
    1.12 +
    1.13 +-= END original header =-
    1.14 +
    1.15 +diff -durN glibc-2_9.orig/manual/Makefile glibc-2_9/manual/Makefile
    1.16 +--- glibc-2_9.orig/manual/Makefile	2006-01-08 07:43:47.000000000 +0100
    1.17 ++++ glibc-2_9/manual/Makefile	2009-02-02 22:00:53.000000000 +0100
    1.18 +@@ -104,9 +104,14 @@
    1.19 + libm-err.texi: stamp-libm-err
    1.20 + stamp-libm-err: libm-err-tab.pl $(wildcard $(foreach dir,$(sysdirs),\
    1.21 + 						     $(dir)/libm-test-ulps))
    1.22 ++ifneq ($(PERL),no)
    1.23 + 	pwd=`pwd`; \
    1.24 + 	$(PERL) $< $$pwd/.. > libm-err-tmp
    1.25 + 	$(move-if-change) libm-err-tmp libm-err.texi
    1.26 ++else
    1.27 ++	echo "Unable to rebuild math docs, no perl installed"
    1.28 ++	touch libm-err.texi
    1.29 ++endif
    1.30 + 	touch $@
    1.31 + 
    1.32 + # Generate Texinfo files from the C source for the example programs.