pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libffi libffi: fix broken patch; cannot use #ifd...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ddbd89b6fd4
branches:  trunk
changeset: 770778:9ddbd89b6fd4
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Dec 08 22:28:36 2021 +0000

description:
libffi: fix broken patch; cannot use #ifdef like #if. Bump rev.

Fixes "python2.7: ffi_data_to_code_pointer: not implemented" on aarch64

diffstat:

 devel/libffi/Makefile                        |  3 ++-
 devel/libffi/distinfo                        |  4 ++--
 devel/libffi/patches/patch-src_aarch64_ffi.c |  4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r c34a3e99c187 -r 9ddbd89b6fd4 devel/libffi/Makefile
--- a/devel/libffi/Makefile     Wed Dec 08 20:39:14 2021 +0000
+++ b/devel/libffi/Makefile     Wed Dec 08 22:28:36 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2021/12/08 08:20:17 adam Exp $
+# $NetBSD: Makefile,v 1.47 2021/12/08 22:28:36 tnn Exp $
 
 DISTNAME=      libffi-3.4.2
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libffi/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
diff -r c34a3e99c187 -r 9ddbd89b6fd4 devel/libffi/distinfo
--- a/devel/libffi/distinfo     Wed Dec 08 20:39:14 2021 +0000
+++ b/devel/libffi/distinfo     Wed Dec 08 22:28:36 2021 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.59 2021/12/08 08:20:17 adam Exp $
+$NetBSD: distinfo,v 1.60 2021/12/08 22:28:36 tnn Exp $
 
 BLAKE2s (libffi-3.4.2.tar.gz) = a5773b741a815ea113d4b8e2ec62a0ea59a6cfb61367c39bc99276670efd5dfb
 SHA512 (libffi-3.4.2.tar.gz) = 31bad35251bf5c0adb998c88ff065085ca6105cf22071b9bd4b5d5d69db4fadf16cadeec9baca944c4bb97b619b035bb8279de8794b922531fddeb0779eb7fb1
 Size (libffi-3.4.2.tar.gz) = 1351355 bytes
 SHA1 (patch-configure) = 604b205963e01c2dce7d5636543920abdd9c8638
 SHA1 (patch-configure_host) = a4c99cd0fbbbe0f2c806d662b85a6e2c56b31168
-SHA1 (patch-src_aarch64_ffi.c) = a13638a78280f32c4da828ec560ce7a70bb71474
+SHA1 (patch-src_aarch64_ffi.c) = 016c504c55780a89ad2ecf17fea2355c9d1ac06d
 SHA1 (patch-src_arm_sysv.S) = 9aaa8e12e627d68126fbc4ff02e06ed45c94da1a
 SHA1 (patch-src_closures.c) = 13c426ad678439d2781477aa2b10497a22223427
 SHA1 (patch-src_m68k_ffi.c) = 5179cfd150bc7de15eb1c5ee0a327016c2c32b3e
diff -r c34a3e99c187 -r 9ddbd89b6fd4 devel/libffi/patches/patch-src_aarch64_ffi.c
--- a/devel/libffi/patches/patch-src_aarch64_ffi.c      Wed Dec 08 20:39:14 2021 +0000
+++ b/devel/libffi/patches/patch-src_aarch64_ffi.c      Wed Dec 08 22:28:36 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_aarch64_ffi.c,v 1.2 2021/12/08 08:20:17 adam Exp $
+$NetBSD: patch-src_aarch64_ffi.c,v 1.3 2021/12/08 22:28:37 tnn Exp $
 
 For closures, aarch64 needs explicit invalidation of the code segments
 i-cache after data is written through the data mapping.
@@ -12,7 +12,7 @@
  
    /* Also flush the cache for code mapping.  */
 -#ifdef _WIN32
-+#ifdef _WIN32 || defined(__NetBSD__)
++#if defined(_WIN32) || defined(__NetBSD__)
 +  // ffi_data_to_code_pointer is broken on NetBSD
    // Not using dlmalloc.c for Windows ARM64 builds
    // so calling ffi_data_to_code_pointer() isn't necessary



Home | Main Index | Thread Index | Old Index