summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-10-31 14:01:22 +0000
committerJustin Lecher <jlec@gentoo.org>2011-10-31 14:01:22 +0000
commit50516a2356d52c7bdabbf181daaf4831a1b170a8 (patch)
treef4b5b0d57ca96d98097baf411610b5a8b010b029 /sys-fs/aufs3/files/aufs-util-31.patch
parentMask >=udev-167 since it uses accept4(), which is not implemented on alpha yet (diff)
downloadgentoo-2-50516a2356d52c7bdabbf181daaf4831a1b170a8.tar.gz
gentoo-2-50516a2356d52c7bdabbf181daaf4831a1b170a8.tar.bz2
gentoo-2-50516a2356d52c7bdabbf181daaf4831a1b170a8.zip
Version Bump
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/aufs3/files/aufs-util-31.patch')
-rw-r--r--sys-fs/aufs3/files/aufs-util-31.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys-fs/aufs3/files/aufs-util-31.patch b/sys-fs/aufs3/files/aufs-util-31.patch
new file mode 100644
index 000000000000..e5ae0a6fe3bb
--- /dev/null
+++ b/sys-fs/aufs3/files/aufs-util-31.patch
@@ -0,0 +1,35 @@
+diff --git a/ver.c b/ver.c
+index 1225bf6..921005f 100644
+--- a/ver.c
++++ b/ver.c
+@@ -1,5 +1,5 @@
+ /*
+- * Copyright (C) 2010 Junjiro R. Okajima
++ * 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
+@@ -17,15 +17,20 @@
+ */
+
+ #include <linux/aufs_type.h>
++#include <regex.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include "au_util.h"
+
+ int main(int argc, char *argv[])
+ {
+- if (!strncmp(AUFS_VERSION, "3.0", 3)
+- && (sizeof(AUFS_VERSION) - 1 == 3
+- || AUFS_VERSION[3] == '-'))
++ regex_t preg;
++ const char *pat = "^3\\.[01](-|$)";
++
++ if (regcomp(&preg, pat, REG_EXTENDED | REG_NOSUB))
++ AuFin("regcomp");
++
++ if (!regexec(&preg, AUFS_VERSION, 0, NULL, 0))
+ return 0;
+
+ puts("Wrong version!\n"