1f8cff
Upstream chooses to install INFO_SRC and INFO_BIN into the docs dir, which
1f8cff
breaks at least two packaging commandments, so we put them into $libdir
1f8cff
instead.  That means we have to hack the file_contents regression test
1f8cff
to know about this.
1f8cff
1f8cff
Recommendation they change is at http://bugs.mysql.com/bug.php?id=61425
1f8cff
1f8cff
1f8cff
diff -up mariadb-5.5.34/mysql-test/t/file_contents.test.p10 mariadb-5.5.34/mysql-test/t/file_contents.test
1f8cff
--- mariadb-5.5.34/mysql-test/t/file_contents.test.p10	2013-11-20 13:28:56.000000000 +0100
1f8cff
+++ mariadb-5.5.34/mysql-test/t/file_contents.test	2013-11-22 08:50:30.244702013 +0100
1f8cff
@@ -32,6 +32,15 @@ if ($dir_bin eq '/usr/') {
1f8cff
     # RedHat/Debian: version number in directory name
1f8cff
     $dir_docs = glob "$dir_docs/mariadb-server-*";
1f8cff
     $dir_docs = glob "$dir_docs/MySQL-server*" unless -d $dir_docs;
1f8cff
+
1f8cff
+    # All the above is entirely wacko, because these files are not docs;
1f8cff
+    # they should be kept in libdir instead.  mtr does not provide a nice
1f8cff
+    # way to find libdir though, so we have to kluge it like this:
1f8cff
+    if (-d "/usr/lib64/mysql") {
1f8cff
+       $dir_docs = "/usr/lib64/mysql";
1f8cff
+    } else {
1f8cff
+       $dir_docs = "/usr/lib/mysql";
1f8cff
+    }
1f8cff
   }
1f8cff
   # Slackware
1f8cff
   $dir_docs = glob "$dir_bin/doc/mariadb-[0-9]*" unless -d $dir_docs;