FreeBSD Bugzilla – Attachment 162769 Details for
Bug 203353
devel/nspr: Needs arm64 support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to build on arm64
aarch64-nspr.diff (text/plain), 4.42 KB, created by
Andrew Turner
on 2015-11-04 12:49:36 UTC
(
hide
)
Description:
Patch to build on arm64
Filename:
MIME Type:
Creator:
Andrew Turner
Created:
2015-11-04 12:49:36 UTC
Size:
4.42 KB
patch
obsolete
>Index: devel/nspr/files/patch-bug782109 >=================================================================== >--- devel/nspr/files/patch-bug782109 (revision 400734) >+++ devel/nspr/files/patch-bug782109 (working copy) >@@ -1,20 +1,3 @@ >---- ../pr/include/md/_freebsd.h~ >-+++ ../pr/include/md/_freebsd.h >-@@ -47,6 +47,14 @@ >- #define _PR_HAVE_LARGE_OFF_T >- >- #if defined(_PR_PTHREADS) >-+#if __FreeBSD_version >= 602000 >-+#define _PR_HAVE_GETPROTO_R >-+#define _PR_HAVE_5_ARG_GETPROTO_R >-+#endif >-+#if __FreeBSD_version >= 700016 >-+#define _PR_HAVE_GETHOST_R >-+#define _PR_HAVE_GETHOST_R_INT >-+#endif >- #if __FreeBSD_version >= 400008 >- /* >- * libc_r before this version of FreeBSD doesn't have poll(). > --- ../pr/src/misc/prnetdb.c > +++ ../pr/src/misc/prnetdb.c > @@ -78,11 +78,6 @@ PRLock *_pr_dnsLock = NULL; >Index: devel/nspr/files/patch-pr-include-md-freebsd.cfg >=================================================================== >--- devel/nspr/files/patch-pr-include-md-freebsd.cfg (nonexistent) >+++ devel/nspr/files/patch-pr-include-md-freebsd.cfg (working copy) >@@ -0,0 +1,55 @@ >+--- ../pr/include/md/_freebsd.cfg.orig 2015-08-19 15:32:22.000000000 +0000 >++++ ../pr/include/md/_freebsd.cfg 2015-11-04 11:36:54.441654000 +0000 >+@@ -342,6 +342,52 @@ >+ #define PR_BYTES_PER_WORD_LOG2 2 >+ #define PR_BYTES_PER_DWORD_LOG2 3 >+ >++#elif defined(__aarch64__) >++ >++#undef IS_BIG_ENDIAN >++#define IS_LITTLE_ENDIAN 1 >++#define IS_64 >++ >++#define PR_BYTES_PER_BYTE 1 >++#define PR_BYTES_PER_SHORT 2 >++#define PR_BYTES_PER_INT 4 >++#define PR_BYTES_PER_INT64 8 >++#define PR_BYTES_PER_LONG 8 >++#define PR_BYTES_PER_FLOAT 4 >++#define PR_BYTES_PER_DOUBLE 8 >++#define PR_BYTES_PER_WORD 8 >++#define PR_BYTES_PER_DWORD 8 >++ >++#define PR_BITS_PER_BYTE 8 >++#define PR_BITS_PER_SHORT 16 >++#define PR_BITS_PER_INT 32 >++#define PR_BITS_PER_INT64 64 >++#define PR_BITS_PER_LONG 64 >++#define PR_BITS_PER_FLOAT 32 >++#define PR_BITS_PER_DOUBLE 64 >++#define PR_BITS_PER_WORD 64 >++ >++#define PR_BITS_PER_BYTE_LOG2 3 >++#define PR_BITS_PER_SHORT_LOG2 4 >++#define PR_BITS_PER_INT_LOG2 5 >++#define PR_BITS_PER_INT64_LOG2 6 >++#define PR_BITS_PER_LONG_LOG2 6 >++#define PR_BITS_PER_FLOAT_LOG2 5 >++#define PR_BITS_PER_DOUBLE_LOG2 6 >++#define PR_BITS_PER_WORD_LOG2 6 >++ >++#define PR_ALIGN_OF_SHORT 2 >++#define PR_ALIGN_OF_INT 4 >++#define PR_ALIGN_OF_LONG 8 >++#define PR_ALIGN_OF_INT64 8 >++#define PR_ALIGN_OF_FLOAT 4 >++#define PR_ALIGN_OF_DOUBLE 8 >++#define PR_ALIGN_OF_POINTER 8 >++#define PR_ALIGN_OF_WORD 8 >++ >++#define PR_BYTES_PER_WORD_LOG2 3 >++#define PR_BYTES_PER_DWORD_LOG2 3 >++ >+ #elif defined(__arm__) >+ >+ #if defined(__ARMEB__) || defined(__ARM_BIG_ENDIAN__) > >Property changes on: devel/nspr/files/patch-pr-include-md-freebsd.cfg >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: devel/nspr/files/patch-pr-include-md-freebsd.h >=================================================================== >--- devel/nspr/files/patch-pr-include-md-freebsd.h (nonexistent) >+++ devel/nspr/files/patch-pr-include-md-freebsd.h (working copy) >@@ -0,0 +1,26 @@ >+--- ../pr/include/md/_freebsd.h.orig 2015-08-19 15:32:22.000000000 +0000 >++++ ../pr/include/md/_freebsd.h 2015-11-04 11:38:01.257876000 +0000 >+@@ -29,6 +29,8 @@ >+ #define _PR_SI_ARCHITECTURE "powerpc64" >+ #elif defined(__powerpc__) >+ #define _PR_SI_ARCHITECTURE "powerpc" >++#elif defined(__aarch64__) >++#define _PR_SI_ARCHITECTURE "aarch64" >+ #elif defined(__arm__) >+ #define _PR_SI_ARCHITECTURE "arm" >+ #elif defined(__mips64__) >+@@ -57,6 +59,14 @@ >+ #define _PR_HAVE_LARGE_OFF_T >+ >+ #if defined(_PR_PTHREADS) >++#if __FreeBSD_version >= 602000 >++#define _PR_HAVE_GETPROTO_R >++#define _PR_HAVE_5_ARG_GETPROTO_R >++#endif >++#if __FreeBSD_version >= 700016 >++#define _PR_HAVE_GETHOST_R >++#define _PR_HAVE_GETHOST_R_INT >++#endif >+ #if __FreeBSD_version >= 400008 >+ /* >+ * libc_r before this version of FreeBSD doesn't have poll(). > >Property changes on: devel/nspr/files/patch-pr-include-md-freebsd.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jbeich
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 203353
: 162769