[ghc] update ghc-glibc-2.20_BSD_SOURCE.patch to version submitted upstream

Jens Petersen petersen at fedoraproject.org
Thu Jul 10 08:31:21 UTC 2014


commit a7021c26deeb6676111cf35e4197e6c8af6d1feb
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Jun 9 17:04:51 2014 +0900

    update ghc-glibc-2.20_BSD_SOURCE.patch to version submitted upstream

 ghc-glibc-2.20_BSD_SOURCE.patch |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/ghc-glibc-2.20_BSD_SOURCE.patch b/ghc-glibc-2.20_BSD_SOURCE.patch
index 6836cfb..0b9d94a 100644
--- a/ghc-glibc-2.20_BSD_SOURCE.patch
+++ b/ghc-glibc-2.20_BSD_SOURCE.patch
@@ -1,11 +1,26 @@
---- ghc-7.6.3/includes/Stg.h~	2013-04-19 06:22:46.000000000 +0900
-+++ ghc-7.6.3/includes/Stg.h	2014-06-06 13:01:40.881289598 +0900
-@@ -46,7 +46,7 @@
- 
+From 7d738547049e686be4d90a19dcb9520418d5f72d Mon Sep 17 00:00:00 2001
+From: Jens Petersen <petersen at redhat.com>
+Date: Mon, 9 Jun 2014 15:48:41 +0900
+Subject: [PATCH] define _DEFAULT_SOURCE in Stg.h to avoid warnings from glibc
+ 2.20 (#9185)
+
+---
+ includes/Stg.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/includes/Stg.h b/includes/Stg.h
+index 1707c9b..fbcf643 100644
+--- a/includes/Stg.h
++++ b/includes/Stg.h
+@@ -47,6 +47,8 @@
  // We need _BSD_SOURCE so that math.h defines things like gamma
  // on Linux
--# define _BSD_SOURCE
+ # define _BSD_SOURCE
++// glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE
 +# define _DEFAULT_SOURCE
  #endif
  
  #if IN_STG_CODE == 0 || defined(llvm_CC_FLAVOR)
+-- 
+1.9.3
+


More information about the scm-commits mailing list