Closed Bug 1311919 Opened 9 years ago Closed 9 years ago

Make detect_host_arch legal

Categories

(NSS :: Build, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: franziskus, Assigned: ted)

References

Details

Attachments

(1 file)

detect_host_arch.py requires a BSD license that's not actually there. This either needs the license file, a changed comment, or a rewrite to not requiring the license. I should've noted that in the original review of bug 1237872.
Oh, oops. I could just rewrite it from scratch, I suppose, it's not terribly complicated.
I rewrote the script from scratch. I dropped the bit that forced the host arch to be 'ia32' on Windows.
Attachment #8807512 - Flags: review?(franziskuskiefer)
Blocks: 1315231
Comment on attachment 8807512 [details] [diff] [review] rewrite detect_host_arch Review of attachment 8807512 [details] [diff] [review]: ----------------------------------------------------------------- ::: coreconf/detect_host_arch.py @@ +1,1 @@ > #!/usr/bin/env python could we make this python2? Or make the script python3 compatible.
Attachment #8807512 - Flags: review?(franziskuskiefer) → review+
I made a tiny change to make the script Python 3 compatible.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 8807512 [details] [diff] [review] rewrite detect_host_arch Review of attachment 8807512 [details] [diff] [review]: ----------------------------------------------------------------- ::: coreconf/detect_host_arch.py @@ +12,5 @@ > + host_arch = platform.machine().lower() > + if host_arch in ('amd64', 'x86_64'): > + host_arch = 'x64' > + elif fnmatch.fnmatch(host_arch, 'i?86') or host_arch == 'i86pc': > + host_arch = 'x64' This most probably broke building on 32-bits intel CPUs.
Target Milestone: 3.28 → 3.29
Depends on: 1321287
(In reply to Mike Hommey [:glandium] from comment #6) > This most probably broke building on 32-bits intel CPUs. You were right, Jan fixed it in bug 1321287.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: