Fix mdadm for squeeze-backports (dependency to initscripts 13.3)
Marcus Osdoba
marcus.osdoba at googlemail.com
Mon Nov 28 21:09:38 UTC 2011
Dear mdadm maintainers,
Many thanks for your work. I've noticed that the mdadm backport for
squeeze isn't installable as a standard backport. Usually all
dependencies must be fulfilled within stable or backports. The
discussion on the mailinglist didn't end [1] or didn't started [2].
I have done the following to fix this:
#apt-get -t squeeze-backports source mdadm
virtually revert the following git commits in
http://anonscm.debian.org/gitweb/?p=pkg-mdadm/
e62ede1a85099c9515c3d902ada1948de993c90f and
d98f009ef8866481ad7c848b6b9dcc973c578a7b
(see patch below [3])
Sorry for putting my name in changelog. I wasn't able to convince
dpkg-buildpackage to build without modifying changelog.
I have installed the resulting package on my Squeeze amd64 running a
rootfs on mdadm-raid1 and it booted fine as expected (without
initscripts 13.3 which exists only beyond squeeze).
Please upload a fixed version of the backport or at least remove the
curent one, since this irritates more users besides me.
Many thanks again and kind regards,
Marcus
[1] http://lists.debian.org/debian-backports/2011/10/msg00042.html
[2] http://lists.debian.org/debian-backports/2011/11/msg00073.html
[3]
#~/tmp/mdadm-bpo60$ diff -uNr mdadm-3.2.2-before_bpoDepFix/ mdadm-3.2.2
diff -uNr mdadm-3.2.2-before_bpoDepFix//debian/changelog
mdadm-3.2.2/debian/changelog
--- mdadm-3.2.2-before_bpoDepFix//debian/changelog 2011-11-28
21:53:40.000000000 +0100
+++ mdadm-3.2.2/debian/changelog 2011-11-28 21:53:40.000000000 +0100
@@ -1,3 +1,10 @@
+
+mdadm (3.2.2-1~bpo60+2) squeeze-backports; urgency=medium
+
+ * Rebuilt for squeeze-backports without dependency to initscripts (>=
2.88dsf-13.3).
+
+ -- Marcus Osdoba <marcus.osdoba at googlemail.com> Mon, 28 Nov 2011
21:30:31 +0100
+
mdadm (3.2.2-1~bpo60+1) squeeze-backports; urgency=low
* Rebuilt for squeeze-backports.
diff -uNr mdadm-3.2.2-before_bpoDepFix//debian/control
mdadm-3.2.2/debian/control
--- mdadm-3.2.2-before_bpoDepFix//debian/control 2011-11-28
21:53:40.000000000 +0100
+++ mdadm-3.2.2/debian/control 2011-11-28 21:53:40.000000000 +0100
@@ -11,7 +11,7 @@
Package: mdadm
Architecture: any
-Depends: ${shlibs:Depends}, udev | makedev, ${misc:Depends}, lsb-base
(>= 3.1-6), debconf (>= 1.4.72), initscripts (>= 2.88dsf-13.3)
+Depends: ${shlibs:Depends}, udev | makedev, ${misc:Depends}, lsb-base
(>= 3.1-6), debconf (>= 1.4.72)
Recommends: default-mta | mail-transport-agent, module-init-tools
Replaces: mdctl
Conflicts: mdctl (<< 0.7.2), raidtools2 (<< 1.00.3-12.1),
initramfs-tools (<< 0.65)
diff -uNr mdadm-3.2.2-before_bpoDepFix//debian/mdadm-raid
mdadm-3.2.2/debian/mdadm-raid
--- mdadm-3.2.2-before_bpoDepFix//debian/mdadm-raid 2011-11-28
21:53:40.000000000 +0100
+++ mdadm-3.2.2/debian/mdadm-raid 2011-11-28 21:53:40.000000000 +0100
@@ -32,7 +32,8 @@
test -x "$MDADM" || exit 0
AUTOSTART=true
-STATEDIR=/run/mdadm
+#STATEDIR=/run/mdadm # backport for squeeze does not forcibly know /run
+STATEDIR=/lib/init/rw/.mdadm
test -f $DEBIANCONFIG && . $DEBIANCONFIG
. /lib/lsb/init-functions
diff -uNr mdadm-3.2.2-before_bpoDepFix//debian/rules
mdadm-3.2.2/debian/rules
--- mdadm-3.2.2-before_bpoDepFix//debian/rules 2011-11-28
21:53:40.000000000 +0100
+++ mdadm-3.2.2/debian/rules 2011-11-28 21:53:40.000000000 +0100
@@ -9,7 +9,8 @@
TG_BRANCHES="contrib/scripts/mdadd contrib/docs/raid5-vs-raid10
contrib/docs/superblock_formats contrib/docs/md.txt
contrib/docs/jd-rebuilding-raid debian/conffile-location
debian/disable-udev-incr-assembly debian/no-Werror"
-include /usr/share/topgit/tg2quilt.mk
-RUNDIR = /run/mdadm
+#RUNDIR = /run/mdadm # squeeze does not not forcibly know /run
+RUNDIR=/dev/.mdadm
RUNOPTS = MAP_DIR=$(RUNDIR) MDMON_DIR=$(RUNDIR)
FAILED_SLOTS_DIR=$(RUNDIR)/failed-slots
CXFLAGS = -ggdb
More information about the pkg-mdadm-devel
mailing list