diff -pruN 1:3.0+20111101-1/debian/changelog 1:3.0+20111101-1ubuntu1/debian/changelog
--- 1:3.0+20111101-1/debian/changelog	2011-12-10 09:18:03.000000000 +0000
+++ 1:3.0+20111101-1ubuntu1/debian/changelog	2012-01-18 17:37:04.000000000 +0000
@@ -1,3 +1,9 @@
+aufs-tools (1:3.0+20111101-1ubuntu1) precise; urgency=low
+
+  * Fix regex that checks version of aufs_type.h (failed on 3.x-rcN...)
+
+ -- Ben Collins <bcollins@ubuntu.com>  Wed, 18 Jan 2012 17:34:55 +0000
+
 aufs-tools (1:3.0+20111101-1) unstable; urgency=low
 
   * Merging upstream version 3.0+20111101.
diff -pruN 1:3.0+20111101-1/debian/patches/02-ver-check.patch 1:3.0+20111101-1ubuntu1/debian/patches/02-ver-check.patch
--- 1:3.0+20111101-1/debian/patches/02-ver-check.patch	1970-01-01 00:00:00.000000000 +0000
+++ 1:3.0+20111101-1ubuntu1/debian/patches/02-ver-check.patch	2012-01-18 17:38:30.000000000 +0000
@@ -0,0 +1,11 @@
+--- aufs-tools/ver.c~	2012-01-18 17:37:25.000000000 +0000
++++ aufs-tools/ver.c	2012-01-18 17:37:38.000000000 +0000
+@@ -25,7 +25,7 @@
+ int main(int argc, char *argv[])
+ {
+ 	regex_t preg;
+-	const char *pat = "^3\\.[0-9](-|$)";
++	const char *pat = "^3\\.";
+ 
+ 	if (regcomp(&preg, pat, REG_EXTENDED | REG_NOSUB))
+ 		AuFin("regcomp");
diff -pruN 1:3.0+20111101-1/debian/patches/series 1:3.0+20111101-1ubuntu1/debian/patches/series
--- 1:3.0+20111101-1/debian/patches/series	2011-12-10 09:17:27.000000000 +0000
+++ 1:3.0+20111101-1ubuntu1/debian/patches/series	2012-01-18 17:38:51.000000000 +0000
@@ -1 +1,2 @@
 01-static.patch
+02-ver-check.patch
diff -pruN 1:3.0+20111101-1/.pc/02-ver-check.patch/ver.c 1:3.0+20111101-1ubuntu1/.pc/02-ver-check.patch/ver.c
--- 1:3.0+20111101-1/.pc/02-ver-check.patch/ver.c	1970-01-01 00:00:00.000000000 +0000
+++ 1:3.0+20111101-1ubuntu1/.pc/02-ver-check.patch/ver.c	2011-12-10 09:14:44.000000000 +0000
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2011 Junjiro R. Okajima
+ *
+ * This program, aufs is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include <linux/aufs_type.h>
+#include <regex.h>
+#include <stdio.h>
+#include <string.h>
+#include "au_util.h"
+
+int main(int argc, char *argv[])
+{
+	regex_t preg;
+	const char *pat = "^3\\.[0-9](-|$)";
+
+	if (regcomp(&preg, pat, REG_EXTENDED | REG_NOSUB))
+		AuFin("regcomp");
+
+	if (!regexec(&preg, AUFS_VERSION, 0, NULL, 0))
+		return 0;
+
+	puts("Wrong version!\n"
+	     AuVersion ", but aufs is " AUFS_VERSION ".");
+	return -1;
+}
diff -pruN 1:3.0+20111101-1/.pc/applied-patches 1:3.0+20111101-1ubuntu1/.pc/applied-patches
--- 1:3.0+20111101-1/.pc/applied-patches	2012-01-18 23:11:55.000000000 +0000
+++ 1:3.0+20111101-1ubuntu1/.pc/applied-patches	2012-01-18 23:11:56.000000000 +0000
@@ -1 +1,2 @@
 01-static.patch
+02-ver-check.patch
diff -pruN 1:3.0+20111101-1/ver.c 1:3.0+20111101-1ubuntu1/ver.c
--- 1:3.0+20111101-1/ver.c	2011-12-10 09:14:44.000000000 +0000
+++ 1:3.0+20111101-1ubuntu1/ver.c	2012-01-18 23:11:56.000000000 +0000
@@ -25,7 +25,7 @@
 int main(int argc, char *argv[])
 {
 	regex_t preg;
-	const char *pat = "^3\\.[0-9](-|$)";
+	const char *pat = "^3\\.";
 
 	if (regcomp(&preg, pat, REG_EXTENDED | REG_NOSUB))
 		AuFin("regcomp");

