diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-08 20:25:34 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-08 20:25:34 +0000 |
commit | 4733491d225b58ce5b5461821df7b3e4a9993cbf (patch) | |
tree | 8349ba84ca1aabbc6d199f77e613e4770a5b3518 /devel/electricfence | |
parent | 0f8f70b4c5aae08872a3c0e5022332113326021e (diff) | |
download | pkgsrc-4733491d225b58ce5b5461821df7b3e4a9993cbf.tar.gz |
DragonFly uses SIGBUS for access violations. Fix the vprint
implementation, va_arg of a char violates C promotion rules.
The builtin of newer GCC versions would call abort() in that case.
Diffstat (limited to 'devel/electricfence')
-rw-r--r-- | devel/electricfence/Makefile | 4 | ||||
-rw-r--r-- | devel/electricfence/distinfo | 3 | ||||
-rw-r--r-- | devel/electricfence/patches/patch-ad | 13 |
3 files changed, 17 insertions, 3 deletions
diff --git a/devel/electricfence/Makefile b/devel/electricfence/Makefile index 5813fc4e358..0ca2651792b 100644 --- a/devel/electricfence/Makefile +++ b/devel/electricfence/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2005/06/16 06:57:46 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2006/01/08 20:25:34 joerg Exp $ DISTNAME= ElectricFence-2.1 PKGREVISION= 1 @@ -11,7 +11,7 @@ COMMENT= Different kind of malloc() debugger .include "../../mk/bsd.prefs.mk" -.if ${MACHINE_ARCH} == "mipsel" +.if ${MACHINE_ARCH} == "mipsel" || ${OPSYS} == "DragonFly" CFLAGS+= -g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS .else CFLAGS+= -g diff --git a/devel/electricfence/distinfo b/devel/electricfence/distinfo index 5fb00ac6143..5e601a56dea 100644 --- a/devel/electricfence/distinfo +++ b/devel/electricfence/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2005/11/08 03:27:32 tv Exp $ +$NetBSD: distinfo,v 1.9 2006/01/08 20:25:34 joerg Exp $ SHA1 (ElectricFence-2.1.tar.gz) = 1794db6d446f31045ebf845543cf6759cbab1e4f RMD160 (ElectricFence-2.1.tar.gz) = 4513b43b2c9b4212822c2b2d749b6485909d8f67 @@ -6,3 +6,4 @@ Size (ElectricFence-2.1.tar.gz) = 47917 bytes SHA1 (patch-aa) = 53c7c23d6d0a5b4f9814125bce8d6280f474fd56 SHA1 (patch-ab) = 54c2dca3c58f430fd2ffe3a59ddfd6d89fc4bbda SHA1 (patch-ac) = 4c56eeea0b8e53cdf260b61aa8fdef16f601b186 +SHA1 (patch-ad) = 28cb084b2cbf6ecb6ec38c9ba11237fd2204aa92 diff --git a/devel/electricfence/patches/patch-ad b/devel/electricfence/patches/patch-ad new file mode 100644 index 00000000000..96b18471dc1 --- /dev/null +++ b/devel/electricfence/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1 2006/01/08 20:25:34 joerg Exp $ + +--- print.c.orig 2006-01-08 20:17:34.000000000 +0000 ++++ print.c +@@ -99,7 +99,7 @@ vprint(const char * pattern, va_list arg + break; + case 'c': + { +- char c = va_arg(args, char); ++ char c = va_arg(args, int); + + (void) write(2, &c, 1); + } |