From 2dcef6a2ec7aa2fd3a2b10a9f9b633258203ca39 Mon Sep 17 00:00:00 2001 From: bsiegert Date: Fri, 28 Nov 2014 11:47:00 +0000 Subject: Add a patch to fix compilation on Debian Etch. From Mikhail Gusarov in PR pkg/49296. --- lang/gcc49/Makefile | 4 ++-- lang/gcc49/distinfo | 3 ++- .../patches/patch-libcilkrts_runtime_signal_node.c | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c (limited to 'lang/gcc49') diff --git a/lang/gcc49/Makefile b/lang/gcc49/Makefile index 134fc20e49f..fc2720a56e2 100644 --- a/lang/gcc49/Makefile +++ b/lang/gcc49/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2014/09/07 07:35:14 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2014/11/28 11:47:00 bsiegert Exp $ GCC_PKGNAME= gcc49 .include "version.mk" @@ -9,7 +9,7 @@ PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION} ## When bumping the PKGREVISION of this package the PKGREVISION of ## lang/gcc49-libs needs to be bump to be at least 1 more than the ## PKGREVISION of this package! -#PKGREVISION= +PKGREVISION= 1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC49_DIST_VERSION}/} diff --git a/lang/gcc49/distinfo b/lang/gcc49/distinfo index 008dd36c0d8..e1e223183f0 100644 --- a/lang/gcc49/distinfo +++ b/lang/gcc49/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2014/11/19 15:21:45 wiz Exp $ +$NetBSD: distinfo,v 1.4 2014/11/28 11:47:00 bsiegert Exp $ SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449 RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a @@ -20,6 +20,7 @@ SHA1 (patch-gcc_ginclude_stddef.h) = 8af3e4b4058fc623c61e91f5771699f0ce679957 SHA1 (patch-gcc_system.h) = 4c959a6b1c4d524cbdf44cfb80f0e5758ec20783 SHA1 (patch-include_libiberty.h) = 5254c6a421ae16c71571820f6f07906367f042ba SHA1 (patch-libcilkrts_runtime_os-unix.c) = 165e736decbc6e0e3d905d418d71cf4873927925 +SHA1 (patch-libcilkrts_runtime_signal_node.c) = e12fd7c9f109db568c46e915bd1bae28fae7b95a SHA1 (patch-libgcc_config.host) = c929bfbd17fcef36ec4f0eeebf27ceca7060d24c SHA1 (patch-libgcc_config_i386_dragonfly-unwind.h) = 5a7b12ece06cd7ad44191ea803ba703bd1464cb8 SHA1 (patch-libgcc_config_t-slibgcc-darwin) = 5e0d2df4622281f3f9bca3e948d0c7b209fab04c diff --git a/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c b/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c new file mode 100644 index 00000000000..539fccf1dcb --- /dev/null +++ b/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c @@ -0,0 +1,17 @@ +$NetBSD: patch-libcilkrts_runtime_signal_node.c,v 1.1 2014/11/28 11:47:01 bsiegert Exp $ + +Work around broken in glibc < 2.5. + +Corresponding Debian bug report: +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402318 + +--- libcilkrts/runtime/signal_node.c.orig 2014-10-20 00:37:57.000000000 +0200 ++++ libcilkrts/runtime/signal_node.c 2014-10-20 00:38:36.000000000 +0200 +@@ -51,6 +51,7 @@ + typedef HANDLE cilk_semaphore_t; + #else // Linux/MIC + # include ++# include + # include + # include + typedef sem_t cilk_semaphore_t; -- cgit v1.2.3