diff options
-rw-r--r-- | devel/aegis/Makefile | 6 | ||||
-rw-r--r-- | devel/aegis/distinfo | 3 | ||||
-rw-r--r-- | devel/aegis/patches/patch-common_stack.cc | 24 |
3 files changed, 31 insertions, 2 deletions
diff --git a/devel/aegis/Makefile b/devel/aegis/Makefile index 611e09b8e55..fc655d2765f 100644 --- a/devel/aegis/Makefile +++ b/devel/aegis/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2013/05/31 12:39:57 wiz Exp $ +# $NetBSD: Makefile,v 1.29 2013/12/07 21:07:56 dholland Exp $ # DISTNAME= aegis-4.24.2 @@ -20,6 +20,10 @@ USE_TOOLS+= groff gsoelim msgfmt perl:run yacc patch:run .include "../../mk/bsd.prefs.mk" +.if !empty(PKGSRC_COMPILER:Mgcc) +CXXFLAGS+= -std=gnu++0x +.endif + AEGIS_USER_UID?= 3 AEGIS_USER_GID?= 3 diff --git a/devel/aegis/distinfo b/devel/aegis/distinfo index f81590b28ad..24abcc2e902 100644 --- a/devel/aegis/distinfo +++ b/devel/aegis/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2013/05/04 12:59:45 joerg Exp $ +$NetBSD: distinfo,v 1.12 2013/12/07 21:07:56 dholland Exp $ SHA1 (aegis-4.24.2.tar.gz) = 3051a4272cfb3d1dcadec0234a5cd06a3d96e36b RMD160 (aegis-4.24.2.tar.gz) = 3bbf6d29295d04313ab8e2a7cb2d80464c338c6b @@ -6,3 +6,4 @@ Size (aegis-4.24.2.tar.gz) = 4180025 bytes SHA1 (patch-aa) = 90ca2d4c6e42588b52133a8772cb658608fe43b2 SHA1 (patch-ab) = c946cdfd7807041502f8052b0e9ec2d24f752175 SHA1 (patch-ad) = 3385dc23da50afc6827664c8d481ba89ba3fd435 +SHA1 (patch-common_stack.cc) = 83451680c73027fe69b85e0fd3333642d340a750 diff --git a/devel/aegis/patches/patch-common_stack.cc b/devel/aegis/patches/patch-common_stack.cc new file mode 100644 index 00000000000..904c661d9f6 --- /dev/null +++ b/devel/aegis/patches/patch-common_stack.cc @@ -0,0 +1,24 @@ +$NetBSD: patch-common_stack.cc,v 1.1 2013/12/07 21:07:56 dholland Exp $ + +Fix build with the latest C++ "standard". + +--- common/stack.cc~ 2009-06-25 16:00:55.000000000 +0000 ++++ common/stack.cc +@@ -24,7 +24,7 @@ static int + find_stack_direction () + { + static char *addr = 0; +- auto char dummy; ++ char dummy; + if (addr == 0) + { + addr = &dummy; +@@ -47,7 +47,7 @@ variable_is_on_stack(void *p) + return false; + if (stack_direction == 0) + stack_direction = find_stack_direction(); +- auto char dummy = 0; ++ char dummy = 0; + char *cp = (char *)p; + return (stack_direction < 0 ? (&dummy < cp) : (&dummy > cp)); + } |