Closed
Bug 1311919
Opened 9 years ago
Closed 9 years ago
Make detect_host_arch legal
Categories
(NSS :: Build, defect)
NSS
Build
Tracking
(Not tracked)
RESOLVED
FIXED
3.29
People
(Reporter: franziskus, Assigned: ted)
References
Details
Attachments
(1 file)
|
2.26 KB,
patch
|
franziskus
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•9 years ago
|
||
Oh, oops. I could just rewrite it from scratch, I suppose, it's not terribly complicated.
| Assignee | ||
Comment 2•9 years ago
|
||
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)
| Reporter | ||
Comment 3•9 years ago
|
||
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+
| Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/cdfa1ae89c52f6f3f3f78e5c1d4d1432849b2c4c
bug 1311919 - rewrite detect_host_arch. r=franziskus
| Assignee | ||
Comment 5•9 years ago
|
||
I made a tiny change to make the script Python 3 compatible.
| Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 6•9 years ago
|
||
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.
Updated•9 years ago
|
Target Milestone: 3.28 → 3.29
| Assignee | ||
Comment 7•9 years ago
|
||
(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.
Description
•