[Bug 1709314] Comment bridged from LTC Bugzilla
bugproxy
bugproxy at us.ibm.com
Wed Aug 9 09:49:33 UTC 2017
------- Comment From jacobi at de.ibm.com 2017-08-09 05:46 EDT-------
Hello to all,
just to make that clear ... we kind of do a "cross build" and make RPMs even on a system that itself is based on Debian packaging, and this absolutely makes sense for us and is intended this way!
We even have an opposite example of a CentOS-Server that also hosts an APT-Repository so that Ubuntu clients will be able to install packages from that server (however, also here I must admit it was kind of a struggle to gather all the necessary tools).
And the whole process works on Ubuntu and does everything we want .... with the tiny shortcoming that one field in the built RPMs is not set correctly.
But I got the message -> walk back to the back of the queue and open a Debian ticket, will do so.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rpm in Ubuntu.
https://bugs.launchpad.net/bugs/1709314
Title:
Unbreak size and archive size generation of built RPMs on big-endian
systems
Status in Ubuntu on IBM z Systems:
Invalid
Status in rpm package in Ubuntu:
Confirmed
Bug description:
We use the rpm tools version 4.12.0.1 that come with Ubuntu Xenial to build packages.
However, that very version still has a bug:
https://github.com/rpm-software-
management/rpm/commit/104856ea17161eb3a508913c2b7ed701f2e4f6aa
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)
---Debugger---
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">
<integer>0</integer>
</rpmTag>
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1709314/+subscriptions
More information about the foundations-bugs
mailing list