Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1379640 - install is wrong for big endian platforms
Summary: install is wrong for big endian platforms
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cassandra-driver
Version: 26
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2016-09-27 09:39 UTC by Dan Horák
Modified: 2017-05-16 11:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-16 11:26:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Horák 2016-09-27 09:39:56 UTC
The build of python-cassandra-driver fails on s390x (a big endian platform) with

...
running install_scripts
===============================================================================
The optional C extensions are not supported on big-endian systems.
===============================================================================
+ mkdir -p /builddir/build/BUILDROOT/python-cassandra-driver-3.7.0-1.fc26.s390x/usr/lib64/python2.7/site-packages
+ mv '/builddir/build/BUILDROOT/python-cassandra-driver-3.7.0-1.fc26.s390x/usr/lib/python2.7/site-packages/*' /builddir/build/BUILDROOT/python-cassandra-driver-3.7.0-1.fc26.s390x/usr/lib64/python2.7/site-packages
mv: cannot stat '/builddir/build/BUILDROOT/python-cassandra-driver-3.7.0-1.fc26.s390x/usr/lib/python2.7/site-packages/*': No such file or directory
RPM build errors:
...

for full logs please see http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2359154

The fix-up part in the %install section (http://pkgs.fedoraproject.org/cgit/rpms/python-cassandra-driver.git/tree/python-cassandra-driver.spec#n85) doesn't seem to be correct.


Version-Release number of selected component (if applicable):
python-cassandra-driver-3.7.0-1.fc26

Comment 1 Lumír Balhar 2016-10-04 12:30:08 UTC
Hello.

Thank you for fill the bug. I investigated the problem and I found same behavior on ppc64 platform.

The problem comes from workaround in specfile in the %install section which moves files from /usr/lib to /usr/lib64 on big endian platforms but it looks that this workaround is not necessary anymore because files are already installed in the correct folder.

Another problem was empty debugfiles.list so I enabled this automatically created subpackage only for specified architectures.

Scratch builds now looks good. Could you please check new specfile version and build logs? Then I can push this change and build new version in rawhide.

SPEC: https://lbalhar.fedorapeople.org/python-cassandra-driver.spec
Builds:
http://koji.fedoraproject.org/koji/taskinfo?taskID=15935431
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2364706
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3777298

Thank you one more time. Have a nice day.
Lumir

Comment 2 Dan Horák 2016-10-04 12:57:39 UTC
Thanks, it builds, then ship it :-) The logs look good, except the failing test, which I suspect is related to a "hard-coded" little endian value. It might be worth to fix it too.

Comment 3 Lumír Balhar 2016-10-05 13:51:58 UTC
Hello.

New version 3.7.0-2 is in rawhide and updates are prepared. I'll leave this bug opened and I'll try to fix mentioned test for big endian systems.

Bodhi updates: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d6d0a70bbb 
https://bodhi.fedoraproject.org/updates/FEDORA-2016-a2fe74417c

Have a nice day.
Lumir

Comment 4 Fedora Update System 2016-10-05 22:23:43 UTC
python-cassandra-driver-3.7.0-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a2fe74417c

Comment 5 Fedora Update System 2016-10-06 01:51:14 UTC
python-cassandra-driver-3.7.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d6d0a70bbb

Comment 6 Fedora Update System 2016-10-09 18:49:54 UTC
python-cassandra-driver-3.7.0-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Lumír Balhar 2016-10-11 07:41:42 UTC
Hello.

Because I cannot solve this issue by myself, I've created bug report in upstream JIRA portal: https://datastax-oss.atlassian.net/browse/PYTHON-653

Have a nice day.
Lumír

Comment 8 Fedora Update System 2016-10-13 21:53:49 UTC
python-cassandra-driver-3.7.0-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Lumír Balhar 2016-10-17 09:04:33 UTC
I have a response from upstream developers:

> I was wondering if by any chance you or one of your colleagues could submit a
> fix for this as I'm not sure how easy it will be for us to get access to such 
> architectures. Thanks

But I am not sure where the problem comes from. If is it the problem only in test (hardcoded results from the hash function), we can write separated test for BE platform. But if is it problem in hash function itself, it would be harder to fix it.

What do you think?

Thanks for help and have a nice day.

Comment 10 Fedora End Of Life 2017-02-28 10:21:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 11 Lumír Balhar 2017-05-16 11:26:34 UTC
I moved this slightly forward but unfortunately, I still cannot enable tests on all platforms. I fixed the issue in tests of Murmur algorithm [0] but other bugs appeared.

I am working on it in cooperation with upstream developers. Because there is the open issue in Jira portal and build/install issue was fixed, I think that we can close this bug.

[0] https://github.com/datastax/python-driver/pull/762

Have a nice day.
Lumír


Note You need to log in before you can comment on or make changes to this bug.