File: Disable-builds-trying-to-access-network.patch

package info (click to toggle)
aflplusplus 4.21c-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,496 kB
  • sloc: ansic: 110,361; cpp: 16,725; sh: 4,855; python: 3,793; makefile: 963; javascript: 515; java: 43; sql: 3; xml: 1
file content (110 lines) | stat: -rw-r--r-- 3,016 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
From: Sophie Brun <sophie@offensive-security.com>
Date: Mon, 5 Dec 2022 11:02:54 +0100
Subject: Disable specific mode requiring network access during build

To build frida, qemu and unicorn, it tries to download software during
the build.  It does not work on a minimal installation because curl, git
and wget are not installed. But it will download software on not minimal
install.

Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025454
Forwarded: no-needed
---
 GNUmakefile | 58 +++++++++++++++++++++++++++++-----------------------------
 1 file changed, 29 insertions(+), 29 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index 2a91b05..9cef392 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -658,26 +658,26 @@ endif
 	-$(MAKE) -C utils/socket_fuzzing
 	-$(MAKE) -C utils/argv_fuzzing
 	# -$(MAKE) -C utils/plot_ui
-	-$(MAKE) -C frida_mode
+#	-$(MAKE) -C frida_mode
 ifneq "$(SYS)" "Darwin"
 ifeq "$(ARCH)" "aarch64"
   ifndef NO_CORESIGHT
 	-$(MAKE) -C coresight_mode
   endif
 endif
-ifeq "$(SYS)" "Linux"
-ifndef NO_NYX
-	-cd nyx_mode && ./build_nyx_support.sh
-endif
-endif
-	-cd qemu_mode && sh ./build_qemu_support.sh
-  ifeq "$(ARCH)" "aarch64"
-    ifndef NO_UNICORN_ARM64
-	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
-    endif
-  else
-	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
-  endif
+#ifeq "$(SYS)" "Linux"
+#ifndef NO_NYX
+#	-cd nyx_mode && ./build_nyx_support.sh
+#endif
+#endif
+#	-cd qemu_mode && sh ./build_qemu_support.sh
+#  ifeq "$(ARCH)" "aarch64"
+#    ifndef NO_UNICORN_ARM64
+#	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
+#    endif
+#  else
+#	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
+#  endif
 endif
 
 .PHONY: binary-only
@@ -690,26 +690,26 @@ endif
 	-$(MAKE) -C utils/socket_fuzzing
 	-$(MAKE) -C utils/argv_fuzzing
 	# -$(MAKE) -C utils/plot_ui
-	-$(MAKE) -C frida_mode
+#	-$(MAKE) -C frida_mode
 ifneq "$(SYS)" "Darwin"
 ifeq "$(ARCH)" "aarch64"
   ifndef NO_CORESIGHT
 	-$(MAKE) -C coresight_mode
   endif
 endif
-ifeq "$(SYS)" "Linux"
-ifndef NO_NYX
-	-cd nyx_mode && ./build_nyx_support.sh
-endif
-endif
-	-cd qemu_mode && sh ./build_qemu_support.sh
-  ifeq "$(ARCH)" "aarch64"
-    ifndef NO_UNICORN_ARM64
-	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
-    endif
-  else
-	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
-  endif
+#ifeq "$(SYS)" "Linux"
+#ifndef NO_NYX
+#	-cd nyx_mode && ./build_nyx_support.sh
+#endif
+#endif
+#	-cd qemu_mode && sh ./build_qemu_support.sh
+#  ifeq "$(ARCH)" "aarch64"
+#    ifndef NO_UNICORN_ARM64
+#	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
+#    endif
+#  else
+#	-cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
+#  endif
 endif
 	@echo
 	@echo
@@ -748,7 +748,7 @@ endif
 	# -$(MAKE) -C utils/plot_ui
 ifeq "$(SYS)" "Linux"
 ifndef NO_NYX
-	-cd nyx_mode && ./build_nyx_support.sh
+#	-cd nyx_mode && ./build_nyx_support.sh
 endif
 endif
 	@echo