File: 0003-data-build-prevent-appstreamcli-from-accessing-the-n.patch

package info (click to toggle)
ticketbooth 1.0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,808 kB
  • sloc: python: 3,281; makefile: 5; sh: 1
file content (25 lines) | stat: -rw-r--r-- 810 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
From: Arnaud Ferraris <aferraris@debian.org>
Date: Mon, 27 Nov 2023 20:59:28 +0100
Subject: data: build: prevent `appstreamcli` from accessing the network

This causes failures on Debian as build processes can't rely on remote
resources.

Forwarded: not-needed
---
 data/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/meson.build b/data/meson.build
index 459a051..55ca93c 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -34,7 +34,7 @@ appstream_file = i18n.merge_file(
 
 appstreamcli = find_program('appstreamcli', required: false)
 if appstreamcli.found()
-  test('Validate appstream file', appstreamcli, args: ['validate', appstream_file])
+  test('Validate appstream file', appstreamcli, args: ['validate', '--no-net', appstream_file])
 endif
 
 install_data(