[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc15-11-11-ge2bd834
Giuseppe Iuculano
iuculano at debian.org
Sun Nov 1 17:44:33 UTC 2009
The following commit has been merged in the master branch:
commit e2bd834a5dd3bf4f6bf8cdc5ec26421850f54e0a
Author: Giuseppe Iuculano <iuculano at debian.org>
Date: Sun Nov 1 18:43:38 2009 +0100
debian/patches/02_disable_dmreg.patch: Disabled all dmreg stuff
diff --git a/debian/patches/02_disable_dmreg.patch b/debian/patches/02_disable_dmreg.patch
new file mode 100644
index 0000000..c9e43fe
--- /dev/null
+++ b/debian/patches/02_disable_dmreg.patch
@@ -0,0 +1,134 @@
+Disabled all dmreg stuff
+--- a/1.0.0.rc16/lib/Makefile.in
++++ b/1.0.0.rc16/lib/Makefile.in
+@@ -45,10 +45,6 @@ SOURCES=\
+ format/ddf/ddf1_dump.c \
+ format/partition/dos.c
+
+-ifeq ("@STATIC_LINK@", "no")
+- SOURCES += register/dmreg.c
+-endif
+-
+ OBJECTS=$(SOURCES:%.c=%.o)
+
+ LIB_STATIC=$(top_srcdir)/lib/libdmraid.a
+@@ -63,8 +59,8 @@ ifeq ("@KLIBC@", "no")
+ ifeq ("@STATIC_LINK@", "no")
+ LIB_SHARED=$(top_srcdir)/lib/libdmraid.so
+ LIB_EVENTS_SHARED=$(top_srcdir)/lib/$(LIB_EVENTS_NAME).so
+- TARGETS += $(LIB_SHARED) $(LIB_EVENTS_SHARED)
+- INSTALL_TARGETS += $(LIB_SHARED) $(LIB_EVENTS_SHARED)
++ TARGETS += $(LIB_SHARED)
++ INSTALL_TARGETS += $(LIB_SHARED)
+ ifeq ("@DIETLIBC@", "yes")
+ LIBDMRAIDLIBS += -ldevmapper_dietc
+ else
+--- a/1.0.0.rc16/make.tmpl.in
++++ b/1.0.0.rc16/make.tmpl.in
+@@ -137,7 +137,7 @@ $(TARGETS): $(OBJECTS)
+
+ %.so: $(OBJECTS)
+ $(CC) -shared -Wl,-soname,$(notdir $@).$(DMRAID_LIB_VERSION) \
+- -Wl,--version-script,.export.sym $(OBJECTS) $(LIBDMRAIDLIBS) -o $@ -ldevmapper-event
++ -Wl,--version-script,.export.sym $(OBJECTS) $(LIBDMRAIDLIBS) -o $@
+
+ $(LIB_STATIC): $(OBJECTS)
+ $(RM) $@
+--- a/1.0.0.rc16/tools/Makefile.in
++++ b/1.0.0.rc16/tools/Makefile.in
+@@ -22,12 +22,6 @@ TARGETS=\
+
+ include $(top_srcdir)/make.tmpl
+
+-ifeq ("@KLIBC@", "no")
+- ifeq ("@STATIC_LINK@", "no")
+- TARGETS += dmevent_tool
+- endif
+-endif
+-
+ DMRAIDLIBS=-ldmraid
+
+ ifeq ("@KLIBC@", "yes")
+@@ -37,16 +31,10 @@ else
+ ifeq ("@LIB_SO@", "no")
+ DMRAIDLIBS += -ldevmapper_dietc
+ endif
+- ifeq ("@STATIC_LINK@", "no")
+- DMEVENTTOOLLIBS = -ldevmapper-event_dietc
+- endif
+ else
+ ifeq ("@LIB_SO@", "no")
+ DMRAIDLIBS += -ldevmapper
+ endif
+- ifeq ("@STATIC_LINK@", "no")
+- DMEVENTTOOLLIBS = -ldevmapper-event
+- endif
+ endif
+
+ ifeq ("@LIBSELINUX@", "yes")
+--- a/1.0.0.rc16/lib/.export.sym
++++ b/1.0.0.rc16/lib/.export.sym
+@@ -52,8 +52,6 @@ Base {
+ dso_end_rebuild;
+ hot_spare_add;
+ dso_get_members;
+- dm_register_device;
+- dm_unregister_device;
+ dm_all_monitored;
+ local:
+ *;
+--- a/1.0.0.rc16/lib/activate/activate.c
++++ b/1.0.0.rc16/lib/activate/activate.c
+@@ -849,18 +849,12 @@ enum dm_what { DM_ACTIVATE, DM_REGISTER
+ static int
+ dm_register_for_event(char *dev_name, char *lib_name)
+ {
+-#ifdef DMRAID_AUTOREGISTER
+- dm_register_device(dev_name, lib_name);
+-#endif
+ return 1;
+ }
+
+ static int
+ dm_unregister_for_event(char *dev_name, char *lib_name)
+ {
+-#ifdef DMRAID_AUTOREGISTER
+- dm_unregister_device(dev_name, lib_name);
+-#endif
+ return 1;
+ }
+
+@@ -874,6 +868,8 @@ do_device(struct lib_context *lc, struct
+ if (OPT_TEST(lc))
+ return 1;
+
++ return 1;
++
+ struct dmraid_format *fmt = get_format(rs);
+
+ if (fmt->name != NULL) {
+--- a/1.0.0.rc16/lib/metadata/reconfig.c
++++ b/1.0.0.rc16/lib/metadata/reconfig.c
+@@ -242,20 +242,16 @@ add_dev_to_raid(struct lib_context *lc,
+ * metadata on disks to OK state.
+ */
+ /* Create lib-events library name */
+- if (fmt->name) {
++ /*if (fmt->name) {
+ strncpy(lib_name, "libdmraid-events-", LIB_NAME_LENGTH);
+ strncat(lib_name, fmt->name,
+ LIB_NAME_LENGTH-strlen(fmt->name)-3);
+ strncat(lib_name, ".so", 3);
+ } else
+ goto err;
+-
+- /* Check registration */
+- if (!dm_monitored_events(&pending, sub_rs->name, lib_name)) {
+- /* If NOT registered update metadata to OK state. */
++*/
+ if (check_rd->fmt->metadata_handler)
+ check_rd->fmt->metadata_handler(lc, UPDATE_REBUILD_STATE, NULL, (void *) rs);
+- }
+ }
+ #endif
+
--
Maintenance of the dmraid package
More information about the Dmraid-debian-commits
mailing list