Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
lvm2.31864
bug-1181319_01-Revert-lvmlockd-use-commonly-use...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1181319_01-Revert-lvmlockd-use-commonly-used-define-NOTIFYDBUS_.patch of Package lvm2.31864
From 6e1cf248d4a9520b6e342dc583f1e4f7d4c5f8fa Mon Sep 17 00:00:00 2001 From: David Teigland <teigland@redhat.com> Date: Mon, 16 Sep 2019 11:42:23 -0500 Subject: [PATCH] Revert "lvmlockd: use commonly used define NOTIFYDBUS_SUPPORT" This reverts commit 71af650760c2b75b3c267277f47d8ba235421300. It disabled sd_notify() which broke 'systemctl start lvmlockd'. --- daemons/lvmlockd/Makefile.in | 21 ++++++++++++++------- daemons/lvmlockd/lvmlockd-core.c | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/daemons/lvmlockd/Makefile.in b/daemons/lvmlockd/Makefile.in index dca05b864eaa..9c034014523c 100644 --- a/daemons/lvmlockd/Makefile.in +++ b/daemons/lvmlockd/Makefile.in @@ -38,18 +38,25 @@ TARGETS = lvmlockd lvmlockctl include $(top_builddir)/make.tmpl -CFLAGS += $(EXTRA_EXEC_CFLAGS) $(SYSTEMD_CFLAGS) +CFLAGS += $(EXTRA_EXEC_CFLAGS) INCLUDES += -I$(top_srcdir)/libdaemon/server -LDFLAGS += $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) -LIBS += $(PTHREAD_LIBS) $(SYSTEMD_LIBS) +LDFLAGS += -L$(top_builddir)/libdaemon/server $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) +LIBS += $(RT_LIBS) $(DAEMON_LIBS) $(PTHREAD_LIBS) -lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/server/libdaemonserver.a $(INTERNAL_LIBS) + +ifeq ($(USE_SD_NOTIFY),yes) + CFLAGS += $(shell pkg-config --cflags libsystemd) -DUSE_SD_NOTIFY + LIBS += $(shell pkg-config --libs libsystemd) +endif + +lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/client/libdaemonclient.a \ + $(top_builddir)/libdaemon/server/libdaemonserver.a @echo " [CC] $@" - $(Q) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LOCK_LIBS) $(LIBS) + $(Q) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LOCK_LIBS) -ldaemonserver $(INTERNAL_LIBS) $(LIBS) -lvmlockctl: lvmlockctl.o $(INTERNAL_LIBS) +lvmlockctl: lvmlockctl.o $(top_builddir)/libdaemon/client/libdaemonclient.a @echo " [CC] $@" - $(Q) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) + $(Q) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmlockctl.o $(INTERNAL_LIBS) $(LIBS) install_lvmlockd: lvmlockd @echo " [INSTALL] $<" diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c index 5609ccc6f6c4..39275fb17ee8 100644 --- a/daemons/lvmlockd/lvmlockd-core.c +++ b/daemons/lvmlockd/lvmlockd-core.c @@ -31,7 +31,7 @@ #include <sys/utsname.h> #include <sys/un.h> -#ifdef NOTIFYDBUS_SUPPORT +#ifdef USE_SD_NOTIFY #include <systemd/sd-daemon.h> #endif -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor