File: dont-rebuild-install.patch

package info (click to toggle)
wasi-libc 0.0~git20240708.3f43ea9-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 15,208 kB
  • sloc: ansic: 99,185; asm: 6,743; makefile: 1,083; sh: 718; awk: 301; sed: 9
file content (60 lines) | stat: -rw-r--r-- 1,572 bytes parent folder | download
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
From: Ximin Luo <infinity0@debian.org>
Date: Thu, 5 Sep 2024 15:14:01 +0200
Subject: Prevent spurious rebuilds

Forwarded: not-needed
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 0d2a314..f8d4ed2 100644
--- a/Makefile
+++ b/Makefile
@@ -738,12 +738,15 @@ ifeq ($(WASI_SNAPSHOT), p2)
 		> "$(SYSROOT_INC)/__wasi_snapshot.h"
 endif
 
+	touch $@
+
 startup_files: include_dirs $(LIBC_BOTTOM_HALF_CRT_OBJS)
 	#
 	# Install the startup files (crt1.o etc).
 	#
 	mkdir -p "$(SYSROOT_LIB)" && \
 	cp $(LIBC_BOTTOM_HALF_CRT_OBJS) "$(SYSROOT_LIB)"
+	touch $@
 
 # TODO: As of this writing, wasi_thread_start.s uses non-position-independent
 # code, and I'm not sure how to make it position-independent.  Once we've done
@@ -763,6 +766,7 @@ endif
 endif
 
 libc_so: include_dirs $(LIBC_SO)
+	touch $@
 
 STATIC_LIBS = \
     $(SYSROOT_LIB)/libc.a \
@@ -779,6 +783,7 @@ STATIC_LIBS += \
 endif
 
 libc: include_dirs $(STATIC_LIBS)
+	touch $@
 
 dummy_libs:
 	#
@@ -793,6 +798,7 @@ finish: startup_files libc dummy_libs
 	#
 	# The build succeeded! The generated sysroot is in $(SYSROOT).
 	#
+	touch $@
 
 # The check for defined and undefined symbols expects there to be a heap
 # alloctor (providing malloc, calloc, free, etc). Skip this step if the build
@@ -987,5 +993,6 @@ clean:
 	$(RM) -r "$(BINDING_WORK_DIR)"
 	$(RM) -r "$(OBJDIR)"
 	$(RM) -r "$(SYSROOT)"
+	$(RM) -f include_dirs startup_files libc finish
 
 .PHONY: default startup_files libc libc_so dummy_libs finish install include_dirs clean check-symbols bindings