Menu

#7 empty %files section

v1.0_(example)
closed
nobody
None
5
2020-02-27
2019-10-04
No

If I rebuild http://apt.flussonic.com/rpm/flussonic-19.10-1.x86_64.rpm, I get empty rpm with no files. If I use rpmrebuild -e flussonic and paste output of rpm -ql flussonic after %files, I get rpm with files inside.

Discussion

  • eric gerbier

    eric gerbier - 2019-10-11

    I can not read this rpm package on my computer :
    $ rpm -qpi flussonic-19.10-1.x86_64.rpm
    error: flussonic-19.10-1.x86_64.rpm: tag[31]: BAD, tag 1033 type 4 offset 29320 count 1118 len 1118
    error: flussonic-19.10-1.x86_64.rpm: not an rpm package (or package manifest)

    maybe because the rpm file seems quite old, using old rpm3 format :
    $ file flussonic-19.10-1.x86_64.rpm
    flussonic-19.10-1.x86_64.rpm: RPM v3.0 bin i386/x86_64 flussonic

    what is your rpm version ? (rpm -q rpm)

     
  • Nerijus Baliūnas

    Yes, exactly because of this problem (package is created with an old rpm version) I want to rebuild it with rpmrebuild in order to install it on CentOS 8.

     
  • Nerijus Baliūnas

    BTW, CentOS 7 can read that package.

     
  • eric gerbier

    eric gerbier - 2019-10-17

    I have tested the package on Centos 7.7 and Centos 6.10

    • on Centos 7.7 , the rpm2cpio command (used to extract data) exits with a return code of 1 (not good)
    • on Centos 6.10, the rpm2cpio exits with a return value of 0 (no error)

    and the current code show a shell syntax error on line 204 of rpmrebuild_files.sh
    I will have a new release to

    • fix the rpmrebuild_files.sh error
    • have better diagnostic on error
     
  • eric gerbier

    eric gerbier - 2019-10-17

    here is a beta version which fixes the %file problem

     
  • Nerijus Baliūnas

    It works OK, thank you!

     
  • Nerijus Baliūnas

    When will the new version be released?

     
  • eric gerbier

    eric gerbier - 2020-02-07

    I was working on code debuging tools (improve debug mode). This is not yet ready for release

     
  • Nerijus Baliūnas

    The bug is fixed in the latest release, thank you!

     
  • eric gerbier

    eric gerbier - 2020-02-27
    • status: open --> closed
     
  • eric gerbier

    eric gerbier - 2020-02-27

    fixed in release 2.15

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB