|
|
2aefdf |
Upstream chooses to install INFO_SRC and INFO_BIN into the docs dir, which
|
|
|
2aefdf |
breaks at least two packaging commandments, so we put them into $libdir
|
|
|
2aefdf |
instead. That means we have to hack the file_contents regression test
|
|
|
2aefdf |
to know about this.
|
|
|
2aefdf |
|
|
|
2aefdf |
Recommendation they change is at http://bugs.mysql.com/bug.php?id=61425
|
|
|
2aefdf |
|
|
|
2aefdf |
diff --git a/mysql-test/t/file_contents.test b/mysql-test/t/file_contents.test
|
|
|
2aefdf |
index 75f8c93..973291c 100644
|
|
|
2aefdf |
--- a/mysql-test/t/file_contents.test
|
|
|
2aefdf |
+++ b/mysql-test/t/file_contents.test
|
|
|
2aefdf |
@@ -12,7 +12,7 @@
|
|
|
2aefdf |
--perl
|
|
|
2aefdf |
print "\nChecking 'INFO_SRC' and 'INFO_BIN'\n";
|
|
|
2aefdf |
$dir_bin = $ENV{'MYSQL_BINDIR'};
|
|
|
2aefdf |
-if ($dir_bin =~ m|^/usr/|) {
|
|
|
2aefdf |
+if ($dir_bin =~ m|.*/usr/$|) {
|
|
|
2aefdf |
# RPM package
|
|
|
2aefdf |
$dir_docs = $dir_bin;
|
|
|
2aefdf |
$dir_docs =~ s|/lib|/share/doc|;
|
|
|
2aefdf |
@@ -35,7 +35,7 @@ if ($dir_bin =~ m|^/usr/|) {
|
|
|
2aefdf |
}
|
|
|
2aefdf |
}
|
|
|
2aefdf |
}
|
|
|
2aefdf |
-} elsif ($dir_bin =~ m|/usr$|) {
|
|
|
2aefdf |
+} elsif ($dir_bin =~ m|.*/usr$|) {
|
|
|
2aefdf |
# RPM build during development
|
|
|
2aefdf |
$dir_docs = "$dir_bin/share/doc";
|
|
|
2aefdf |
if(-d "$dir_docs/packages") {
|
|
|
2aefdf |
@@ -55,6 +55,15 @@ if ($dir_bin =~ m|^/usr/|) {
|
|
|
2aefdf |
$dir_docs = glob "$dir_bin/share/mysql-*/docs";
|
|
|
2aefdf |
}
|
|
|
2aefdf |
}
|
|
|
2aefdf |
+
|
|
|
2aefdf |
+ # All the above is entirely wacko, because these files are not docs;
|
|
|
2aefdf |
+ # they should be kept in libdir instead. mtr does not provide a nice
|
|
|
2aefdf |
+ # way to find libdir though, so we have to kluge it like this:
|
|
|
2aefdf |
+ if (-d "$dir_bin/lib64/mysql") {
|
|
|
2aefdf |
+ $dir_docs = "$dir_bin/lib64/mysql";
|
|
|
2aefdf |
+ } else {
|
|
|
2aefdf |
+ $dir_docs = "$dir_bin/lib/mysql";
|
|
|
2aefdf |
+ }
|
|
|
2aefdf |
}
|
|
|
2aefdf |
} else {
|
|
|
2aefdf |
# tar.gz package, Windows, or developer work (in git)
|