]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
tools/{c,o}xenstored: Don't link against libsystemd
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Jul 2024 12:19:25 +0000 (14:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Jul 2024 12:19:25 +0000 (14:19 +0200)
Use the local freestanding wrapper instead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Christian Lindig <christian.lindig@cloud.com>
master commit: caf864482689a5dd6a945759b6372bb260d49665
master date: 2024-05-23 15:04:40 +0100

tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/systemd_stubs.c
tools/xenstore/Makefile
tools/xenstore/xenstored_core.c

index 6f7333926e9d0f11d40a3f5d0fb0573447e0fcbb..48b47448f2eb19e96d6a7ccb07a77f0b82656397 100644 (file)
@@ -4,8 +4,7 @@ include $(OCAML_TOPLEVEL)/common.make
 
 # Include configure output (config.h)
 CFLAGS += -include $(XEN_ROOT)/tools/config.h
-CFLAGS-$(CONFIG_SYSTEMD)  += $(SYSTEMD_CFLAGS)
-LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS)
+CFLAGS-$(CONFIG_SYSTEMD)  += $(CFLAGS_xeninclude)
 
 CFLAGS  += $(CFLAGS-y)
 CFLAGS  += $(APPEND_CFLAGS)
index f4c875075abe4c18d820759a866db41afbe34963..7dbbdd35bf30e05b41ef9b9c12c8cc325d16c765 100644 (file)
@@ -25,7 +25,7 @@
 
 #if defined(HAVE_SYSTEMD)
 
-#include <systemd/sd-daemon.h>
+#include <xen-sd-notify.h>
 
 CAMLprim value ocaml_sd_notify_ready(value ignore)
 {
index ce7a68178f1aded55a40d10e17671f1812a6e358..f41d04304f871be621a0175a8054b66a30bdf1c2 100644 (file)
@@ -9,11 +9,6 @@ xenstored: LDLIBS += $(LDLIBS_libxenctrl)
 xenstored: LDLIBS += -lrt
 xenstored: LDLIBS += $(SOCKET_LIBS)
 
-ifeq ($(CONFIG_SYSTEMD),y)
-$(XENSTORED_OBJS-y): CFLAGS += $(SYSTEMD_CFLAGS)
-xenstored: LDLIBS += $(SYSTEMD_LIBS)
-endif
-
 xenstore: LDLIBS += $(LDLIBS_libxenstore)
 xenstore: LDLIBS += $(LDLIBS_libxentoolcore)
 xenstore: LDLIBS += $(SOCKET_LIBS)
index 09b5d0656fc40c60ec2ba30e7e548caf2e0fa780..3b3a9f563ad48cd4335fe364cc5572dbdef99773 100644 (file)
@@ -61,7 +61,7 @@
 #endif
 
 #if defined(XEN_SYSTEMD_ENABLED)
-#include <systemd/sd-daemon.h>
+#include <xen-sd-notify.h>
 #endif
 
 extern xenevtchn_handle *xce_handle; /* in xenstored_domain.c */
@@ -2888,7 +2888,7 @@ int main(int argc, char *argv[])
 #if defined(XEN_SYSTEMD_ENABLED)
        if (!live_update) {
                sd_notify(1, "READY=1");
-               fprintf(stderr, SD_NOTICE "xenstored is ready\n");
+               fprintf(stderr, "xenstored is ready\n");
        }
 #endif