diff options
author | P. J. McDermott <pjm@nac.net> | 2013-03-31 23:19:43 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-03-31 23:19:43 (EDT) |
commit | 0563471f8a1dd14da6043cdb17e1af4df9364a6e (patch) | |
tree | 50580e234b004cbebe77e2fdceeb54f345f894ed | |
parent | 618b5ef170cce57a3dea678b23d49743c92789f7 (diff) |
Add patch to remove libc/manual/errno.texi deps.
-rw-r--r-- | patches/01_remove-manual.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/patches/01_remove-manual.patch b/patches/01_remove-manual.patch new file mode 100644 index 0000000..7bbc625 --- /dev/null +++ b/patches/01_remove-manual.patch @@ -0,0 +1,37 @@ +Description: Don't require libc/manual/errno.texi. +From: "P. J. McDermott" <pjm@nac.net> + +--- a/libc/sysdeps/gnu/Makefile ++++ b/libc/sysdeps/gnu/Makefile +@@ -19,13 +19,6 @@ + # Generate the list of strings for errno codes from the section of the + # manual which documents the codes. + +-$(..)sysdeps/gnu/errlist.c: $(..)sysdeps/gnu/errlist.awk \ +- $(..)manual/errno.texi +- $(AWK) -f $^ > $@-tmp +-# Make it unwritable so noone will edit it by mistake. +- -chmod a-w $@-tmp +- mv -f $@-tmp $@ +- + ifeq ($(subdir),stdio-common) + + errlist-c = $(firstword $(wildcard $(addsuffix /errlist.c,$(sysdirs) .))) +--- a/libc/sysdeps/mach/hurd/Makefile ++++ b/libc/sysdeps/mach/hurd/Makefile +@@ -85,15 +85,6 @@ + -e 's, \.\./, $(..),g' > $@t + mv -f $@t $@ + +-$(hurd)/bits/errno.h: $(common-objpfx)stamp-errnos ; +-$(common-objpfx)stamp-errnos: $(hurd)/errnos.awk $(errno.texinfo) \ +- $(mach-errnos-deps) $(common-objpfx)errnos.d +- $(AWK) -f $^ > $(hurd)/bits/errno.h-tmp +-# Make it unwritable so noone will edit it by mistake. +- -chmod a-w $(hurd)/bits/errno.h-tmp +- $(move-if-change) $(hurd)/bits/errno.h-tmp $(hurd)/bits/errno.h +- touch $@ +- + common-generated += errnos.d stamp-errnos + + # We install the real libc.a as libcrt.a and as libc.a we install a linker |