Bug #1162 mysql.spec trouble with RH9
Submitted: 29 Aug 2003 4:56 Modified: 1 Sep 2003 3:22
Reporter: Håkon Innerdal Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.0.15 OS:Linux (Linux RedHat 9)
Assigned to: Lenz Grimmer CPU Architecture:Any

[29 Aug 2003 4:56] Håkon Innerdal
Description:
Just wanted you to know:
rpmbuild fails on RH9 because of a comment containing %install in the %changelog in the mysql.spec file with this obscure error:

error: Package already exists: %package debuginfo
 

I think this only happens on RH9 building.

For more info, visit this link:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=96955

How to repeat:
on RH9:
rpmbuild -ba mysql-4.0.15.spec

Or any other rpmbuild command on the spec...

Suggested fix:
rename %install to install in the .spec:

--- mysql-4.0.15.spec~  2003-08-29 13:40:08.000000000 +0200
+++ mysql-4.0.15.spec   2003-08-29 13:44:39.000000000 +0200
@@ -567,7 +567,7 @@
 - Fixed BUG#959 (libmysqld not being compiled properly)
 - Fixed BUG#998 (RPM build errors): added missing files to the
   distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
-  mysql_fix_privilege_tables.1), removed "-n" from %install section.
+  mysql_fix_privilege_tables.1), removed "-n" from install section.
  
 * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
[1 Sep 2003 3:22] Lenz Grimmer
Thanks for the hint - this will be fixed for the final 4.0.15 release.