Menu

#1984 dist/find-requires not executable

linux
closed
5
2012-11-08
2008-09-06
Bernard Li
No

When trying to build RPMs for Net-SNMP 5.4.2 on CentOS 4.x with the spec file in dist/, I got the following error:

Finding Provides: /usr/lib/rpm/find-provides
error: Couldn't exec /usr/src/redhat/BUILD/net-snmp-5.4.2/dist/find-requires: Permission denied
getOutputFrom(): Broken pipe

Build command is:

rpmbuild -ba net-snmp.spec

This is due to the fact that dist/find-requires is not executable.

On a related note, you probably also want to make dist/extractnews executable as well.

Discussion

  • Nobody/Anonymous

    find-requires itself, even if executable, gives errors:

    /usr/src/redhat/BUILD/net-snmp-5.4.2/dist/find-requires: line 5: unexpected EOF while looking for matching `"'
    /usr/src/redhat/BUILD/net-snmp-5.4.2/dist/find-requires: line 6: syntax error: unexpected end of file

    I'm unsure of the purpose, but the command of:

    /usr/lib/rpm/find-requires | grep -v "perl(Tk)\|perl(Term::ReadKey)

    Should probably be:

    /usr/lib/rpm/find-requires | grep -v "perl(Tk)\|perl(Term::ReadKey)"

     
  • Jan Safranek

    Jan Safranek - 2008-10-07

    Thanks for the bug report!
    We've fixed the problem in the 5.4.x code branch
    and the main development tree, so it should be
    fixed in future releases of the Net-SNMP package.

     

Log in to post a comment.