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 1322558

Summary: Build properly on MIPS
Product: [Fedora] Fedora Reporter: Michal Toman <michal.toman>
Component: python3Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: bkabrda, cstratak, jberan, michal.toman, mstuchli, pviktori, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: mips64   
OS: Linux   
Whiteboard:
Fixed In Version: python3-3.5.1-14.fc25 python3-3.5.1-14.fc26 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-08 14:58:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1242747    
Attachments:
Description Flags
Build-properly-on-MIPS.patch
none
Build-properly-on-MIPS.patch
none
Build-properly-on-MIPS.patch none

Description Michal Toman 2016-03-30 17:57:27 UTC
Created attachment 1141889 [details]
Build-properly-on-MIPS.patch

Description of problem:
We are trying to bring Fedora to MIPS platform and this requires tweaking python3 to build properly on MIPS:
1) Do not require valgrind, we have no working valgrind builds at this moment
2) Use %{_pyconfig64_h} on 64-bit MIPS
3) Fix the build triplet, by default python uses debian's 'gnuabi64' suffix but in Fedora we just have 'gnu'
4) test_ctypes fails on 64-bit MIPS, disable it for now

Actual results:
valgrind required, %{_pyconfig32_h} is used on 64-bit MIPS, triplet uses 'gnuabi64' suffix, test_ctypes runs and fails

Expected results:
valgrind not required, %{_pyconfig64_h} used on 64-bit MIPS, 'gnu' used in triplet, test_ctypes disabled

Additional info:
Attachind dist-git patch. It would be great if this could also be applied to F24.

Comment 1 Jan Kurik 2016-07-26 04:10:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Michal Toman 2016-08-01 18:30:00 UTC
Created attachment 1186507 [details]
Build-properly-on-MIPS.patch

The patch is tested and works on MIPS (as described in #1322526).

Rebased for current version.

Comment 3 Charalampos Stratakis 2016-08-08 08:51:42 UTC
Hello.
It seems you forgot to include the patch that is applied in the SPEC file:

00212-fix-mips64-triplet.patch

Comment 4 Michal Toman 2016-08-08 09:01:14 UTC
Created attachment 1188578 [details]
Build-properly-on-MIPS.patch

Ah, my bad. Fixed.

Comment 5 Charalampos Stratakis 2016-08-08 14:58:11 UTC
Committed and built for rawhide and f25.