7a5573f
Upstream chooses to install INFO_SRC and INFO_BIN into the docs dir, which
7a5573f
breaks at least two packaging commandments, so we put them into $libdir
7a5573f
instead.  That means we have to hack the file_contents regression test
7a5573f
to know about this.
7a5573f
7a5573f
Recommendation they change is at http://bugs.mysql.com/bug.php?id=61425
7a5573f
7a5573f
7a5573f
diff -Naur mysql-5.5.21.orig/mysql-test/t/file_contents.test mysql-5.5.21/mysql-test/t/file_contents.test
7a5573f
--- mysql-5.5.21.orig/mysql-test/t/file_contents.test	2012-01-31 06:28:15.000000000 -0500
7a5573f
+++ mysql-5.5.21/mysql-test/t/file_contents.test	2012-02-27 17:18:57.716087918 -0500
7a5573f
@@ -31,6 +31,15 @@
7a5573f
   } else {
7a5573f
     # RedHat: version number in directory name
7a5573f
     $dir_docs = glob "$dir_docs/MySQL-server*";
7a5573f
+
7a5573f
+    # All the above is entirely wacko, because these files are not docs;
7a5573f
+    # they should be kept in libdir instead.  mtr does not provide a nice
7a5573f
+    # way to find libdir though, so we have to kluge it like this:
7a5573f
+    if (-d "/usr/lib64/mysql") {
7a5573f
+	$dir_docs = "/usr/lib64/mysql";
7a5573f
+    } else {
7a5573f
+	$dir_docs = "/usr/lib/mysql";
7a5573f
+    }
7a5573f
   }
7a5573f
 } else {
7a5573f
   # tar.gz package, Windows, or developer work (in BZR)