From eebf070d32b491fb08f7defccc08f9bcefb9aba2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 4 Jun 2018 12:16:30 +0200 Subject: [PATCH 1/2] build: remove any leftover file In case repository is used after building older version of lvm2 (i.e. git bisect) make sure clean erases any possible old symlinks. --- include/.gitignore | 3 -- include/Makefile.in | 83 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 82 insertions(+), 4 deletions(-) diff --git a/include/.gitignore b/include/.gitignore index 4971e071a..424c745c1 100644 --- a/include/.gitignore +++ b/include/.gitignore @@ -1,4 +1 @@ -.symlinks -.symlinks_created - *.h diff --git a/include/Makefile.in b/include/Makefile.in index cbbc00386..efe263c27 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -1,6 +1,6 @@ # # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. -# Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved. +# Copyright (C) 2004-2018 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. # @@ -19,3 +19,84 @@ top_builddir = @top_builddir@ include $(top_builddir)/make.tmpl DISTCLEAN_TARGETS += .configure.h lvm-version.h +CLEAN_TARGETS += \ + activate.h \ + archiver.h \ + bcache.h \ + btree.h \ + clvm.h \ + config-util.h \ + config.h \ + config_settings.h \ + crc.h \ + daemon-client.h \ + daemon-io.h \ + defaults.h \ + dev-cache.h \ + dev-ext-udev-constants.h \ + dev-type.h \ + device-types.h \ + device.h \ + display.h \ + dm-ioctl.h \ + dm-log-userspace.h \ + dm-logging.h \ + dmlib.h \ + filter.h \ + format-text.h \ + format1.h \ + format_pool.h \ + intl.h \ + kdev_t.h \ + label.h \ + last-path-component.h \ + lib.h \ + libdevmapper-event.h \ + libdevmapper.h \ + locking.h \ + log.h \ + lv.h \ + lvm-exec.h \ + lvm-file.h \ + lvm-flock.h \ + lvm-globals.h \ + lvm-logging.h \ + lvm-maths.h \ + lvm-percent.h \ + lvm-signal.h \ + lvm-string.h \ + lvm-wrappers.h \ + lvm2app.h \ + lvm2cmd.h \ + lvmcache.h \ + lvmetad-client.h \ + lvmetad.h \ + lvmlockd-client.h \ + lvmlockd.h \ + lvmnotify.h \ + lvmpolld-client.h \ + lvmpolld-protocol.h \ + lv_alloc.h \ + memlock.h \ + metadata-exported.h \ + metadata.h \ + pogen.h \ + polldaemon.h \ + polling_ops.h \ + properties.h \ + prop_common.h \ + pv.h \ + pv_alloc.h \ + report.h \ + segtype.h \ + sharedlib.h \ + str_list.h \ + targets.h \ + text_export.h \ + text_import.h \ + tool.h \ + toolcontext.h \ + util.h \ + uuid.h \ + vg.h \ + xlate.h From 1140d70893e4f246a46fa360d20838ceafa690ec Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 4 Jun 2018 12:25:48 +0200 Subject: [PATCH 2/2] build: fixes --- daemons/lvmlockd/Makefile.in | 6 ++++-- daemons/lvmpolld/Makefile.in | 3 ++- lib/activate/activate.h | 2 +- lib/metadata/lv.c | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/daemons/lvmlockd/Makefile.in b/daemons/lvmlockd/Makefile.in index 9e2297f8a..7c58fe25b 100644 --- a/daemons/lvmlockd/Makefile.in +++ b/daemons/lvmlockd/Makefile.in @@ -42,10 +42,12 @@ LIBS += $(RT_LIBS) $(DAEMON_LIBS) $(PTHREAD_LIBS) lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/client/libdaemonclient.a \ $(top_builddir)/libdaemon/server/libdaemonserver.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LOCK_LIBS) -ldaemonserver $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LOCK_LIBS) -ldaemonserver \ + $(top_builddir)/device_mapper/libdevice-mapper.a $(LIBS) lvmlockctl: lvmlockctl.o $(top_builddir)/libdaemon/client/libdaemonclient.a - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmlockctl.o $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmlockctl.o \ + $(top_builddir)/device_mapper/libdevice-mapper.a $(LIBS) install_lvmlockd: lvmlockd $(INSTALL_PROGRAM) -D $< $(sbindir)/$(