Menu

#203 Error creating rpm

closed-fixed
None
1
2009-05-12
2008-10-16
Rob Skoog
No

When trying to package base-1.4.1

The following error is generated:
+ /bin/gzip -dc /home/rskoog/base-1.4.1.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd base-1.4.1
/var/tmp/rpm-tmp.62596: line 36: cd: base-1.4.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.62596 (%prep)

The current release's archive extracts to base-php4.

Discussion

  • Rob Skoog

    Rob Skoog - 2008-10-16
    • priority: 5 --> 1
     
  • Juergen Leising

    Juergen Leising - 2008-12-19

    Hello Rob,

    could you please post your whole procedure?
    And which platform?

    the %prep target is formed by rpm macros almost
    exclusively. In base.spec there are only some definitions
    of variables. Nothing else. So I see only a rather limited
    amount of possibilities what to change in this stage.

    Bye, bye

    Juergen

    Bye, bye

    Juergen

     
  • Nobody/Anonymous

    If I recall correctly the problem isn't with the code. It is with the archive. It looks for a different directory than what the source archive for that version actually extracts to.

     
  • Juergen Leising

    Juergen Leising - 2008-12-21

    Hello,

    You are right. The *.tar.gz was packed as "base-php4".

    BTW: The source code as included in the SRPM should
    be ok: One should be able to rebuild the rpm out of
    the SRPM without problems.

    Bye, bye

    Juergen

     
  • Kevin Johnson

    Kevin Johnson - 2009-05-12

    1.4.2 should not have this problem. I packaged 1.4.1 incorrectly.

     
  • Kevin Johnson

    Kevin Johnson - 2009-05-12
    • assigned_to: nobody --> secureideas
    • status: open --> closed-fixed