master - Revert "build: Stop creating the symlinks in include/ on the fly."
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1553993ea1e28222704ac90e1765eef86ea9eff1 Commit: 1553993ea1e28222704ac90e1765eef86ea9eff1 Parent: 3ea862bdfc036f6e5ce08ba01eb706d1d10638cd Author: Joe Thornber <[email protected]> AuthorDate: Tue May 1 20:03:51 2018 +0100 Committer: Joe Thornber <[email protected]> CommitterDate: Tue May 1 20:03:51 2018 +0100
Revert "build: Stop creating the symlinks in include/ on the fly."
This reverts commit cdcea0bf55c170f538c3ffc114792eb3c993f4ac.
--- configure | 3 +- configure.ac | 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 | 10 +++-- 86 files changed, 112 insertions(+), 88 deletions(-)
configure +1 -1
@@ -15583,7 +15583,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/Makefile lib/Makefile lib/locking/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/li blvm2app.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_syst emd_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 test/unit/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/.symlinks include/Makefile lib/Makefile lib/locking/Makefile include/lvm-version.h 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/lv
m2_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 test/unit/Makefile tools/Makefile udev/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -16305,6 +16305,7 @@ 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/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;configure.ac +1 -0
@@ -2128,6 +2128,7 @@ conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile +include/.symlinks include/Makefile lib/Makefile lib/locking/Makefile
include/.gitignore +4 -2
@@ -1,2 +1,4 @@ -configure.h -lvm-version.h +.symlinks +.symlinks_created + +*.h
include/.symlinks.in new file +80 -0
80 lines not on this page · raw message
include/Makefile.in +19 -1
@@ -18,4 +18,22 @@ top_builddir = @top_builddir@ include $(top_builddir)/make.tmpl -DISTCLEAN_TARGETS += configure.h lvm-version.h +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
include/activate.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/activate/activate.h
include/archiver.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/format_text/archiver.h
include/bcache.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/device/bcache.h
include/btree.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/datastruct/btree.h
include/clvm.h deleted +0 -1
@@ -1 +0,0 @@ -../daemons/clvmd/clvm.h
include/config-util.h deleted +0 -1
@@ -1 +0,0 @@ -../libdaemon/client/config-util.h
include/config.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/config/config.h
include/config_settings.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/config/config_settings.h
include/crc.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/crc.h
include/daemon-client.h deleted +0 -1
@@ -1 +0,0 @@ -../libdaemon/client/daemon-client.h
include/daemon-io.h deleted +0 -1
@@ -1 +0,0 @@ -../libdaemon/client/daemon-io.h
include/defaults.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/config/defaults.h
include/dev-cache.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/device/dev-cache.h
include/dev-ext-udev-constants.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/device/dev-ext-udev-constants.h
include/dev-type.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/device/dev-type.h
include/device-types.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/device/device-types.h
include/device.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/device/device.h
include/display.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/display/display.h
include/dm-ioctl.h deleted +0 -1
@@ -1 +0,0 @@ -../libdm/misc/dm-ioctl.h
include/dm-log-userspace.h deleted +0 -1
@@ -1 +0,0 @@ -../libdm/misc/dm-log-userspace.h
include/dm-logging.h deleted +0 -1
@@ -1 +0,0 @@ -../libdm/misc/dm-logging.h
include/dmlib.h deleted +0 -1
@@ -1 +0,0 @@ -../libdm/misc/dmlib.h
include/filter.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/filters/filter.h
include/format-text.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/format_text/format-text.h
include/format1.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/format1/format1.h
include/format_pool.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/format_pool/format_pool.h
include/intl.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/intl.h
include/kdev_t.h deleted +0 -1
@@ -1 +0,0 @@ -../libdm/misc/kdev_t.h
include/label.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/label/label.h
include/last-path-component.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/last-path-component.h
include/lib.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lib.h
include/libdevmapper-event.h deleted +0 -1
@@ -1 +0,0 @@ -../daemons/dmeventd/libdevmapper-event.h
include/libdevmapper.h deleted +0 -1
@@ -1 +0,0 @@ -../libdm/libdevmapper.h
include/locking.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/locking/locking.h
include/log.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/log/log.h
include/lv.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/lv.h
include/lv_alloc.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/lv_alloc.h
include/lvm-exec.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-exec.h
include/lvm-file.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-file.h
include/lvm-flock.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-flock.h
include/lvm-globals.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-globals.h
include/lvm-logging.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/log/lvm-logging.h
include/lvm-maths.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-maths.h
include/lvm-percent.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-percent.h
include/lvm-signal.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-signal.h
include/lvm-string.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-string.h
include/lvm-wrappers.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/lvm-wrappers.h
include/lvm2app.h deleted +0 -1
@@ -1 +0,0 @@ -../liblvm/lvm2app.h
include/lvm2cmd.h deleted +0 -1
@@ -1 +0,0 @@ -../tools/lvm2cmd.h
include/lvmcache.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/cache/lvmcache.h
include/lvmetad-client.h deleted +0 -1
@@ -1 +0,0 @@ -../daemons/lvmetad/lvmetad-client.h
include/lvmetad.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/cache/lvmetad.h
include/lvmlockd-client.h deleted +0 -1
@@ -1 +0,0 @@ -../daemons/lvmlockd/lvmlockd-client.h
include/lvmlockd.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/locking/lvmlockd.h
include/lvmnotify.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/notify/lvmnotify.h
include/lvmpolld-client.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/lvmpolld/lvmpolld-client.h
include/lvmpolld-protocol.h deleted +0 -1
@@ -1 +0,0 @@ -../daemons/lvmpolld/lvmpolld-protocol.h
include/memlock.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/mm/memlock.h
include/metadata-exported.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/metadata-exported.h
include/metadata.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/metadata.h
include/pogen.h deleted +0 -1
@@ -1 +0,0 @@ -../po/pogen.h
include/polldaemon.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/lvmpolld/polldaemon.h
include/polling_ops.h deleted +0 -1
@@ -1 +0,0 @@ -../daemons/lvmpolld/polling_ops.h
include/prop_common.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/properties/prop_common.h
include/properties.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/report/properties.h
include/pv.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/pv.h
include/pv_alloc.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/pv_alloc.h
include/report.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/report/report.h
include/segtype.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/segtype.h
include/sharedlib.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/sharedlib.h
include/str_list.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/datastruct/str_list.h
include/targets.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/activate/targets.h
include/text_export.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/format_text/text_export.h
include/text_import.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/format_text/text_import.h
include/tool.h deleted +0 -1
@@ -1 +0,0 @@ -../tools/tool.h
include/toolcontext.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/commands/toolcontext.h
include/util.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/misc/util.h
include/uuid.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/uuid/uuid.h
include/vg.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/metadata/vg.h
include/xlate.h deleted +0 -1
@@ -1 +0,0 @@ -../lib/mm/xlate.h
make.tmpl.in +6 -4
@@ -306,10 +306,12 @@ 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_srcdir)/include -I$(top_builddir)/include +INCLUDES += -I$(srcdir) -I$(top_builddir)/include + +INC_LNS = $(top_builddir)/include/.symlinks_created DEPS = $(top_builddir)/make.tmpl $(top_srcdir)/VERSION \ - $(top_builddir)/Makefile + $(top_builddir)/Makefile $(INC_LNS) OBJECTS = $(SOURCES:%.c=%.o) $(CXXSOURCES:%.cpp=%.o) POTFILES = $(SOURCES:%.c=%.pot)
@@ -504,9 +506,9 @@ $(LIB_STATIC): $(OBJECTS) $(Q) $(RM) $@ $(Q) $(AR) rsv $@ $(OBJECTS) > /dev/null -%.d: ; +%.d: $(INC_LNS) .PRECIOUS: %.d - + %.mo: %.po @echo " [MSGFMT] $<" $(Q) $(MSGFMT) -o $@ $<