summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch
blob: 038a67209554976a77d65db0d88eb3bda68b41e6 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From 5ae38baadd40a996da3d19a147f37e7f1f3355bf Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@intel.com>
Date: Tue, 12 Apr 2016 15:51:54 +0100
Subject: [PATCH] rsync: remove upstream's rebuild logic

Remove the Makefile rules to reinvoke autoconf, they're not out-of-tree safe and
generally overcomplicated, and we ensure that autoreconf is invoked if required.

Upstream-Status: Inappropriate
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 Makefile.in | 50 --------------------------------------------------
 1 file changed, 50 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 31ddc43..41c9a93 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -167,56 +167,6 @@ gen: conf proto.h man
 gensend: gen
 	rsync -aic $(GENFILES) $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/
 
-aclocal.m4: $(srcdir)/m4/*.m4
-	aclocal -I $(srcdir)/m4
-
-configure.sh config.h.in: configure.ac aclocal.m4
-	@if test -f configure.sh; then cp -p configure.sh configure.sh.old; else touch configure.sh.old; fi
-	@if test -f config.h.in; then cp -p config.h.in config.h.in.old; else touch config.h.in.old; fi
-	autoconf -o configure.sh
-	autoheader && touch config.h.in
-	@if diff configure.sh configure.sh.old >/dev/null 2>&1; then \
-	    echo "configure.sh is unchanged."; \
-	    rm configure.sh.old; \
-	else \
-	    echo "configure.sh has CHANGED."; \
-	fi
-	@if diff config.h.in config.h.in.old >/dev/null 2>&1; then \
-	    echo "config.h.in is unchanged."; \
-	    rm config.h.in.old; \
-	else \
-	    echo "config.h.in has CHANGED."; \
-	fi
-	@if test -f configure.sh.old -o -f config.h.in.old; then \
-	    if test "$(MAKECMDGOALS)" = reconfigure; then \
-		echo 'Continuing with "make reconfigure".'; \
-	    else \
-		echo 'You may need to run:'; \
-		echo '  make reconfigure'; \
-		exit 1; \
-	    fi \
-	fi
-
-.PHONY: reconfigure
-reconfigure: configure.sh
-	./config.status --recheck
-	./config.status
-
-Makefile: Makefile.in config.status configure.sh config.h.in
-	@if test -f Makefile; then cp -p Makefile Makefile.old; else touch Makefile.old; fi
-	@./config.status
-	@if diff Makefile Makefile.old >/dev/null 2>&1; then \
-	    echo "Makefile is unchanged."; \
-	    rm Makefile.old; \
-	else \
-	    if test "$(MAKECMDGOALS)" = reconfigure; then \
-		echo 'Continuing with "make reconfigure".'; \
-	    else \
-		echo "Makefile updated -- rerun your make command."; \
-		exit 1; \
-	    fi \
-	fi
-
 stunnel-rsyncd.conf: $(srcdir)/stunnel-rsyncd.conf.in Makefile
 	sed 's;\@bindir\@;$(bindir);g' <$(srcdir)/stunnel-rsyncd.conf.in >stunnel-rsyncd.conf