the latest rhel's mysql src.rpm can't be rebuild in mock. the reason for this is that the check part can be run in mock. the other problem it's can't be disabled since there is a bug spec file. imho all the check should have to be in %check section of the spec file, but there is no %check section of this spec file. ie. anything from make check should have to go into %check section. this's small changes doesn't intrusive since doesn't effect anything and would be useful to add it to the 5.4 version.
The check part runs just fine as long as you don't run it as root; which is a deprecated thing to do anyway because of security issues. Do something like "sudo -u mockbuilder /usr/bin/mock ..."
i don't run it as root:-) no one use to do it. did you try to build on a fully updated 5.3? even without mock a simple rpmbuild --rebuild will failed at the check: + case `uname -m` in ++ uname -m + MTR_BUILD_THREAD=11 + export MTR_BUILD_THREAD + make test cd mysql-test ; \ /usr/bin/perl ./mysql-test-run.pl --ssl Logging: ./mysql-test-run.pl --ssl MySQL Version 5.0.45 Skipping ndbcluster, mysqld not compiled with ndbcluster Setting mysqld to support SSL connections Using MTR_BUILD_THREAD = 11 Using MASTER_MYPORT = 10110 Using MASTER_MYPORT1 = 10111 Using SLAVE_MYPORT = 10112 Using SLAVE_MYPORT1 = 10113 Using SLAVE_MYPORT2 = 10114 Using IM_PORT = 10117 Using IM_MYSQLD1_PORT = 10118 Using IM_MYSQLD2_PORT = 10119 Killing Possible Leftover Processes Removing Stale Files Creating Directories Installing Master Database Installing Master Database Installing Slave1 Database ======================================================= Starting Tests in the 'main' suite TEST RESULT TIME (ms) ------------------------------------------------------- alias [ fail ] Errors are (from /home/robot/rpm/BUILD/mysql-5.0.45/mysql-test/var/log/mysqltest-time) : mysqltest: Could not open connection 'default': 2026 SSL connection error (the last lines may be the most important ones) Aborting: alias failed in default mode. To continue, re-run with '--force'. Stopping All Servers make: *** [test-ns] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.22497 (%build)
5.0.45 is broken for reasons that have nothing to do with mock --- the SSL certificates that it uses in "make check" have expired. I believe the patch that's in there now for 5.0.77 will work with .45, or if not you should be able to find a compatible patch in the Fedora CVS.
ok may be the subject was wrong but the problem still alive. does it means rhel 5.4 will contains a new mysql src.rpm (eg 5.0.77) which can be rebuild? otherwise imho it's a bug.