termux-packages/packages/coreutils/Makefile.in.patch

50 lines
1.8 KiB
Diff
Raw Normal View History

2016-12-01 03:34:29 +01:00
diff -u -r ../coreutils-8.26/Makefile.in ./Makefile.in
--- ../coreutils-8.26/Makefile.in 2016-11-30 13:34:55.000000000 -0500
+++ ./Makefile.in 2016-11-30 19:10:09.902334174 -0500
@@ -5023,7 +5023,9 @@
@CROSS_COMPILING_FALSE@cu_install_program = src/ginstall
# Use the just-built 'ginstall', when not cross-compiling.
-@CROSS_COMPILING_TRUE@cu_install_program = @INSTALL_PROGRAM@
+# Work around
+# "Makefile:3440: *** Recursive variable 'INSTALL' references itself (eventually). Stop."
+@CROSS_COMPILING_TRUE@cu_install_program = install
info_TEXINFOS = doc/coreutils.texi
doc_coreutils_TEXINFOS = \
doc/perm.texi \
@@ -14622,32 +14624,8 @@
2015-07-04 14:44:30 +02:00
@SINGLE_BINARY_FALSE@man/yes.1: src/yes$(EXEEXT)
2015-06-13 01:03:31 +02:00
.x.1:
- $(AM_V_GEN)name=`echo $@ | sed 's|.*/||; s|\.1$$||'` || exit 1; \
- case $$name in \
- install) prog='ginstall'; argv=$$name;; \
- test) prog='['; argv='[';; \
- *) prog=$$name; argv=$$prog;; \
- esac; \
- rm -f $@ $@-t \
- && t=$*.td \
- && rm -rf $$t \
- && $(MKDIR_P) $$t \
2015-07-04 14:44:30 +02:00
- && (cd $$t && $(LN_S) '$(abs_top_builddir)/src/'$$prog$(EXEEXT) \
- $$argv$(EXEEXT)) \
2016-01-20 23:49:00 +01:00
- && : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \
- && export SOURCE_DATE_EPOCH && $(run_help2man) \
2015-06-13 01:03:31 +02:00
- --source='$(PACKAGE_STRING)' \
- --include=$(srcdir)/man/$$name.x \
2015-07-04 14:44:30 +02:00
- --output=$$t/$$name.1 \
- --info-page='\(aq(coreutils) '$$name' invocation\(aq' \
- $$t/$$argv$(EXEEXT) \
2015-06-13 01:03:31 +02:00
- && sed \
- -e 's|$*\.td/||g' \
- -e '/For complete documentation/d' \
- $$t/$$name.1 > $@-t \
- && rm -rf $$t \
- && chmod a-w $@-t \
- && mv $@-t $@
2016-12-01 03:34:29 +01:00
+ # Use man pages generated by help2man in the host build.
2015-06-13 01:03:31 +02:00
+ cp $(top_srcdir)/../host-build/$@ $@
.PHONY: check-root
check-root:
$(MAKE) check TESTS='$(root_tests)' SUBDIRS=.