pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libffi Fix a glaring sign bug in the closure han...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d49ab61842fd
branches:  trunk
changeset: 367719:d49ab61842fd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Sep 05 15:08:42 2017 +0000

description:
Fix a glaring sign bug in the closure handling on NetBSD 8+. Fixes
PR 52523 as Sparc seems to use more annoying instructions than x86 and
ARM.

Bump revision.

diffstat:

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

diffs (48 lines):

diff -r 897a59803629 -r d49ab61842fd devel/libffi/Makefile
--- a/devel/libffi/Makefile     Tue Sep 05 15:00:37 2017 +0000
+++ b/devel/libffi/Makefile     Tue Sep 05 15:08:42 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2017/05/26 18:55:41 joerg Exp $
+# $NetBSD: Makefile,v 1.33 2017/09/05 15:08:42 joerg Exp $
 
 DISTNAME=      libffi-3.2.1
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    devel
 MASTER_SITES=  ftp://sourceware.org/pub/libffi/
 
diff -r 897a59803629 -r d49ab61842fd devel/libffi/distinfo
--- a/devel/libffi/distinfo     Tue Sep 05 15:00:37 2017 +0000
+++ b/devel/libffi/distinfo     Tue Sep 05 15:08:42 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.44 2017/05/26 18:55:41 joerg Exp $
+$NetBSD: distinfo,v 1.45 2017/09/05 15:08:42 joerg Exp $
 
 SHA1 (libffi-3.2.1.tar.gz) = 280c265b789e041c02e5c97815793dfc283fb1e6
 RMD160 (libffi-3.2.1.tar.gz) = 9b546a3d002380bec3f00d86fc47d730abf51dfd
@@ -13,6 +13,6 @@
 SHA1 (patch-aj) = 5179cfd150bc7de15eb1c5ee0a327016c2c32b3e
 SHA1 (patch-src_alpha_osf.S) = 50d564a1d88284f04f6896719fa3613e9b0be70b
 SHA1 (patch-src_arm_sysv.S) = 2c97e0d069a4df2e1f5b6604e54b2d02c92691e2
-SHA1 (patch-src_closures.c) = 04f27d89e0604b6358f809fea8692e8d8e476511
+SHA1 (patch-src_closures.c) = 72760ccd973c5f9b157f5db8da180861d748beb2
 SHA1 (patch-src_m88k_elfbsd.S) = 6572c7fa39c00096cb4a80bb88993ff1b4aaa8cc
 SHA1 (patch-src_x86_win32.S) = 8a41cbc7237d6a171605a66e91d8d92a57181569
diff -r 897a59803629 -r d49ab61842fd devel/libffi/patches/patch-src_closures.c
--- a/devel/libffi/patches/patch-src_closures.c Tue Sep 05 15:00:37 2017 +0000
+++ b/devel/libffi/patches/patch-src_closures.c Tue Sep 05 15:08:42 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_closures.c,v 1.1 2017/05/26 18:55:41 joerg Exp $
+$NetBSD: patch-src_closures.c,v 1.2 2017/09/05 15:08:42 joerg Exp $
 
 --- src/closures.c.orig        2017-05-22 23:16:12.516083134 +0000
 +++ src/closures.c
@@ -75,7 +75,7 @@
 +  void *codeseg, *dataseg;
 +  size_t rounded_size;
 +
-+  dataseg = ADD_TO_POINTER(ptr, overhead);
++  dataseg = ADD_TO_POINTER(ptr, -overhead);
 +  memcpy(&rounded_size, dataseg, sizeof(rounded_size));
 +  memcpy(&codeseg, ADD_TO_POINTER(dataseg, sizeof(size_t)), sizeof(void *));
 +  munmap(dataseg, rounded_size);



Home | Main Index | Thread Index | Old Index