Public bug reported:

We use the rpm tools version that come with Ubuntu Xenial to build 
However, that very version still has a bug:

On Big-Endian systems (and that's what we use), the Archive-Size field is 
handled wrongly.
---uname output---
Linux mclinx 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:02 UTC 2017 
s390x s390x s390x GNU/Linux
Machine Type = IBM zSeries 2964 (z13) 
A debugger is not configured
---Steps to Reproduce---
 Build an RPM on a 64-bit Big-Endian system on Ubuntu-Xenial and check the 
Archive-Size field of the built RPM afterwards:

rpm -qp --xml example-1.3.0-1.s390x.rpm > example_1.3.0-1_rpm.xml

With the broken version you should find contents like these:

  <rpmTag name="Archivesize">

In case the Archive-Size is lower than 4GiB you'll always see a "0" as value 
here. The corrected rpmbuild command should post the correct archive size.
Userspace tool common name: rpmbuild 
The userspace tool has the following bit modes: 64-bit 

Userspace rpm: rpm

Userspace tool obtained from project website:  na

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Skipper Bug Screeners (skipper-screen-team)
         Status: New

** Tags: architecture-s39064 bugnameltc-157348 severity-medium 

** Tags added: architecture-s39064 bugnameltc-157348 severity-medium

** Changed in: ubuntu
     Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)

** Package changed: ubuntu => linux (Ubuntu)

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Unbreak size and archive size generation of built RPMs on big-endian

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to