9c7c797
Upstream chooses to install INFO_SRC and INFO_BIN into the docs dir, which
9c7c797
breaks at least two packaging commandments, so we put them into $libdir
9c7c797
instead.  That means we have to hack the file_contents regression test
9c7c797
to know about this.
9c7c797
9c7c797
Recommendation they change is at http://bugs.mysql.com/bug.php?id=61425
9c7c797
9c7c797
Jakub Dorňák 6aba9be
diff -up mariadb-10.0.10/mysql-test/t/file_contents.test.p7 mariadb-10.0.10/mysql-test/t/file_contents.test
Jakub Dorňák 6aba9be
--- mariadb-10.0.10/mysql-test/t/file_contents.test.p7	2014-03-30 19:56:44.000000000 +0200
Jakub Dorňák 6aba9be
+++ mariadb-10.0.10/mysql-test/t/file_contents.test	2014-04-07 18:14:32.776772032 +0200
9c7c797
@@ -32,6 +32,15 @@ if ($dir_bin eq '/usr/') {
9c7c797
     # RedHat/Debian: version number in directory name
9c7c797
     $dir_docs = glob "$dir_docs/mariadb-server-*";
9c7c797
     $dir_docs = glob "$dir_docs/MySQL-server*" unless -d $dir_docs;
9c7c797
+
9c7c797
+    # All the above is entirely wacko, because these files are not docs;
9c7c797
+    # they should be kept in libdir instead.  mtr does not provide a nice
9c7c797
+    # way to find libdir though, so we have to kluge it like this:
9c7c797
+    if (-d "/usr/lib64/mysql") {
9c7c797
+       $dir_docs = "/usr/lib64/mysql";
9c7c797
+    } else {
9c7c797
+       $dir_docs = "/usr/lib/mysql";
9c7c797
+    }
9c7c797
   }
26fa8b3
   # Slackware
26fa8b3
   $dir_docs = glob "$dir_bin/doc/mariadb-[0-9]*" unless -d $dir_docs;