Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/oo2c lang/oo2c: fix build on NetBSD 8.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48c7ff2b031b
branches:  trunk
changeset: 431447:48c7ff2b031b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed May 13 06:01:52 2020 +0000

description:
lang/oo2c: fix build on NetBSD 8.0

diffstat:

 lang/oo2c/distinfo                          |   3 ++-
 lang/oo2c/patches/patch-lib_src_Exception_c |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r c0c56d1d8b49 -r 48c7ff2b031b lang/oo2c/distinfo
--- a/lang/oo2c/distinfo        Wed May 13 05:32:01 2020 +0000
+++ b/lang/oo2c/distinfo        Wed May 13 06:01:52 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2019/04/27 11:33:03 wiz Exp $
+$NetBSD: distinfo,v 1.12 2020/05/13 06:01:52 rillig Exp $
 
 SHA1 (oo2c_32-2.0.11.tar.bz2) = b8962b7fdf9505dc1769602ade44d8e56eda8d45
 RMD160 (oo2c_32-2.0.11.tar.bz2) = c51dc82ec09c9d2f82cb1f10ee7814b3cce38502
@@ -13,3 +13,4 @@
 SHA1 (patch-ab) = 246c0edabfefac3406dbce46baee4ddd8c90f2fe
 SHA1 (patch-ac) = d31a5920d189a0201f10fc0526330c903ae0abc5
 SHA1 (patch-ad) = ff9564734be4774d1b57edfdc349c860f5063b55
+SHA1 (patch-lib_src_Exception_c) = e90c3b99177cca94183791517e174a87e8af6efc
diff -r c0c56d1d8b49 -r 48c7ff2b031b lang/oo2c/patches/patch-lib_src_Exception_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/oo2c/patches/patch-lib_src_Exception_c       Wed May 13 06:01:52 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_src_Exception_c,v 1.1 2020/05/13 06:01:52 rillig Exp $
+
+Trying to build 2.0.11 on NetBSD 8.0 x86_64:
+> ./lib/src/Exception.c:32:13: warning: implicit declaration of function 'strlen'
+>    int len = strlen(td->name);
+>
+> lib/src/__libc.h:24:14: error: expected declaration specifiers or '...' before numeric constant
+>  extern void* memcpy(void* dest, const void* src, __typeof__(sizeof(int)) n);
+
+--- lib/src/Exception.c.orig   2003-08-01 15:17:27.000000000 +0000
++++ lib/src/Exception.c
+@@ -4,6 +4,7 @@
+ #include <setjmp.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #if HAVE_BACKTRACE_SYMBOLS
+ #  include <execinfo.h>
+ #endif



Home | Main Index | Thread Index | Old Index