unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob b494ba8b43c93aa3e2fcba9cbcb281210c9b96cb 1707 bytes (raw)
name: gnu/packages/patches/ell-fix-dbus-tests.patch 	 # note: path name is non-authoritative(*)

 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
 
--- a/Makefile.am
+++ b/Makefile.am
@@ -140,6 +140,7 @@
 ell_libell_private_la_SOURCES = $(ell_libell_la_SOURCES)
 
 AM_CFLAGS = -fvisibility=hidden -DUNITDIR=\""$(top_srcdir)/unit/"\" \
+				-DDBUS_DAEMON=\""$(DBUS_DAEMONDIR)/dbus-daemon"\" \
 				-DCERTDIR=\""$(top_builddir)/unit/"\"
 
 pkgconfigdir = $(libdir)/pkgconfig
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,8 @@
 
 AC_PREFIX_DEFAULT(/usr/local)
 
+PKG_PROG_PKG_CONFIG
+
 COMPILER_FLAGS
 
 AC_LANG_C
@@ -131,6 +133,10 @@
 	AC_CHECK_PROG(have_xxd, [xxd], [yes], [no])
 fi
 
+PKG_CHECK_MODULES(DBUS, dbus-1, dummy=yes,
+			AC_MSG_ERROR(D-Bus is required for running tests))
+PKG_CHECK_VAR(DBUS_DAEMONDIR, dbus-1, daemondir)
+
 AM_CONDITIONAL(DBUS_TESTS, test "${little_endian}" = "yes")
 AM_CONDITIONAL(CERT_TESTS, test "${have_openssl}" = "yes")
 
--- a/unit/test-dbus-message-fds.c
+++ b/unit/test-dbus-message-fds.c
@@ -51,7 +51,7 @@
 	char *prg_envp[1];
 	pid_t pid;
 
-	prg_argv[0] = "/usr/bin/dbus-daemon";
+	prg_argv[0] = DBUS_DAEMON;
 	prg_argv[1] = "--nopidfile";
 	prg_argv[2] = "--nofork";
 	prg_argv[3] = "--config-file=" UNITDIR "dbus.conf";
--- a/unit/test-dbus-properties.c
+++ b/unit/test-dbus-properties.c
@@ -48,7 +48,7 @@
 	char *prg_envp[1];
 	pid_t pid;
 
-	prg_argv[0] = "/usr/bin/dbus-daemon";
+	prg_argv[0] = DBUS_DAEMON;
 	prg_argv[1] = "--nopidfile";
 	prg_argv[2] = "--nofork";
 	prg_argv[3] = "--config-file=" UNITDIR "dbus.conf";
--- a/unit/test-dbus.c
+++ b/unit/test-dbus.c
@@ -45,7 +45,7 @@
 	char *prg_envp[1];
 	pid_t pid;
 
-	prg_argv[0] = "/usr/bin/dbus-daemon";
+	prg_argv[0] = DBUS_DAEMON;
 	prg_argv[1] = "--nopidfile";
 	prg_argv[2] = "--nofork";
 	prg_argv[3] = "--config-file=" UNITDIR "dbus.conf";

debug log:

solving b494ba8b43 ...
found b494ba8b43 in https://yhetil.org/guix-patches/20190923182027.24257-1-brice@waegenei.re/

applying [1/1] https://yhetil.org/guix-patches/20190923182027.24257-1-brice@waegenei.re/
diff --git a/gnu/packages/patches/ell-fix-dbus-tests.patch b/gnu/packages/patches/ell-fix-dbus-tests.patch
new file mode 100644
index 0000000000..b494ba8b43

1:11: trailing whitespace.
 
1:14: space before tab in indent.
 				-DCERTDIR=\""$(top_builddir)/unit/"\"
1:15: trailing whitespace.
 
1:20: trailing whitespace.
 
1:22: trailing whitespace.
 
Checking patch gnu/packages/patches/ell-fix-dbus-tests.patch...
Applied patch gnu/packages/patches/ell-fix-dbus-tests.patch cleanly.
warning: squelched 22 whitespace errors
warning: 27 lines add whitespace errors.

index at:
100644 b494ba8b43c93aa3e2fcba9cbcb281210c9b96cb	gnu/packages/patches/ell-fix-dbus-tests.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).