master - build: Stop creating the symlinks in include/ on the fly.
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=cdcea0bf55c170f538c3ffc114792eb3c993f4ac Commit: cdcea0bf55c170f538c3ffc114792eb3c993f4ac Parent: 5c878167a25728fa73a6b7866785a318ba5da7e3 Author: Joe Thornber <[email protected]> AuthorDate: Fri Apr 27 16:06:59 2018 +0100 Committer: Joe Thornber <[email protected]> CommitterDate: Fri Apr 27 16:06:59 2018 +0100
build: Stop creating the symlinks in include/ on the fly.
Git handles symlinks, tar handles symlinks. So I've just put the links themselves into git.
This simplifies dependencies a little, and stop some build loops I was hitting.
External build dir now works too.
--- configure | 3 +- configure.in | 1 - include/.gitignore | 6 +-- include/.symlinks.in | 80 -------------------------------------- include/Makefile.in | 20 +--------- include/activate.h | 1 + include/archiver.h | 1 + include/bcache.h | 1 + include/btree.h | 1 + include/clvm.h | 1 + include/config-util.h | 1 + include/config.h | 1 + include/config_settings.h | 1 + include/crc.h | 1 + include/daemon-client.h | 1 + include/daemon-io.h | 1 + include/defaults.h | 1 + include/dev-cache.h | 1 + include/dev-ext-udev-constants.h | 1 + include/dev-type.h | 1 + include/device-types.h | 1 + include/device.h | 1 + include/display.h | 1 + include/dm-ioctl.h | 1 + include/dm-log-userspace.h | 1 + include/dm-logging.h | 1 + include/dmlib.h | 1 + include/filter.h | 1 + include/format-text.h | 1 + include/format1.h | 1 + include/format_pool.h | 1 + include/intl.h | 1 + include/kdev_t.h | 1 + include/label.h | 1 + include/last-path-component.h | 1 + include/lib.h | 1 + include/libdevmapper-event.h | 1 + include/libdevmapper.h | 1 + include/locking.h | 1 + include/log.h | 1 + include/lv.h | 1 + include/lv_alloc.h | 1 + include/lvm-exec.h | 1 + include/lvm-file.h | 1 + include/lvm-flock.h | 1 + include/lvm-globals.h | 1 + include/lvm-logging.h | 1 + include/lvm-maths.h | 1 + include/lvm-percent.h | 1 + include/lvm-signal.h | 1 + include/lvm-string.h | 1 + include/lvm-wrappers.h | 1 + include/lvm2app.h | 1 + include/lvm2cmd.h | 1 + include/lvmcache.h | 1 + include/lvmetad-client.h | 1 + include/lvmetad.h | 1 + include/lvmlockd-client.h | 1 + include/lvmlockd.h | 1 + include/lvmnotify.h | 1 + include/lvmpolld-client.h | 1 + include/lvmpolld-protocol.h | 1 + include/memlock.h | 1 + include/metadata-exported.h | 1 + include/metadata.h | 1 + include/pogen.h | 1 + include/polldaemon.h | 1 + include/polling_ops.h | 1 + include/prop_common.h | 1 + include/properties.h | 1 + include/pv.h | 1 + include/pv_alloc.h | 1 + include/report.h | 1 + include/segtype.h | 1 + include/sharedlib.h | 1 + include/str_list.h | 1 + include/targets.h | 1 + include/text_export.h | 1 + include/text_import.h | 1 + include/tool.h | 1 + include/toolcontext.h | 1 + include/util.h | 1 + include/uuid.h | 1 + include/vg.h | 1 + include/xlate.h | 1 + make.tmpl.in | 8 +-- 86 files changed, 87 insertions(+), 111 deletions(-)
configure +1 -1
@@ -15689,7 +15689,7 @@ _ACEOF ################################################################################ -ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmfilemapd/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmetad/Makefile daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile include/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/ Makefile lib/cache_segtype/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile python/Makefile python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cluster_activation_red_hat.sh scripts/lvm2_cluster_activation_systemd_red_hat.service scripts/lvm2_clvmd_systemd_red_hat.service scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_h at.socket scripts/lvm2_lvmlockd_systemd_red_hat.service scripts/lvm2_lvmlocking_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_pvscan_systemd_red_hat at .service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile test/api/Makefile unit-test/Makefile tools/Makefile udev/Makefile" +ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmfilemapd/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmetad/Makefile daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile include/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile lib/cache _segtype/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile python/Makefile python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cluster_activation_red_hat.sh scripts/lvm2_cluster_activation_systemd_red_hat.service scripts/lvm2_clvmd_systemd_red_hat.service scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/
lvm2_lvmlockd_systemd_red_hat.service scripts/lvm2_lvmlocking_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_pvscan_systemd_red_hat at .service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile test/api/Makefile unit-test/Makefile tools/Makefile udev/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -16411,7 +16411,6 @@ do
"conf/lvmlocal.conf") CONFIG_FILES="$CONFIG_FILES conf/lvmlocal.conf" ;;
"conf/command_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/command_profile_template.profile" ;;
"conf/metadata_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/metadata_profile_template.profile" ;;
- "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
"lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;configure.in +0 -1
@@ -2194,7 +2194,6 @@ conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile -include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile
include/.gitignore +2 -4
@@ -1,4 +1,2 @@ -.symlinks -.symlinks_created - -*.h +configure.h +lvm-version.h
include/.symlinks.in deleted +0 -80
80 lines not on this page · raw message
include/Makefile.in +1 -19
@@ -18,22 +18,4 @@ top_builddir = @top_builddir@ include $(top_builddir)/make.tmpl -all: .symlinks_created - -LINKS := $(shell find . -maxdepth 1 -type l) - -.symlinks_created: .symlinks -ifneq (,$(firstword $(LINKS))) - $(RM) $(LINKS) -endif - for i in `cat $<`; do $(LN_S) $$i ; done - touch $@ - -pofile: all - -device-mapper: all - -cflow: all - -DISTCLEAN_TARGETS += .symlinks configure.h lvm-version.h -CLEAN_TARGETS += $(LINKS) .include_symlinks .symlinks_created +DISTCLEAN_TARGETS += configure.h lvm-version.h
include/activate.h new file +1 -0
@@ -0,0 +1 @@ +../lib/activate/activate.h
include/archiver.h new file +1 -0
@@ -0,0 +1 @@ +../lib/format_text/archiver.h
include/bcache.h new file +1 -0
@@ -0,0 +1 @@ +../lib/device/bcache.h
include/btree.h new file +1 -0
@@ -0,0 +1 @@ +../lib/datastruct/btree.h
include/clvm.h new file +1 -0
@@ -0,0 +1 @@ +../daemons/clvmd/clvm.h
include/config-util.h new file +1 -0
@@ -0,0 +1 @@ +../libdaemon/client/config-util.h
include/config.h new file +1 -0
@@ -0,0 +1 @@ +../lib/config/config.h
include/config_settings.h new file +1 -0
@@ -0,0 +1 @@ +../lib/config/config_settings.h
include/crc.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/crc.h
include/daemon-client.h new file +1 -0
@@ -0,0 +1 @@ +../libdaemon/client/daemon-client.h
include/daemon-io.h new file +1 -0
@@ -0,0 +1 @@ +../libdaemon/client/daemon-io.h
include/defaults.h new file +1 -0
@@ -0,0 +1 @@ +../lib/config/defaults.h
include/dev-cache.h new file +1 -0
@@ -0,0 +1 @@ +../lib/device/dev-cache.h
include/dev-ext-udev-constants.h new file +1 -0
@@ -0,0 +1 @@ +../lib/device/dev-ext-udev-constants.h
include/dev-type.h new file +1 -0
@@ -0,0 +1 @@ +../lib/device/dev-type.h
include/device-types.h new file +1 -0
@@ -0,0 +1 @@ +../lib/device/device-types.h
include/device.h new file +1 -0
@@ -0,0 +1 @@ +../lib/device/device.h
include/display.h new file +1 -0
@@ -0,0 +1 @@ +../lib/display/display.h
include/dm-ioctl.h new file +1 -0
@@ -0,0 +1 @@ +../libdm/misc/dm-ioctl.h
include/dm-log-userspace.h new file +1 -0
@@ -0,0 +1 @@ +../libdm/misc/dm-log-userspace.h
include/dm-logging.h new file +1 -0
@@ -0,0 +1 @@ +../libdm/misc/dm-logging.h
include/dmlib.h new file +1 -0
@@ -0,0 +1 @@ +../libdm/misc/dmlib.h
include/filter.h new file +1 -0
@@ -0,0 +1 @@ +../lib/filters/filter.h
include/format-text.h new file +1 -0
@@ -0,0 +1 @@ +../lib/format_text/format-text.h
include/format1.h new file +1 -0
@@ -0,0 +1 @@ +../lib/format1/format1.h
include/format_pool.h new file +1 -0
@@ -0,0 +1 @@ +../lib/format_pool/format_pool.h
include/intl.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/intl.h
include/kdev_t.h new file +1 -0
@@ -0,0 +1 @@ +../libdm/misc/kdev_t.h
include/label.h new file +1 -0
@@ -0,0 +1 @@ +../lib/label/label.h
include/last-path-component.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/last-path-component.h
include/lib.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lib.h
include/libdevmapper-event.h new file +1 -0
@@ -0,0 +1 @@ +../daemons/dmeventd/libdevmapper-event.h
include/libdevmapper.h new file +1 -0
@@ -0,0 +1 @@ +../libdm/libdevmapper.h
include/locking.h new file +1 -0
@@ -0,0 +1 @@ +../lib/locking/locking.h
include/log.h new file +1 -0
@@ -0,0 +1 @@ +../lib/log/log.h
include/lv.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/lv.h
include/lv_alloc.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/lv_alloc.h
include/lvm-exec.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-exec.h
include/lvm-file.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-file.h
include/lvm-flock.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-flock.h
include/lvm-globals.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-globals.h
include/lvm-logging.h new file +1 -0
@@ -0,0 +1 @@ +../lib/log/lvm-logging.h
include/lvm-maths.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-maths.h
include/lvm-percent.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-percent.h
include/lvm-signal.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-signal.h
include/lvm-string.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-string.h
include/lvm-wrappers.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/lvm-wrappers.h
include/lvm2app.h new file +1 -0
@@ -0,0 +1 @@ +../liblvm/lvm2app.h
include/lvm2cmd.h new file +1 -0
@@ -0,0 +1 @@ +../tools/lvm2cmd.h
include/lvmcache.h new file +1 -0
@@ -0,0 +1 @@ +../lib/cache/lvmcache.h
include/lvmetad-client.h new file +1 -0
@@ -0,0 +1 @@ +../daemons/lvmetad/lvmetad-client.h
include/lvmetad.h new file +1 -0
@@ -0,0 +1 @@ +../lib/cache/lvmetad.h
include/lvmlockd-client.h new file +1 -0
@@ -0,0 +1 @@ +../daemons/lvmlockd/lvmlockd-client.h
include/lvmlockd.h new file +1 -0
@@ -0,0 +1 @@ +../lib/locking/lvmlockd.h
include/lvmnotify.h new file +1 -0
@@ -0,0 +1 @@ +../lib/notify/lvmnotify.h
include/lvmpolld-client.h new file +1 -0
@@ -0,0 +1 @@ +../lib/lvmpolld/lvmpolld-client.h
include/lvmpolld-protocol.h new file +1 -0
@@ -0,0 +1 @@ +../daemons/lvmpolld/lvmpolld-protocol.h
include/memlock.h new file +1 -0
@@ -0,0 +1 @@ +../lib/mm/memlock.h
include/metadata-exported.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/metadata-exported.h
include/metadata.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/metadata.h
include/pogen.h new file +1 -0
@@ -0,0 +1 @@ +../po/pogen.h
include/polldaemon.h new file +1 -0
@@ -0,0 +1 @@ +../lib/lvmpolld/polldaemon.h
include/polling_ops.h new file +1 -0
@@ -0,0 +1 @@ +../daemons/lvmpolld/polling_ops.h
include/prop_common.h new file +1 -0
@@ -0,0 +1 @@ +../lib/properties/prop_common.h
include/properties.h new file +1 -0
@@ -0,0 +1 @@ +../lib/report/properties.h
include/pv.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/pv.h
include/pv_alloc.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/pv_alloc.h
include/report.h new file +1 -0
@@ -0,0 +1 @@ +../lib/report/report.h
include/segtype.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/segtype.h
include/sharedlib.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/sharedlib.h
include/str_list.h new file +1 -0
@@ -0,0 +1 @@ +../lib/datastruct/str_list.h
include/targets.h new file +1 -0
@@ -0,0 +1 @@ +../lib/activate/targets.h
include/text_export.h new file +1 -0
@@ -0,0 +1 @@ +../lib/format_text/text_export.h
include/text_import.h new file +1 -0
@@ -0,0 +1 @@ +../lib/format_text/text_import.h
include/tool.h new file +1 -0
@@ -0,0 +1 @@ +../tools/tool.h
include/toolcontext.h new file +1 -0
@@ -0,0 +1 @@ +../lib/commands/toolcontext.h
include/util.h new file +1 -0
@@ -0,0 +1 @@ +../lib/misc/util.h
include/uuid.h new file +1 -0
@@ -0,0 +1 @@ +../lib/uuid/uuid.h
include/vg.h new file +1 -0
@@ -0,0 +1 @@ +../lib/metadata/vg.h
include/xlate.h new file +1 -0
@@ -0,0 +1 @@ +../lib/mm/xlate.h
make.tmpl.in +3 -5
@@ -307,12 +307,10 @@ LIB_VERSION_DM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir) LIB_VERSION_APP := $(shell $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}' $(top_srcdir)/VERSION) -INCLUDES += -I$(srcdir) -I$(top_builddir)/include - -INC_LNS = $(top_builddir)/include/.symlinks_created +INCLUDES += -I$(srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include DEPS = $(top_builddir)/make.tmpl $(top_srcdir)/VERSION \ - $(top_builddir)/Makefile $(INC_LNS) + $(top_builddir)/Makefile OBJECTS = $(SOURCES:%.c=%.o) $(CXXSOURCES:%.cpp=%.o) POTFILES = $(SOURCES:%.c=%.pot)
@@ -505,7 +503,7 @@ $(LIB_STATIC): $(OBJECTS) $(Q) $(RM) $@ $(Q) $(AR) rsv $@ $(OBJECTS) > /dev/null -%.d: %.c $(INC_LNS) +%.d: %.c @echo " [DEP] $<" $(Q) $(MKDIR_P) $(dir $@); \ set -e; \