Summary: | [PATCH] devel/nspr: Has no mips/mips64 knowledge | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Sean Bruno <sbruno> |
Component: | Individual Port(s) | Assignee: | freebsd-gecko (Nobody) <gecko> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | bapt, emaste, jbeich, mips |
Priority: | --- | Keywords: | needs-qa |
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(gecko) |
Hardware: | mips | ||
OS: | Any | ||
URL: | http://dirty.ysv.freebsd.org/data/11mips64-11mips32/2015-02-12_17h12m47s/logs/errors/nspr-4.10.8.log | ||
See Also: | https://bugzilla.mozilla.org/show_bug.cgi?id=1163346 | ||
Attachments: |
Description
Sean Bruno
2015-02-12 18:36:52 UTC
Auto-assigned to maintainer gecko@FreeBSD.org Created attachment 156292 [details]
Add proper types and defines for mips and mips64 architectures
Place this file into the files/ dir
I'm not sure that gecko@ has any reviewers on it, so firing this off to the last few folks that did stuff here. buildlog: mips64 http://tasty.ysv.freebsd.org/build.html?mastername=11mips64-default&build=2015-05-03_09h05m40s buildlog: mips http://tasty.ysv.freebsd.org/build.html?mastername=11mips-default&build=2015-05-03_06h04m02s How is the IS_64 macro used (is it supposed to be #defined for mips)? (In reply to Ed Maste from comment #5) No, it is not. :-) fixing. Created attachment 156362 [details]
patch to enable proper support on mips/mips64
Assuming the only change is removing IS_64 this looks reasonable to me (In reply to Ed Maste from comment #8) How do we get this up to the mozilla peoples? Jan this sounds like a job for you :) A commit references this bug: Author: jbeich Date: Sat May 9 22:21:56 UTC 2015 New revision: 385914 URL: https://svnweb.freebsd.org/changeset/ports/385914 Log: devel/nspr: add support for mips/mips64 PR: 197577 Submitted by: sbruno Changes: head/devel/nspr/files/patch-bug1163346 Thanks. Forwarded upstream. (In reply to Sean Bruno from comment #9) > How do we get this up to the mozilla peoples? Try the following workflow if want to get more involved. https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch Comment on attachment 156362 [details] patch to enable proper support on mips/mips64 >+#elif defined(__mips__) >+#define _PR_SI_ARCHITECTURE "mips" >+#elif defined(__mips64__) >+#define _PR_SI_ARCHITECTURE "mips64" __mips__ is defined for both in gcc and clang which means the first match wins i.e., always 32bit. contrib/gcc/config/mips/freebsd.h contrib/llvm/tools/clang/lib/Basic/Targets.cpp. I wonder if regression-test target would have caught it. >+#elif defined(__mips__) >+ >+#undef IS_LITTLE_ENDIAN >+#define IS_BIG_ENDIAN 1 See upstream reviewer comment. We may need to do smth similar to _linux.cfg. Created attachment 156665 [details]
mips64 and mips*el fixup
Can you test/review this patch? It tries to follow the style in arm and powerpc checks.
Created attachment 156666 [details]
(followup) fix mips64 and mips*el, v2
*sigh* Clang defines are different: __MIPSEB__ vs. _MIPSEB.
A commit references this bug: Author: jbeich Date: Tue May 12 21:00:54 UTC 2015 New revision: 386173 URL: https://svnweb.freebsd.org/changeset/ports/386173 Log: devel/nspr: fix up mips64 and mips*el support This syncs the patch with what landed upstream. PR: 197577 Changes: head/devel/nspr/files/patch-bug1163346 A commit references this bug: Author: jbeich Date: Tue May 12 21:02:28 UTC 2015 New revision: 386174 URL: https://svnweb.freebsd.org/changeset/ports/386174 Log: devel/nspr: bump PORTREVISION after r386173 to rebuild mips packages PR: 197577 Changes: head/devel/nspr/Makefile |