diff options
Diffstat (limited to 'meta-webserver/recipes-webadmin/cockpit/files/0001-remove-tests-dep-on-gobject-intro.patch')
-rw-r--r-- | meta-webserver/recipes-webadmin/cockpit/files/0001-remove-tests-dep-on-gobject-intro.patch | 77 |
1 files changed, 29 insertions, 48 deletions
diff --git a/meta-webserver/recipes-webadmin/cockpit/files/0001-remove-tests-dep-on-gobject-intro.patch b/meta-webserver/recipes-webadmin/cockpit/files/0001-remove-tests-dep-on-gobject-intro.patch index 2242190a38..8f70fe9434 100644 --- a/meta-webserver/recipes-webadmin/cockpit/files/0001-remove-tests-dep-on-gobject-intro.patch +++ b/meta-webserver/recipes-webadmin/cockpit/files/0001-remove-tests-dep-on-gobject-intro.patch | |||
@@ -7,71 +7,52 @@ Subject: [PATCH] remove tests dep on gobject-intro | |||
7 | src/ws/Makefile-ws.am | 54 --------------------------------------------------- | 7 | src/ws/Makefile-ws.am | 54 --------------------------------------------------- |
8 | 1 file changed, 54 deletions(-) | 8 | 1 file changed, 54 deletions(-) |
9 | 9 | ||
10 | diff --git a/src/ws/Makefile-ws.am b/src/ws/Makefile-ws.am | ||
11 | index 009130941..34e13d7fe 100644 | ||
12 | --- a/src/ws/Makefile-ws.am | 10 | --- a/src/ws/Makefile-ws.am |
13 | +++ b/src/ws/Makefile-ws.am | 11 | +++ b/src/ws/Makefile-ws.am |
14 | @@ -246,60 +246,6 @@ EXTRA_DIST += \ | 12 | @@ -58,46 +58,6 @@ pam_cockpit_cert_so_LDFLAGS = -shared |
13 | pam_cockpit_cert_so_SOURCES = src/ws/pam_cockpit_cert.c | ||
15 | 14 | ||
16 | # ---------------------------------------------------------------------------------------------------- | 15 | # ----------------------------------------------------------------------------- |
17 | 16 | -# test-server: server for running the html/browser unit tests against | |
18 | -noinst_PROGRAMS += test-server | 17 | - |
19 | -check_PROGRAMS += test-server | 18 | -check_PROGRAMS += test-server |
20 | - | 19 | - |
21 | -GDBUS_CODEGEN_XML = $(srcdir)/src/ws/com.redhat.Cockpit.DBusTests.xml | 20 | -test_server_CPPFLAGS = $(libcockpit_ws_a_CPPFLAGS) $(TEST_CPP) |
21 | -test_server_LDADD = $(libcockpit_ws_a_LIBS) $(TEST_LIBS) | ||
22 | - | ||
23 | -test_server_SOURCES = \ | ||
24 | - src/ws/mock-service.c \ | ||
25 | - src/ws/mock-service.h \ | ||
26 | - src/ws/test-server.c \ | ||
27 | - $(NULL) | ||
22 | - | 28 | - |
29 | -test_server_CPPFLAGS += -I$(top_builddir)/src/ws | ||
30 | -nodist_test_server_SOURCES = $(GDBUS_CODEGEN_GENERATED) | ||
31 | - | ||
32 | -BUILT_SOURCES += $(GDBUS_CODEGEN_GENERATED) | ||
33 | -CLEANFILES += $(GDBUS_CODEGEN_GENERATED) | ||
23 | -GDBUS_CODEGEN_GENERATED = \ | 34 | -GDBUS_CODEGEN_GENERATED = \ |
24 | - src/ws/mock-dbus-tests.h \ | 35 | - src/ws/mock-dbus-tests.h \ |
25 | - src/ws/mock-dbus-tests.c \ | 36 | - src/ws/mock-dbus-tests.c \ |
26 | - $(NULL) | 37 | - $(NULL) |
27 | - | 38 | - |
28 | -# FIXME: --header/--body and --output are only available from GLib 2.56. | 39 | -EXTRA_DIST += $(GDBUS_CODEGEN_XML) |
29 | -# just use --generate-c-code and a bit of dependency ugliness for now | 40 | -GDBUS_CODEGEN_XML = $(srcdir)/src/ws/com.redhat.Cockpit.DBusTests.xml |
41 | - | ||
30 | -GDBUS_CODEGEN_INVOCATION = \ | 42 | -GDBUS_CODEGEN_INVOCATION = \ |
31 | - $(AM_V_GEN) gdbus-codegen \ | 43 | - $(AM_V_GEN) gdbus-codegen \ |
32 | - --interface-prefix com.redhat.Cockpit.DBusTests \ | 44 | - --interface-prefix com.redhat.Cockpit.DBusTests \ |
33 | - --c-namespace Test \ | 45 | - --c-namespace Test \ |
34 | - --c-generate-object-manager \ | 46 | - --c-generate-object-manager \ |
35 | - --generate-c-code src/ws/mock-dbus-tests \ | ||
36 | - $(GDBUS_CODEGEN_XML) | ||
37 | - | ||
38 | -BUILT_SOURCES += $(GDBUS_CODEGEN_GENERATED) | ||
39 | -CLEANFILES += $(GDBUS_CODEGEN_GENERATED) | ||
40 | -EXTRA_DIST += $(GDBUS_CODEGEN_XML) | ||
41 | - | ||
42 | -src/ws/mock-dbus-tests.h: $(GDBUS_CODEGEN_XML) | ||
43 | - $(GDBUS_CODEGEN_INVOCATION) | ||
44 | - | ||
45 | -src/ws/mock-dbus-tests.c: $(GDBUS_CODEGEN_XML) src/ws/mock-dbus-tests.h | ||
46 | - $(GDBUS_CODEGEN_INVOCATION) | ||
47 | - | ||
48 | -test_server_SOURCES = \ | ||
49 | - src/ws/mock-service.c \ | ||
50 | - src/ws/mock-service.h \ | ||
51 | - src/ws/test-server.c \ | ||
52 | - $(NULL) | ||
53 | - | ||
54 | -nodist_test_server_SOURCES = \ | ||
55 | - $(GDBUS_CODEGEN_GENERATED) \ | ||
56 | - $(NULL) | 47 | - $(NULL) |
57 | - | 48 | - |
58 | -test_server_CFLAGS = \ | 49 | -src/ws/mock-dbus-tests.h: $(GDBUS_CODEGEN_XML) |
59 | - -I$(builddir)/src/ws \ | 50 | - $(GDBUS_CODEGEN_INVOCATION) --header --output $@ $< |
60 | - -I$(top_srcdir)/src/ws \ | ||
61 | - -DG_LOG_DOMAIN=\"test-server\" \ | ||
62 | - $(GIO_CFLAGS) \ | ||
63 | - $(COCKPIT_WS_CFLAGS) \ | ||
64 | - $(NULL) | ||
65 | - | 51 | - |
66 | -test_server_LDADD = \ | 52 | -src/ws/mock-dbus-tests.c: $(GDBUS_CODEGEN_XML) |
67 | - $(libcockpit_ws_LIBS) \ | 53 | - $(GDBUS_CODEGEN_INVOCATION) --body --output $@ $< |
68 | - $(GIO_LIBS) \ | ||
69 | - -lpam \ | ||
70 | - $(NULL) | ||
71 | - | 54 | - |
72 | WS_CHECKS = \ | 55 | -# ----------------------------------------------------------------------------- |
73 | test-base64 \ | 56 | # Unit tests |
74 | test-creds \ | 57 | |
75 | -- | 58 | check_SCRIPTS += src/ws/mock-cat-with-init |
76 | 2.11.0 | ||
77 | |||