forked from QubesOS/qubes-vmm-xen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1000-Do-not-access-network-during-the-build.patch
57 lines (51 loc) · 1.61 KB
/
1000-Do-not-access-network-during-the-build.patch
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
From 22eb30cf82065492dfc76a46ffde2cd50ab6a2e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
Date: Wed, 16 Nov 2022 01:35:00 +0100
Subject: [PATCH] Do not access network during the build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
If chosen configure options would require downloading anything, fail the
build instead of downloading anything and using without integrity
verification.
Signed-off-by: Marek Marczykowski-Górecki <[email protected]>
---
config/StdGNU.mk | 2 +-
m4/fetcher.m4 | 13 +------------
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/config/StdGNU.mk b/config/StdGNU.mk
index aaa0d007f721..e9dd6e96556e 100644
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -20,7 +20,7 @@ OBJDUMP = $(CROSS_COMPILE)objdump
SIZEUTIL = $(CROSS_COMPILE)size
# Allow git to be wrappered in the environment
-GIT ?= git
+GIT ?= false
INSTALL = install
INSTALL_DIR = $(INSTALL) -d -m0755 -p
diff --git a/m4/fetcher.m4 b/m4/fetcher.m4
index c1a72c189c8f..e800e29366b9 100644
--- a/m4/fetcher.m4
+++ b/m4/fetcher.m4
@@ -1,16 +1,5 @@
AC_DEFUN([AX_CHECK_FETCHER], [
-AC_PATH_PROG([WGET],[wget], [no])
AC_PATH_PROG([FALSE],[false], [/bin/false])
-AS_IF([test x"$WGET" != x"no"], [
- FETCHER="$WGET -c -O"
-], [
- AC_PATH_PROG([FTP],[ftp], [no])
- AS_IF([test x"$FTP" != x"no"], [
- FETCHER="$FTP -o"
- ], [
- FETCHER="$FALSE"
- AC_MSG_WARN([cannot find wget or ftp])
- ])
-])
+FETCHER="false"
AC_SUBST(FETCHER)
])
--
2.44.0