Bug 496959 - small bug in spec file
Summary: small bug in spec file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mysql
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Tom Lane
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-21 20:01 UTC by Levente Farkas
Modified: 2013-07-03 03:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-21 22:02:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Levente Farkas 2009-04-21 20:01:06 UTC
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.

Comment 1 Tom Lane 2009-04-21 21:22:01 UTC
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 ..."

Comment 2 Levente Farkas 2009-04-21 21:43:57 UTC
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)

Comment 3 Tom Lane 2009-04-21 22:02:42 UTC
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.

Comment 4 Levente Farkas 2009-04-21 23:05:50 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.