source: patches/coreutils-8.22-noman-1.patch@ 3e1d58b

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3e1d58b was 4a17c2b, checked in by William Harrington <kb0iic@…>, 11 years ago

Do not generate man pages when cross compiling.

  • Property mode set to 100644
File size: 13.8 KB
RevLine 
[4a17c2b]1Submitted By: William Harrington (kb0iic at cross-lfs dot org)
2Date: 2013-12-23
3Initial Package Version: 8.22
4Origin: Openbox
5Upstream Status: Inapprorpiate
6Description: Keep man pages from being generated during cross compile.
7
8--- coreutils-8.22.orig/Makefile.in 2013-12-13 15:20:00.000000000 +0000
9+++ coreutils-8.22/Makefile.in 2013-12-23 08:35:55.604015206 +0000
10@@ -1,4 +1,4 @@
11-# Makefile.in generated by automake 1.13.4 from Makefile.am.
12+# Makefile.in generated by automake 1.14 from Makefile.am.
13 # @configure_input@
14
15 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
16@@ -75,24 +75,6 @@
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20-# Make coreutils man pages. -*-Makefile-*-
21-# This is included by the top-level Makefile.am.
22-
23-# Copyright (C) 2002-2013 Free Software Foundation, Inc.
24-
25-# This program is free software: you can redistribute it and/or modify
26-# it under the terms of the GNU General Public License as published by
27-# the Free Software Foundation, either version 3 of the License, or
28-# (at your option) any later version.
29-
30-# This program is distributed in the hope that it will be useful,
31-# but WITHOUT ANY WARRANTY; without even the implied warranty of
32-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33-# GNU General Public License for more details.
34-
35-# You should have received a copy of the GNU General Public License
36-# along with this program. If not, see <http://www.gnu.org/licenses/>.
37-
38
39
40 VPATH = @srcdir@
41@@ -159,11 +141,10 @@
42 host_triplet = @host@
43 DIST_COMMON = $(top_srcdir)/lib/local.mk $(srcdir)/lib/gnulib.mk \
44 $(top_srcdir)/src/local.mk $(srcdir)/src/cu-progs.mk \
45- $(top_srcdir)/doc/local.mk $(top_srcdir)/man/local.mk \
46- $(top_srcdir)/tests/local.mk INSTALL NEWS README AUTHORS \
47- ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
48- $(top_srcdir)/configure $(am__configure_deps) \
49- $(top_srcdir)/lib/config.hin ABOUT-NLS \
50+ $(top_srcdir)/doc/local.mk $(top_srcdir)/tests/local.mk \
51+ INSTALL NEWS README AUTHORS ChangeLog $(srcdir)/Makefile.in \
52+ $(srcdir)/Makefile.am $(top_srcdir)/configure \
53+ $(am__configure_deps) $(top_srcdir)/lib/config.hin ABOUT-NLS \
54 $(top_srcdir)/lib/alloca.c lib/parse-datetime.c \
55 $(top_srcdir)/build-aux/depcomp $(top_srcdir)/build-aux/ylwrap \
56 $(doc_coreutils_TEXINFOS) $(top_srcdir)/build-aux/mdate-sh \
57@@ -1507,7 +1488,6 @@
58 EOVERFLOW_VALUE = @EOVERFLOW_VALUE@
59 ERRNO_H = @ERRNO_H@
60 EXEEXT = @EXEEXT@
61-EXTRA_MANS = @EXTRA_MANS@
62 FLOAT_H = @FLOAT_H@
63 FNMATCH_H = @FNMATCH_H@
64 GETADDRINFO_LIB = @GETADDRINFO_LIB@
65@@ -2749,7 +2729,6 @@
66 lispdir = @lispdir@
67 localedir = @localedir@
68 localstatedir = @localstatedir@
69-man1_MANS = @man1_MANS@
70 mandir = @mandir@
71 mkdir_p = @mkdir_p@
72 oldincludedir = @oldincludedir@
73@@ -2965,19 +2944,17 @@
74 lib/xstrtol.h lib/xstrtod.c lib/xstrtod.h lib/xalloc.h \
75 lib/yesno.h src/dcgen src/dircolors.hin src/primes.h \
76 src/tac-pipe.c src/extract-magic src/c99-to-c89.diff \
77- man/help2man man/dummy-man $(man1_MANS:.1=.x) \
78- $(EXTRA_MANS:.1=.x) $(all_tests) init.cfg tests/Coreutils.pm \
79- tests/CuSkip.pm tests/CuTmpdir.pm tests/d_type-check \
80- tests/envvar-check tests/factor/run.sh \
81- tests/factor/create-test.sh tests/filefrag-extent-compare \
82- tests/fiemap-capable tests/init.sh tests/lang-default \
83- tests/no-perl tests/other-fs-tmpdir tests/sample-test \
84- $(pr_data)
85+ $(all_tests) init.cfg tests/Coreutils.pm tests/CuSkip.pm \
86+ tests/CuTmpdir.pm tests/d_type-check tests/envvar-check \
87+ tests/factor/run.sh tests/factor/create-test.sh \
88+ tests/filefrag-extent-compare tests/fiemap-capable \
89+ tests/init.sh tests/lang-default tests/no-perl \
90+ tests/other-fs-tmpdir tests/sample-test $(pr_data)
91 gen_progs_lists = $(top_srcdir)/build-aux/gen-lists-of-programs.sh
92 ACLOCAL_AMFLAGS = -I m4
93
94 # Just prior to distribution, ...
95-# transform the automake-generated rule that runs 'rm -f rm > /dev/null 2>&1 || /bin/rm -f rm'.
96+# transform the automake-generated rule that runs 'rm -f rm'.
97 # On some systems, that command would fail with a diagnostic like
98 # "rm: cannot unlink 'rm': Text file busy" when '.' appears so early
99 # in the shell's search path that running 'rm' would run the 'rm'
100@@ -3083,7 +3060,7 @@
101 CLEANFILES = lib/configmake.h lib/configmake.h-t lib/charset.alias \
102 lib/ref-add.sed lib/ref-del.sed $(SCRIPTS) \
103 $(no_install__progs) src/fs-def src/fs-magic \
104- src/fs-kernel-magic $(ALL_MANS) $(factor_tests)
105+ src/fs-kernel-magic $(factor_tests)
106 MOSTLYCLEANDIRS = lib/arpa lib/netinet lib/selinux lib/sys lib/sys \
107 lib/sys lib/sys lib/sys lib/sys lib/sys lib/sys
108 AM_CPPFLAGS = -Ilib -I$(top_srcdir)/lib -Isrc -I$(top_srcdir)/src
109@@ -3606,17 +3583,6 @@
110 } \
111 END {$$m and (warn "$@: do not use upper case in \@var{...}\n"), exit 1}'
112
113-@HAVE_PERL_FALSE@run_help2man = $(SHELL) $(srcdir)/man/dummy-man
114-@HAVE_PERL_TRUE@run_help2man = $(PERL) -- $(srcdir)/man/help2man
115-ALL_MANS = $(man1_MANS) $(EXTRA_MANS)
116-
117-# Dependencies common to all man pages. Updated below.
118-
119-# Depend on this to get version number changes.
120-
121-# This is required so that changes to e.g., emit_bug_reporting_address
122-# provoke regeneration of all the manpages.
123-mandeps = .version $(top_srcdir)/src/system.h
124
125 # Indirections required so that we'll still be able to know the
126 # complete list of our tests even if the user overrides TESTS
127@@ -4396,10 +4362,10 @@
128 $(MAKE) $(AM_MAKEFLAGS) all-recursive
129
130 .SUFFIXES:
131-.SUFFIXES: .1 .c .dvi .log .o .obj .pl .pl$(EXEEXT) .ps .sed .sh .sh$(EXEEXT) .sin .trs .x .xpl .xpl$(EXEEXT) .y
132+.SUFFIXES: .c .dvi .log .o .obj .pl .pl$(EXEEXT) .ps .sed .sh .sh$(EXEEXT) .sin .trs .xpl .xpl$(EXEEXT) .y
133 am--refresh: Makefile
134 @:
135-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/lib/local.mk $(srcdir)/lib/gnulib.mk $(top_srcdir)/src/local.mk $(srcdir)/src/cu-progs.mk $(top_srcdir)/doc/local.mk $(top_srcdir)/man/local.mk $(top_srcdir)/tests/local.mk $(am__configure_deps)
136+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/lib/local.mk $(srcdir)/lib/gnulib.mk $(top_srcdir)/src/local.mk $(srcdir)/src/cu-progs.mk $(top_srcdir)/doc/local.mk $(top_srcdir)/tests/local.mk $(am__configure_deps)
137 @for dep in $?; do \
138 case '$(am__configure_deps)' in \
139 *$$dep*) \
140@@ -4422,7 +4388,7 @@
141 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
142 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
143 esac;
144-$(top_srcdir)/lib/local.mk $(srcdir)/lib/gnulib.mk $(top_srcdir)/src/local.mk $(srcdir)/src/cu-progs.mk $(top_srcdir)/doc/local.mk $(top_srcdir)/man/local.mk $(top_srcdir)/tests/local.mk:
145+$(top_srcdir)/lib/local.mk $(srcdir)/lib/gnulib.mk $(top_srcdir)/src/local.mk $(srcdir)/src/cu-progs.mk $(top_srcdir)/doc/local.mk $(top_srcdir)/tests/local.mk:
146
147 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
148 $(SHELL) ./config.status --recheck
149@@ -4434,8 +4400,8 @@
150 $(am__aclocal_m4_deps):
151
152 lib/config.h: lib/stamp-h1
153- @if test ! -f $@; then rm -f lib/stamp-h1; else :; fi
154- @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) lib/stamp-h1; else :; fi
155+ @test -f $@ || rm -f lib/stamp-h1
156+ @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) lib/stamp-h1
157
158 lib/stamp-h1: $(top_srcdir)/lib/config.hin $(top_builddir)/config.status
159 @rm -f lib/stamp-h1
160@@ -5292,7 +5258,7 @@
161 cd "$(DESTDIR)$(bindir)" && rm -f $$files
162
163 clean-binPROGRAMS:
164- -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) > /dev/null 2>&1 || /bin/rm -f $(bin_PROGRAMS)
165+ -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
166
167 clean-noinstPROGRAMS:
168 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
169@@ -6747,17 +6713,13 @@
170 $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I doc -I $(srcdir)/doc \
171 -o $(@:.html=.htp) `test -f 'doc/coreutils.texi' || echo '$(srcdir)/'`doc/coreutils.texi; \
172 then \
173- rm -rf $@; \
174- if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
175- mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
176+ rm -rf $@ && mv $(@:.html=.htp) $@; \
177 else \
178- if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
179- rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
180- exit 1; \
181+ rm -rf $(@:.html=.htp); exit 1; \
182 fi
183 $(srcdir)/doc/version.texi: $(srcdir)/doc/stamp-vti
184 $(srcdir)/doc/stamp-vti: doc/coreutils.texi $(top_srcdir)/configure
185- test -f doc/$(am__dirstamp) || $(MAKE) $(AM_MAKEFLAGS) doc/$(am__dirstamp)
186+ @test -f doc/$(am__dirstamp) || $(MAKE) $(AM_MAKEFLAGS) doc/$(am__dirstamp)
187 @(dir=.; test -f ./doc/coreutils.texi || dir=$(srcdir); \
188 set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/doc/coreutils.texi`; \
189 echo "@set UPDATED $$1 $$2 $$3"; \
190@@ -7285,10 +7247,16 @@
191 $(am__post_remove_distdir)
192
193 dist-tarZ: distdir
194+ @echo WARNING: "Support for shar distribution archives is" \
195+ "deprecated." >&2
196+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
197 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
198 $(am__post_remove_distdir)
199
200 dist-shar: distdir
201+ @echo WARNING: "Support for distribution archives compressed with" \
202+ "legacy program 'compress' is deprecated." >&2
203+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
204 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
205 $(am__post_remove_distdir)
206
207@@ -9838,154 +9806,6 @@
208 $(PERL) -lne $(find_upper_case_var) $(texi_files)
209
210 check-local: check-texinfo
211-
212-# This is required because we have subtle inter-directory dependencies:
213-# in order to generate all man pages, even those for which we don't
214-# install a binary, require that all programs be built at distribution
215-# time. We can't use 'dist-hook' for this, since it would run too late:
216-# the manpages must be generated before the distdir is created and filled.
217-$(EXTRA_MANS): $(all_programs)
218-
219-# This is a kludge to remove generated 'man/*.1' from a non-srcdir build.
220-# Without this, "make distcheck" might fail.
221-distclean-local:
222- test x$(srcdir) = x$(builddir) || rm -f $(ALL_MANS)
223-
224-$(ALL_MANS): $(mandeps)
225-
226-# Most prog.1 man pages depend on src/prog. List the exceptions:
227-# Note that dir and vdir are exceptions only if you consider the name
228-# of the .c file upon which they depend: ls.c.
229-man/arch.1: src/uname
230-man/dir.1: src/dir
231-man/install.1: src/ginstall
232-man/vdir.1: src/vdir
233-
234-man/base64.1: src/base64
235-man/basename.1: src/basename
236-man/cat.1: src/cat
237-man/chcon.1: src/chcon
238-man/chgrp.1: src/chgrp
239-man/chmod.1: src/chmod
240-man/chown.1: src/chown
241-man/chroot.1: src/chroot
242-man/cksum.1: src/cksum
243-man/comm.1: src/comm
244-man/cp.1: src/cp
245-man/csplit.1: src/csplit
246-man/cut.1: src/cut
247-man/date.1: src/date
248-man/dd.1: src/dd
249-man/df.1: src/df
250-man/dircolors.1: src/dircolors
251-man/dirname.1: src/dirname
252-man/du.1: src/du
253-man/echo.1: src/echo
254-man/env.1: src/env
255-man/expand.1: src/expand
256-man/expr.1: src/expr
257-man/factor.1: src/factor
258-man/false.1: src/false
259-man/fmt.1: src/fmt
260-man/fold.1: src/fold
261-man/groups.1: src/groups
262-man/head.1: src/head
263-man/hostid.1: src/hostid
264-man/hostname.1: src/hostname
265-man/id.1: src/id
266-man/join.1: src/join
267-man/kill.1: src/kill
268-man/link.1: src/link
269-man/ln.1: src/ln
270-man/logname.1: src/logname
271-man/ls.1: src/ls
272-man/md5sum.1: src/md5sum
273-man/mkdir.1: src/mkdir
274-man/mkfifo.1: src/mkfifo
275-man/mknod.1: src/mknod
276-man/mktemp.1: src/mktemp
277-man/mv.1: src/mv
278-man/nice.1: src/nice
279-man/nl.1: src/nl
280-man/nohup.1: src/nohup
281-man/nproc.1: src/nproc
282-man/numfmt.1: src/numfmt
283-man/od.1: src/od
284-man/paste.1: src/paste
285-man/pathchk.1: src/pathchk
286-man/pinky.1: src/pinky
287-man/pr.1: src/pr
288-man/printenv.1: src/printenv
289-man/printf.1: src/printf
290-man/ptx.1: src/ptx
291-man/pwd.1: src/pwd
292-man/readlink.1: src/readlink
293-man/realpath.1: src/realpath
294-man/rm.1: src/rm
295-man/rmdir.1: src/rmdir
296-man/runcon.1: src/runcon
297-man/seq.1: src/seq
298-man/sha1sum.1: src/sha1sum
299-man/sha224sum.1: src/sha224sum
300-man/sha256sum.1: src/sha256sum
301-man/sha384sum.1: src/sha384sum
302-man/sha512sum.1: src/sha512sum
303-man/shred.1: src/shred
304-man/shuf.1: src/shuf
305-man/sleep.1: src/sleep
306-man/sort.1: src/sort
307-man/split.1: src/split
308-man/stat.1: src/stat
309-man/stdbuf.1: src/stdbuf
310-man/stty.1: src/stty
311-man/sum.1: src/sum
312-man/sync.1: src/sync
313-man/tac.1: src/tac
314-man/tail.1: src/tail
315-man/tee.1: src/tee
316-man/test.1: src/test
317-man/timeout.1: src/timeout
318-man/touch.1: src/touch
319-man/tr.1: src/tr
320-man/true.1: src/true
321-man/truncate.1: src/truncate
322-man/tsort.1: src/tsort
323-man/tty.1: src/tty
324-man/uname.1: src/uname
325-man/unexpand.1: src/unexpand
326-man/uniq.1: src/uniq
327-man/unlink.1: src/unlink
328-man/uptime.1: src/uptime
329-man/users.1: src/users
330-man/wc.1: src/wc
331-man/who.1: src/who
332-man/whoami.1: src/whoami
333-man/yes.1: src/yes
334-
335-.x.1:
336- $(AM_V_GEN)name=`echo $@ | sed 's|.*/||; s|\.1$$||'` || exit 1; \
337- case $$name in \
338- install) prog='ginstall';; \
339- test) prog='[';; \
340- *) prog=$$name;; \
341- esac; \
342- rm -f $@ $@-t \
343- && t=$*.td \
344- && rm -rf $$t \
345- && $(MKDIR_P) $$t \
346- && (cd $$t && $(LN_S) '$(abs_top_builddir)/src/'$$prog $$name) \
347- && $(run_help2man) \
348- --source='$(PACKAGE_STRING)' \
349- --include=$(srcdir)/man/$$name.x \
350- --output=$$t/$$name.1 $$t/$$name \
351- --info-page='coreutils \(aq'$$name' invocation\(aq' \
352- && sed \
353- -e 's|$*\.td/||g' \
354- -e '/For complete documentation/d' \
355- $$t/$$name.1 > $@-t \
356- && rm -rf $$t \
357- && chmod a-w $@-t \
358- && mv $@-t $@
359 .PHONY: check-root
360 check-root:
361 $(MAKE) check TESTS='$(root_tests)' SUBDIRS=.
Note: See TracBrowser for help on using the repository browser.