diff options
author | Amy Fong <amy.fong@windriver.com> | 2015-07-27 14:14:16 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-07-29 11:07:17 -0400 |
commit | 26b2724b4335a5e3038fec508e65a8d9c2f5792a (patch) | |
tree | dd5cd4ca63f8717607e95c1f4e160b2db8cfd3c0 /recipes-devtools/go/files/bsd_svid_source.patch | |
parent | acb711dfa93a916805c286fafa8c304394fc05cc (diff) | |
download | meta-virtualization-26b2724b4335a5e3038fec508e65a8d9c2f5792a.tar.gz |
golang: use oe-meta-go
From b101a0c7ce6ef1eb41bef786831e58fa4d1b069f Mon Sep 17 00:00:00 2001
From: Amy Fong <amy.fong@windriver.com>
Date: Mon, 27 Jul 2015 14:10:20 -0400
Subject: [PATCH] golang: use oe-meta-go
Update meta-virtualization to use go package from oe-meta-go.
The package golang-cross is go-cross in the oe-meta-go.
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-devtools/go/files/bsd_svid_source.patch')
-rw-r--r-- | recipes-devtools/go/files/bsd_svid_source.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/recipes-devtools/go/files/bsd_svid_source.patch b/recipes-devtools/go/files/bsd_svid_source.patch deleted file mode 100644 index 21e1d4cb..00000000 --- a/recipes-devtools/go/files/bsd_svid_source.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | golang-cross: do_compile fails cc1: all warnings being treated as errors | ||
2 | |||
3 | glibc 2.20 deprecates _BSD_SOURCE and _SVID_SOURCE and emits an error | ||
4 | message. From patch 16632: | ||
5 | libc [PATCH] BZ #16632: Disable _SVID_SOURCE/_BSD_SOURCE warning | ||
6 | if _DEFAULT_SOURCE is defined | ||
7 | |||
8 | Since we also need to support glibc before 2.20, from the release notes | ||
9 | for glibc 2.20, the recommended fix is to define _DEFAULT_SOURCE | ||
10 | |||
11 | (fixed upstream) | ||
12 | https://groups.google.com/forum/#!topic/golang-codereviews/S4TARFCxu2k | ||
13 | |||
14 | Signed-off-by: Amy Fong <amy.fong@windriver.com> | ||
15 | --- | ||
16 | include/u.h | 10 ++++++++++ | ||
17 | 1 file changed, 10 insertions(+) | ||
18 | |||
19 | --- a/include/u.h | ||
20 | +++ b/include/u.h | ||
21 | @@ -38,6 +38,16 @@ | ||
22 | # define __MAKECONTEXT_V2_SOURCE 1 | ||
23 | # endif | ||
24 | #endif | ||
25 | +/** | ||
26 | + * in glibc >= 2.20, _BSD_SOURCE and _SVID_SOURCE causes warning | ||
27 | + * messages if _DEFAULT_SOURCE is not defined. | ||
28 | + * | ||
29 | + * From glibc 2.20 release notes, since this application needs _BSD_SOURCE | ||
30 | + * and/or _SVID_SOURCE and we must support glibc < 2.19 and | ||
31 | + * glibc >= 2.20, then define all 3 (_DEFAULT_SOURCE, _BSD_SOURCE, | ||
32 | + * and _SVID_SOURCE) unconditionally | ||
33 | + */ | ||
34 | +#define _DEFAULT_SOURCE 1 | ||
35 | #define _BSD_SOURCE 1 | ||
36 | #define _NETBSD_SOURCE 1 /* NetBSD */ | ||
37 | #define _SVID_SOURCE 1 | ||