Bug 496959 - small bug in spec file
small bug in spec file
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mysql (Show other bugs)
5.3
All Linux
low Severity medium
: rc
: ---
Assigned To: Tom Lane
BaseOS QE
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-21 16:01 EDT by Levente Farkas
Modified: 2013-07-02 23:22 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-04-21 18:02:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Levente Farkas 2009-04-21 16:01:06 EDT
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 17:22:01 EDT
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 17:43:57 EDT
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 18:02:42 EDT
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 19:05:50 EDT
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.