2013-01-10 17:35:12 +00:00
|
|
|
Upstream chooses to install INFO_SRC and INFO_BIN into the docs dir, which
|
|
|
|
breaks at least two packaging commandments, so we put them into $libdir
|
|
|
|
instead. That means we have to hack the file_contents regression test
|
|
|
|
to know about this.
|
|
|
|
|
|
|
|
Recommendation they change is at http://bugs.mysql.com/bug.php?id=61425
|
|
|
|
|
|
|
|
|
2015-10-22 19:51:01 +00:00
|
|
|
diff -rup mariadb-10.1.8.orig/mysql-test/t/file_contents.test mariadb-10.1.8/mysql-test/t/file_contents.test
|
|
|
|
--- mariadb-10.1.8.orig/mysql-test/t/file_contents.test 2015-10-15 17:43:44.000000000 +0200
|
|
|
|
+++ mariadb-10.1.8/mysql-test/t/file_contents.test 2015-10-19 13:54:53.505550439 +0200
|
2014-07-25 07:00:44 +00:00
|
|
|
@@ -11,7 +11,7 @@
|
|
|
|
--perl
|
|
|
|
print "\nChecking 'INFO_SRC' and 'INFO_BIN'\n";
|
|
|
|
$dir_bin = $ENV{'MYSQL_BINDIR'};
|
|
|
|
-if ($dir_bin eq '/usr/') {
|
|
|
|
+if ($dir_bin =~ '.*/usr/$') {
|
|
|
|
# RPM package
|
|
|
|
$dir_docs = $dir_bin;
|
|
|
|
$dir_docs =~ s|/lib|/share/doc|;
|
|
|
|
@@ -22,7 +22,7 @@ if ($dir_bin eq '/usr/') {
|
|
|
|
# RedHat: version number in directory name
|
2015-10-22 19:51:01 +00:00
|
|
|
$dir_docs = glob "$dir_docs/MariaDB-server*";
|
2014-07-25 07:00:44 +00:00
|
|
|
}
|
|
|
|
-} elsif ($dir_bin eq '/usr') {
|
2015-10-22 19:51:01 +00:00
|
|
|
+} elsif ($dir_bin =~ '.*/usr$') {
|
2014-07-25 07:00:44 +00:00
|
|
|
# RPM build during development
|
|
|
|
$dir_docs = "$dir_bin/share/doc";
|
|
|
|
if(-d "$dir_docs/packages") {
|
2013-01-10 17:35:12 +00:00
|
|
|
@@ -32,6 +32,15 @@ if ($dir_bin eq '/usr/') {
|
|
|
|
# RedHat/Debian: version number in directory name
|
|
|
|
$dir_docs = glob "$dir_docs/mariadb-server-*";
|
2015-10-22 19:51:01 +00:00
|
|
|
$dir_docs = glob "$dir_docs/MariaDB-server*" unless -d $dir_docs;
|
2013-01-10 17:35:12 +00:00
|
|
|
+
|
|
|
|
+ # All the above is entirely wacko, because these files are not docs;
|
|
|
|
+ # they should be kept in libdir instead. mtr does not provide a nice
|
|
|
|
+ # way to find libdir though, so we have to kluge it like this:
|
2014-07-25 07:00:44 +00:00
|
|
|
+ if (-d "$dir_bin/lib64/mysql") {
|
|
|
|
+ $dir_docs = "$dir_bin/lib64/mysql";
|
2013-01-10 17:35:12 +00:00
|
|
|
+ } else {
|
2014-07-25 07:00:44 +00:00
|
|
|
+ $dir_docs = "$dir_bin/lib/mysql";
|
2013-01-10 17:35:12 +00:00
|
|
|
+ }
|
|
|
|
}
|
2013-11-22 07:55:22 +00:00
|
|
|
# Slackware
|
|
|
|
$dir_docs = glob "$dir_bin/doc/mariadb-[0-9]*" unless -d $dir_docs;
|