Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
While there obviously is a bug in rpm there also is one in the test case:
+Traceback (most recent call last):
+ File "test.py", line 27, in <module>
+ myprint('%s read fail (got %d bytes)' % (iot, len(rdata), rdata))
+TypeError: not all arguments converted during string formatting
You are missing another % in the message to render rdata.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-2359.html
Description of problem: Upstream test 257 is failing on big endian systems pointing at a bug in rpm python binding 257. rpmpython.at:35: testing basic rpmio ... ./rpmpython.at:35: cat << EOF > test.py import rpm, sys dbpath=rpm.expandMacro('%_dbpath') rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath) def myprint(msg = ''): sys.stdout.write('%s\n' % msg) msg = 'Killroy was here\n' data = msg * 10 # TODO: test other compression types too if built in for iot in [ 'fpio', 'fdio', 'ufdio', 'gzdio' ]: fn = 'pyio.%s' % iot fd = rpm.fd(fn, 'w', iot) pos = fd.tell() if pos != -2 and pos != 0: myprint('bad start pos %d' % fd.tell()) if fd.write(data) != len(data): myprint('%s write fail' % iot) if fn != fd.name: myprint('bad file name %s' % fd.name) fd.flush() pos = fd.tell() if pos != -2 and pos != len(data): myprint('bad end pos %d' % fd.tell()) fd = rpm.fd(fn, 'r', iot) rdata = fd.read() if rdata != data: myprint('%s read fail (got %d bytes)' % (iot, len(rdata), rdata)) # compressed io types can't seek if iot == 'ufdio': fd.seek(0) else: fd = rpm.fd(fn, 'r', iot) if fn != fd.name: myprint('bad file name %s' % fd.name) rdata = fd.read(len(msg)) if rdata != msg: myprint('%s sized read fail (got %d bytes)\n%s' % (iot, len(rdata), rdata)) EOF python test.py --- /dev/null 2015-09-17 10:50:59.249741088 +0800 +++ /root/rpmbuild/BUILD/rpm-4.11.3/tests/rpmtests.dir/at-groups/257/stderr 2015-09-17 19:17:24.384550983 +0800 @@ -0,0 +1,4 @@ +Traceback (most recent call last): + File "test.py", line 27, in <module> + myprint('%s read fail (got %d bytes)' % (iot, len(rdata), rdata)) +TypeError: not all arguments converted during string formatting --- /dev/null 2015-09-17 10:50:59.249741088 +0800 +++ /root/rpmbuild/BUILD/rpm-4.11.3/tests/rpmtests.dir/at-groups/257/stdout 2015-09-17 19:17:24.384550983 +0800 @@ -0,0 +1,2 @@ +fpio write fail +bad end pos 6750208 ./rpmpython.at:35: exit code was 1, expected 0 257. rpmpython.at:35: 257. basic rpmio (rpmpython.at:35): FAILED (rpmpython.at:35)