FreeBSD Bugzilla – Attachment 158951 Details for
Bug 201681
[PATCH] [mips] print/harfbuzz: fails to build on mips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
harfbuzz-fix-mips.diff
harfbuzz-fix-mips.diff (text/plain), 1.89 KB, created by
Carlos J Puga Medina
on 2015-07-18 21:39:26 UTC
(
hide
)
Description:
harfbuzz-fix-mips.diff
Filename:
MIME Type:
Creator:
Carlos J Puga Medina
Created:
2015-07-18 21:39:26 UTC
Size:
1.89 KB
patch
obsolete
>diff -urN print/harfbuzz.old/Makefile print/harfbuzz/Makefile >--- print/harfbuzz.old/Makefile 2015-07-18 14:29:22.000000000 +0200 >+++ print/harfbuzz/Makefile 2015-07-18 14:28:07.000000000 +0200 >@@ -3,6 +3,7 @@ > > PORTNAME= harfbuzz > PORTVERSION= 0.9.41 >+PORTREVISION= 1 > CATEGORIES= print > MASTER_SITES= http://www.freedesktop.org/software/harfbuzz/release/ > >@@ -28,4 +29,8 @@ > EXTRA_PATCHES= ${PATCHDIR}/extra-src_hb-open-type-private.hh > .endif > >+.if ${ARCH} == "mips" >+EXTRA_PATCHES= ${PATCHDIR}/extra-src_hb-atomic-private.hh >+.endif >+ > .include <bsd.port.post.mk> >diff -urN print/harfbuzz.old/files/extra-src_hb-atomic-private.hh print/harfbuzz/files/extra-src_hb-atomic-private.hh >--- print/harfbuzz.old/files/extra-src_hb-atomic-private.hh 1970-01-01 01:00:00.000000000 +0100 >+++ print/harfbuzz/files/extra-src_hb-atomic-private.hh 2015-07-18 13:53:57.000000000 +0200 >@@ -0,0 +1,28 @@ >+--- src/hb-atomic-private.hh.orig 2015-04-10 02:16:57 UTC >++++ src/hb-atomic-private.hh >+@@ -96,16 +96,6 @@ typedef int32_t hb_atomic_int_impl_t; >+ #endif >+ >+ >+-#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES) >+- >+-typedef int hb_atomic_int_impl_t; >+-#define HB_ATOMIC_INT_IMPL_INIT(V) (V) >+-#define hb_atomic_int_impl_add(AI, V) __sync_fetch_and_add (&(AI), (V)) >+- >+-#define hb_atomic_ptr_impl_get(P) (void *) (__sync_synchronize (), *(P)) >+-#define hb_atomic_ptr_impl_cmpexch(P,O,N) __sync_bool_compare_and_swap ((P), (O), (N)) >+- >+- >+ #elif !defined(HB_NO_MT) && defined(HAVE_SOLARIS_ATOMIC_OPS) >+ >+ #include <atomic.h> >+@@ -119,7 +109,7 @@ typedef unsigned int hb_atomic_int_impl_ >+ #define hb_atomic_ptr_impl_cmpexch(P,O,N) ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((void **) (P), (void *) (O), (void *) (N)) == (void *) (O) ? true : false) >+ >+ >+-#elif !defined(HB_NO_MT) >++#elif !defined(HB_NO_MT) && defined(FreeBSD) >+ >+ #define HB_ATOMIC_INT_NIL 1 /* Warn that fallback implementation is in use. */ >+
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
Actions:
View
|
Diff
Attachments on
bug 201681
:
158950
|
158951
|
158958
|
159508