Michael Tokarev: switch from topgit to plain 3.0 (quilt)

Michael Tokarev mjt at alioth.debian.org
Thu Apr 12 20:20:05 UTC 2012


Module: mdadm
Branch: master
Commit: 491715b9ff020cb2408eeb5cfd67d86097ddd280
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=491715b9ff020cb2408eeb5cfd67d86097ddd280

Author: Michael Tokarev <mjt at tls.msk.ru>
Date:   Thu Apr 12 22:38:14 2012 +0400

switch from topgit to plain 3.0 (quilt)

---

 debian/changelog                                   |    8 ++
 debian/control                                     |    2 +-
 debian/patches/debian-conffile-location.diff       |  126 ++++++++++++++++++++
 .../patches/debian-disable-udev-incr-assembly.diff |   27 ++++
 debian/patches/debian-no-Werror.diff               |   26 ++++
 debian/patches/series                              |    3 +
 debian/rules                                       |    3 -
 7 files changed, 191 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 28e36c2..e6e34c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mdadm (3.2.3-3) UNRELEASED; urgency=low
+
+  * switch from topgit to plain 3.0 (quilt) layout, creating
+    debian/patches.  Don't build-depend on quilt as patching
+    is done automatically by dpkg-source.
+
+ -- Michael Tokarev <mjt at tls.msk.ru>  Thu, 12 Apr 2012 22:35:36 +0400
+
 mdadm (3.2.3-2) unstable; urgency=low
 
   [ Michael Tokarev ]
diff --git a/debian/control b/debian/control
index ce9da79..bf89044 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: admin
 Priority: optional
 Maintainer: Debian mdadm maintainers <pkg-mdadm-devel at lists.alioth.debian.org>
 Uploaders: martin f. krafft <madduck at debian.org>, Michael Tokarev <mjt at tls.msk.ru>
-Build-Depends: debhelper (>= 6.0.7~), po-debconf, groff-base, docbook-to-man, quilt
+Build-Depends: debhelper (>= 6.0.7~), po-debconf, groff-base, docbook-to-man
 Standards-Version: 3.9.2
 Vcs-Git: git://git.debian.org/git/pkg-mdadm/mdadm
 Vcs-Browser: http://git.debian.org/?p=pkg-mdadm/mdadm.git
diff --git a/debian/patches/debian-conffile-location.diff b/debian/patches/debian-conffile-location.diff
new file mode 100644
index 0000000..8e4c47b
--- /dev/null
+++ b/debian/patches/debian-conffile-location.diff
@@ -0,0 +1,126 @@
+From: martin f. krafft <madduck at debian.org>
+Subject: Set /etc/mdadm/mdadm.conf as primary config file location
+
+On Debian, the configuration file resides primarily in /etc/mdadm/mdadm.conf,
+/etc/mdadm.conf is only used as a backup.
+
+This is a Debian-specific patch.
+
+Forwarded: not-needed
+Reviewed-by: martin f. krafft <madduck at debian.org>
+
+---
+ Makefile     |    4 ++--
+ ReadMe.c     |    2 +-
+ mdadm.8.in   |   14 ++++++--------
+ mdadm.conf.5 |    2 +-
+ mdassemble.8 |    2 +-
+ 5 files changed, 11 insertions(+), 13 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 72087be..8c1fa08 100644
+--- a/Makefile
++++ b/Makefile
+@@ -60,8 +60,8 @@ else
+ endif
+ 
+ SYSCONFDIR = /etc
+-CONFFILE = $(SYSCONFDIR)/mdadm.conf
+-CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf
++CONFFILE = $(SYSCONFDIR)/mdadm/mdadm.conf
++CONFFILE2 = $(SYSCONFDIR)/mdadm.conf
+ MAILCMD =/usr/sbin/sendmail -t
+ CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
+ # Both MAP_DIR and MDMON_DIR should be somewhere that persists across the
+diff --git a/ReadMe.c b/ReadMe.c
+index b658841..a5dac94 100644
+--- a/ReadMe.c
++++ b/ReadMe.c
+@@ -565,7 +565,7 @@ char Help_incr[] =
+ ;
+ 
+ char Help_config[] =
+-"The /etc/mdadm.conf config file:\n\n"
++"The /etc/mdadm/mdadm.conf config file:\n\n"
+ " The config file contains, apart from blank lines and comment lines that\n"
+ " start with a hash(#), four sorts of configuration lines: array lines, \n"
+ " device lines, mailaddr lines and program lines.\n"
+diff --git a/mdadm.8.in b/mdadm.8.in
+index 7e8981e..5342d5c 100644
+--- a/mdadm.8.in
++++ b/mdadm.8.in
+@@ -262,9 +262,9 @@ the exact meaning of this option in different contexts.
+ .TP
+ .BR \-c ", " \-\-config=
+ Specify the config file.  Default is to use
+-.BR /etc/mdadm.conf ,
+-or if that is missing then
+-.BR /etc/mdadm/mdadm.conf .
++.BR /etc/mdadm/mdadm.conf ,
++or if that is missing, then
++.BR /etc/mdadm.conf .
+ If the config file given is
+ .B "partitions"
+ then nothing will be read, but
+@@ -1529,8 +1529,6 @@ The config file is only used if explicitly named with
+ or requested with (a possibly implicit)
+ .BR \-\-scan .
+ In the later case,
+-.B /etc/mdadm.conf
+-or
+ .B /etc/mdadm/mdadm.conf
+ is used.
+ 
+@@ -1859,7 +1857,7 @@ or
+ .B \-\-scan
+ will cause the output to be less detailed and the format to be
+ suitable for inclusion in
+-.BR mdadm.conf .
++.BR /etc/mdadm/mdadm.conf .
+ The exit status of
+ .I mdadm
+ will normally be 0 unless
+@@ -1936,7 +1934,7 @@ or
+ is given, then multiple devices that are components of the one array
+ are grouped together and reported in a single entry suitable
+ for inclusion in
+-.BR mdadm.conf .
++.BR /etc/mdadm/mdadm.conf .
+ 
+ Having
+ .B \-\-scan
+@@ -2698,7 +2696,7 @@ uses this to find arrays when
+ is given in Misc mode, and to monitor array reconstruction
+ on Monitor mode.
+ 
+-.SS /etc/mdadm.conf
++.SS /etc/mdadm/mdadm.conf
+ 
+ The config file lists which devices may be scanned to see if
+ they contain MD super block, and gives identifying information
+diff --git a/mdadm.conf.5 b/mdadm.conf.5
+index 9f31c73..f0b07a1 100644
+--- a/mdadm.conf.5
++++ b/mdadm.conf.5
+@@ -8,7 +8,7 @@
+ .SH NAME
+ mdadm.conf \- configuration for management of Software RAID with mdadm
+ .SH SYNOPSIS
+-/etc/mdadm.conf
++/etc/mdadm/mdadm.conf
+ .SH DESCRIPTION
+ .PP
+ .I mdadm
+diff --git a/mdassemble.8 b/mdassemble.8
+index 0210524..27779af 100644
+--- a/mdassemble.8
++++ b/mdassemble.8
+@@ -40,7 +40,7 @@ There are no options to
+ 
+ .SH FILES
+ 
+-.SS /etc/mdadm.conf
++.SS /etc/mdadm/mdadm.conf
+ 
+ The config file lists which devices may be scanned to see if
+ they contain MD super block, and gives identifying information
diff --git a/debian/patches/debian-disable-udev-incr-assembly.diff b/debian/patches/debian-disable-udev-incr-assembly.diff
new file mode 100644
index 0000000..d4da159
--- /dev/null
+++ b/debian/patches/debian-disable-udev-incr-assembly.diff
@@ -0,0 +1,27 @@
+From: martin f. krafft <madduck at debian.org>
+Subject: Disable udev incremental assembly
+
+Upstream enabled incremental assembly in the udev rules by default for 3.1.3,
+but this is too early. Hence, this patch simply reverts the change.
+
+Signed-off-by: martin f. krafft <madduck at debian.org>
+
+---
+ udev-md-raid.rules |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/udev-md-raid.rules b/udev-md-raid.rules
+index f564f70..241c31d 100644
+--- a/udev-md-raid.rules
++++ b/udev-md-raid.rules
+@@ -8,6 +8,10 @@ GOTO="md_inc_skip"
+ 
+ LABEL="md_inc"
+ 
++## DISABLED: Incremental udev assembly disabled
++## ** this is a Debian-specific change **
++GOTO="md_inc_skip"
++
+ # remember you can limit what gets auto/incrementally assembled by
+ # mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY'
+ ACTION=="add", RUN+="/sbin/mdadm --incremental $tempnode"
diff --git a/debian/patches/debian-no-Werror.diff b/debian/patches/debian-no-Werror.diff
new file mode 100644
index 0000000..e88db59
--- /dev/null
+++ b/debian/patches/debian-no-Werror.diff
@@ -0,0 +1,26 @@
+From: martin f. krafft <madduck at debian.org>
+Subject: Remove -Werror from compiler flags
+
+-Werror seems like a bad idea on released/packaged code because a toolchain
+update (introducing new warnings) could break the build. We'll let upstream
+use it to beautify the code, but remove it for out builds.
+
+Signed-off-by: martin f. krafft <madduck at debian.org>
+
+---
+ Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b8d363f..63d9742 100644
+--- a/Makefile
++++ b/Makefile
+@@ -42,7 +42,7 @@ KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIB
+ 
+ CC = $(CROSS_COMPILE)gcc
+ CXFLAGS = -ggdb
+-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
++CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter
+ ifdef WARN_UNUSED
+ CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O
+ endif
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..fc8d553
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+debian-conffile-location.diff
+debian-disable-udev-incr-assembly.diff
+debian-no-Werror.diff
diff --git a/debian/rules b/debian/rules
index c3a8092..0be77e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,9 +6,6 @@
 
 #export DH_VERBOSE=1
 
-TG_BRANCHES="debian/conffile-location debian/disable-udev-incr-assembly debian/no-Werror"
--include /usr/share/topgit/tg2quilt.mk
-
 RUNDIR = /run/mdadm
 RUNOPTS = MAP_DIR=$(RUNDIR) MDMON_DIR=$(RUNDIR) FAILED_SLOTS_DIR=$(RUNDIR)/failed-slots
 




More information about the pkg-mdadm-commits mailing list