pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libffi



Module Name:    pkgsrc
Committed By:   hauke
Date:           Thu Jul  9 09:42:58 UTC 2020

Modified Files:
        pkgsrc/devel/libffi: Makefile distinfo
Added Files:
        pkgsrc/devel/libffi/patches: patch-src_powerpc_ffi__darwin.c

Log Message:
Do not attempt to build in GO closure support when there is no support
for GO on the platform.

Unbreaks build on Darwin 8.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/devel/libffi/Makefile
cvs rdiff -u -r1.55 -r1.56 pkgsrc/devel/libffi/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/libffi/patches/patch-src_powerpc_ffi__darwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libffi/Makefile
diff -u pkgsrc/devel/libffi/Makefile:1.42 pkgsrc/devel/libffi/Makefile:1.43
--- pkgsrc/devel/libffi/Makefile:1.42   Fri Apr 24 10:19:32 2020
+++ pkgsrc/devel/libffi/Makefile        Thu Jul  9 09:42:58 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.42 2020/04/24 10:19:32 dsainty Exp $
+# $NetBSD: Makefile,v 1.43 2020/07/09 09:42:58 hauke Exp $
 
 DISTNAME=      libffi-3.3
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    devel
 MASTER_SITES=  ftp://sourceware.org/pub/libffi/
 

Index: pkgsrc/devel/libffi/distinfo
diff -u pkgsrc/devel/libffi/distinfo:1.55 pkgsrc/devel/libffi/distinfo:1.56
--- pkgsrc/devel/libffi/distinfo:1.55   Tue May  5 02:46:50 2020
+++ pkgsrc/devel/libffi/distinfo        Thu Jul  9 09:42:58 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.55 2020/05/05 02:46:50 tsutsui Exp $
+$NetBSD: distinfo,v 1.56 2020/07/09 09:42:58 hauke Exp $
 
 SHA1 (libffi-3.3.tar.gz) = 8df6cb570c8d6596a67d1c0773bf00650154f7aa
 RMD160 (libffi-3.3.tar.gz) = 2cd43b66d792f1bad76df2e19a8411beacfcb8e0
@@ -14,5 +14,6 @@ SHA1 (patch-src_m88k_elfbsd.S) = 6572c7f
 SHA1 (patch-src_mips_ffi.c) = 7353f68f73917af6bff0b90393ac3404ea54fb99
 SHA1 (patch-src_mips_ffitarget.h) = 7fe62634803ccb5a168e76d597409c9af809c448
 SHA1 (patch-src_powerpc_ffi.c) = b68a93d0f8552efaa8c50256da3af3bde5de7059
+SHA1 (patch-src_powerpc_ffi__darwin.c) = 8da71571830bb5613fc3dc34a6f9707a0e7e7586
 SHA1 (patch-src_powerpc_ffi__powerpc.h) = 573b6f0f496ed7b8b6bc0df197515020519ae024
 SHA1 (patch-testsuite_libffi.call_float2.c) = 2a42a428b0cc55065968c7f0748026da12b70b9d

Added files:

Index: pkgsrc/devel/libffi/patches/patch-src_powerpc_ffi__darwin.c
diff -u /dev/null pkgsrc/devel/libffi/patches/patch-src_powerpc_ffi__darwin.c:1.1
--- /dev/null   Thu Jul  9 09:42:58 2020
+++ pkgsrc/devel/libffi/patches/patch-src_powerpc_ffi__darwin.c Thu Jul  9 09:42:58 2020
@@ -0,0 +1,75 @@
+$NetBSD: patch-src_powerpc_ffi__darwin.c,v 1.1 2020/07/09 09:42:58 hauke Exp $
+
+There is no GO support for Darwin/powerpc, so we get undefined symbols.
+
+--- src/powerpc/ffi_darwin.c.orig      2019-10-31 14:49:54.000000000 +0000
++++ src/powerpc/ffi_darwin.c
+@@ -909,8 +909,10 @@ ffi_prep_cif_machdep (ffi_cif *cif)
+ extern void ffi_call_AIX(extended_cif *, long, unsigned, unsigned *,
+                        void (*fn)(void), void (*fn2)(void));
+ 
++#if defined(FFI_GO_CLOSURES)
+ extern void ffi_call_go_AIX(extended_cif *, long, unsigned, unsigned *,
+                           void (*fn)(void), void (*fn2)(void), void *closure);
++#endif /* FFI_GO_CLOSURES */
+ 
+ extern void ffi_call_DARWIN(extended_cif *, long, unsigned, unsigned *,
+                           void (*fn)(void), void (*fn2)(void), ffi_type*);
+@@ -950,6 +952,7 @@ ffi_call (ffi_cif *cif, void (*fn)(void)
+     }
+ }
+ 
++#if defined(FFI_GO_CLOSURES)
+ void
+ ffi_call_go (ffi_cif *cif, void (*fn) (void), void *rvalue, void **avalue,
+            void *closure)
+@@ -981,6 +984,7 @@ ffi_call_go (ffi_cif *cif, void (*fn) (v
+       break;
+     }
+ }
++#endif /* FFI_GO_CLOSURES */
+ 
+ static void flush_icache(char *);
+ static void flush_range(char *, int);
+@@ -1110,6 +1114,7 @@ ffi_prep_closure_loc (ffi_closure* closu
+   return FFI_OK;
+ }
+ 
++#if defined(FFI_GO_CLOSURES)
+ ffi_status
+ ffi_prep_go_closure (ffi_go_closure* closure,
+                    ffi_cif* cif,
+@@ -1133,6 +1138,7 @@ ffi_prep_go_closure (ffi_go_closure* clo
+     }
+   return FFI_OK;
+ }
++#endif /* FFI_GO_CLOSURES */
+ 
+ static void
+ flush_icache(char *addr)
+@@ -1168,9 +1174,11 @@ ffi_type *
+ ffi_closure_helper_DARWIN (ffi_closure *, void *,
+                          unsigned long *, ffi_dblfl *);
+ 
++#if defined(FFI_GO_CLOSURES)
+ ffi_type *
+ ffi_go_closure_helper_DARWIN (ffi_go_closure*, void *,
+                             unsigned long *, ffi_dblfl *);
++#endif /* FFI_GO_CLOSURES */
+ 
+ /* Basically the trampoline invokes ffi_closure_ASM, and on
+    entry, r11 holds the address of the closure.
+@@ -1430,6 +1438,7 @@ ffi_closure_helper_DARWIN (ffi_closure *
+                                   closure->user_data, rvalue, pgr, pfr);
+ }
+ 
++#if defined(FFI_GO_CLOSURES)
+ ffi_type *
+ ffi_go_closure_helper_DARWIN (ffi_go_closure *closure, void *rvalue,
+                             unsigned long *pgr, ffi_dblfl *pfr)
+@@ -1437,4 +1446,4 @@ ffi_go_closure_helper_DARWIN (ffi_go_clo
+   return ffi_closure_helper_common (closure->cif, closure->fun,
+                                   closure, rvalue, pgr, pfr);
+ }
+-
++#endif /* FFI_GO_CLOSURES */



Home | Main Index | Thread Index | Old Index