Not the answer you need?
Register and ask your own question!

rpmbuild failing

steevesteeve EntrantCurrent User Role Beginner
Hello,

I'm trying to build a rpm for a rhel4 i386 machine from the following file
http://www.percona.com/mysql/5.1.34-5/RPM/rhel4/MySQL-percon a-5.1.34-5.rhel4.src.rpm

I have done the following and their respective outputs
1.
[[email protected]]# rpmbuild --rebuild MySQL-percona-5.1.34-5.rhel4.src.rpm
Installing MySQL-percona-5.1.34-5.rhel4.src.rpm
warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
error: parse error in expression
error: /usr/src/redhat/SPECS/mysql-5.1-percona-xtradb5.rhel4.spec:1 49: parseExpressionBoolean returns -1
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
[[email protected]]#

2.
[[email protected]]# rpm -ivh MySQL-percona-5.1.34-5.rhel4.src.rpm
1:MySQL-percona warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
########################################### [100%]
[[email protected]]# cd /usr/src/redhat/SPECS/;ls
mysql-5.1-percona-xtradb5.rhel4.spec
EMAIL="root@SPECS"]root@SPECS[/EMAIL# rpmbuild -ba mysql-5.1-percona-xtradb5.rhel4.spec
error: parse error in expression
error: /usr/src/redhat/SPECS/mysql-5.1-percona-xtradb5.rhel4.spec:1 49: parseExpressionBoolean returns -1
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
EMAIL="root@SPECS"]root@SPECS[/EMAIL#

I have attached spec file. Please check line 149 of the spec file. On commenting that line I get an error on line 234 and then on line 302. Didn't try commenting further.

Comments

  • steevesteeve Entrant Current User Role Beginner
    Got this from the spec file. It works now

    # rpmbuild -ba mysql-5.1-percona-xtradb5.rhel4.spec --define 'community 1' --define 'redhat_version 4'

    -Steeve
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.