Bug#738598: lvm2: Patch for bootstrapping without redhat-cluster (libcman-dev, libdlm-dev)

Daniel Schepler dschepler at gmail.com
Tue Feb 11 02:20:05 UTC 2014


Source: lvm2
Version: 2.02.104-1
Severity: wishlist
Tags: patch

As the subject says: this patch adds a bootstrapping build for lvm2
without libcman-dev and libdlm-dev available.  This resolves the
Build-Depends cycle: lvm2 Build-Depends on libcman-dev and libdlm-dev;
redhat-cluster Build-Depends on libvirt-dev; and libvirt Build-Depends
on lvm2.
-- 
Daniel Schepler
-------------- next part --------------
diff -urN lvm2-2.02.104.old/debian/rules lvm2-2.02.104/debian/rules
--- lvm2-2.02.104.old/debian/rules	2014-01-29 12:36:11.000000000 -0800
+++ lvm2-2.02.104/debian/rules	2014-02-10 18:12:03.381632074 -0800
@@ -50,6 +50,14 @@
 	--infodir=\$${prefix}/share/info \
 	--with-confdir=\$${exec_prefix}/etc
 
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+CONFIGURE += \
+	--with-clvmd=cman,corosync,openais
+else
+CONFIGURE += \
+	--with-clvmd=openais
+endif
+
 ifneq (,$(findstring $(DEB_HOST_ARCH), arm armeb hppa mips mipsel))
 CONFIGURE_FLAGS += --disable-o_direct
 endif
@@ -78,7 +86,6 @@
 		--libdir=\$${exec_prefix}/lib/$(DEB_HOST_MULTIARCH) \
 		--with-usrlibdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
 		--with-optimisation="$(CFLAGS_OPT_DEB)" \
-		--with-clvmd=cman,corosync,openais \
 		--with-cluster=internal \
 		--with-device-uid=0 \
 		--with-device-gid=6 \
@@ -254,7 +261,10 @@
 	+$(MAKE_SELF) install-base
 
 binary-indep:
-binary-arch: $(addprefix install_,libdevmapper libdevmapper-udeb libdevmapper-event libdevmapper-dev dmsetup dmsetup-udeb dmeventd liblvm2 lvm2 lvm2-udeb clvm)
+binary-arch: $(addprefix install_,libdevmapper libdevmapper-udeb libdevmapper-event libdevmapper-dev dmsetup dmsetup-udeb dmeventd liblvm2 lvm2 lvm2-udeb)
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+binary-arch: install_clvm
+endif
 
 binary: binary-indep binary-arch
 


More information about the pkg-lvm-maintainers mailing list