GET 24/7 LIVE HELP NOW

Announcement

Announcement Module
Collapse
No announcement yet.

rpmbuild failing

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • rpmbuild failing

    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.
    ------------------------------------------------------------
    [root@]# 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)
    [root@]#
    ------------------------------------------------------------

    2.
    ------------------------------------------------------------
    [root@]# 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%]
    [root@]# cd /usr/src/redhat/SPECS/;ls
    mysql-5.1-percona-xtradb5.rhel4.spec
    [root@SPECS]# 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)
    [root@SPECS]#
    ------------------------------------------------------------

    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.

  • #2
    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

    Comment

    Working...
    X