#At file:///home/sketch/bzr/mysql-5.1-build-bug46834/ based on revid:joerg@stripped
2969 Jonathan Perkin 2009-08-21
bug#46834: Test suite missing from RPMs
Fix regression introduced in 5.1.32, provide a testroot variable which
can be overridden in RPM builds to install the test suite into the
appropriate location.
modified:
mysql-test/Makefile.am
mysql-test/lib/My/SafeProcess/Makefile.am
storage/ndb/test/run-test/Makefile.am
support-files/mysql.spec.sh
=== modified file 'mysql-test/Makefile.am'
=== modified file 'mysql-test/Makefile.am'
--- a/mysql-test/Makefile.am 2009-07-14 10:06:04 +0000
+++ b/mysql-test/Makefile.am 2009-08-21 06:38:23 +0000
@@ -17,7 +17,8 @@
## Process this file with automake to create Makefile.in
-testdir = $(prefix)/mysql-test
+testroot = $(prefix)
+testdir = $(testroot)/mysql-test
test_SCRIPTS = mtr \
mysql-test-run \
=== modified file 'mysql-test/lib/My/SafeProcess/Makefile.am'
--- a/mysql-test/lib/My/SafeProcess/Makefile.am 2008-03-13 16:07:11 +0000
+++ b/mysql-test/lib/My/SafeProcess/Makefile.am 2009-08-21 06:38:23 +0000
@@ -13,7 +13,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-safedir = $(prefix)/mysql-test/lib/My/SafeProcess
+testroot = $(prefix)
+safedir = $(testroot)/mysql-test/lib/My/SafeProcess
#nobase_bin_PROGRAMS = ...
safe_PROGRAMS = my_safe_process
=== modified file 'storage/ndb/test/run-test/Makefile.am'
--- a/storage/ndb/test/run-test/Makefile.am 2007-08-31 14:12:51 +0000
+++ b/storage/ndb/test/run-test/Makefile.am 2009-08-21 06:38:23 +0000
@@ -13,7 +13,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-testdir=$(prefix)/mysql-test/ndb
+testroot=$(prefix)
+testdir=$(testroot)/mysql-test/ndb
include $(top_srcdir)/storage/ndb/config/common.mk.am
include $(top_srcdir)/storage/ndb/config/type_util.mk.am
=== modified file 'support-files/mysql.spec.sh'
--- a/support-files/mysql.spec.sh 2009-05-27 15:14:09 +0000
+++ b/support-files/mysql.spec.sh 2009-08-21 06:38:23 +0000
@@ -426,7 +426,7 @@
# Install all binaries
-(cd $MBD && make install DESTDIR=$RBR benchdir_root=%{_datadir})
+(cd $MBD && make install DESTDIR=$RBR testroot=%{_datadir})
# Old packages put shared libs in %{_libdir}/ (not %{_libdir}/mysql), so do
# the same here.
mv $RBR/%{_libdir}/mysql/*.so* $RBR/%{_libdir}/
@@ -847,6 +847,10 @@
# itself - note that they must be ordered by date (important when
# merging BK trees)
%changelog
+* Thu Aug 20 2009 Jonathan Perkin <jperkin@stripped>
+
+- Update variable used for mysql-test suite location to match source.
+
* Fri Nov 07 2008 Joerg Bruehe <joerg@stripped>
- Correct yesterday's fix, so that it also works for the last flag,
Attachment: [text/bzr-bundle] bzr/jperkin@sun.com-20090821063823-rgvt4u3icd9eooeq.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (jperkin:2969) Bug#46834 | Jonathan Perkin | 21 Aug |