From 26b2724b4335a5e3038fec508e65a8d9c2f5792a Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Mon, 27 Jul 2015 14:14:16 -0400 Subject: golang: use oe-meta-go From b101a0c7ce6ef1eb41bef786831e58fa4d1b069f Mon Sep 17 00:00:00 2001 From: Amy Fong 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 Signed-off-by: Bruce Ashfield --- recipes-devtools/go/files/bsd_svid_source.patch | 37 ------------------------- 1 file changed, 37 deletions(-) delete mode 100644 recipes-devtools/go/files/bsd_svid_source.patch (limited to 'recipes-devtools/go/files/bsd_svid_source.patch') 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 @@ -golang-cross: do_compile fails cc1: all warnings being treated as errors - -glibc 2.20 deprecates _BSD_SOURCE and _SVID_SOURCE and emits an error -message. From patch 16632: - libc [PATCH] BZ #16632: Disable _SVID_SOURCE/_BSD_SOURCE warning - if _DEFAULT_SOURCE is defined - -Since we also need to support glibc before 2.20, from the release notes -for glibc 2.20, the recommended fix is to define _DEFAULT_SOURCE - -(fixed upstream) -https://groups.google.com/forum/#!topic/golang-codereviews/S4TARFCxu2k - -Signed-off-by: Amy Fong ---- - include/u.h | 10 ++++++++++ - 1 file changed, 10 insertions(+) - ---- a/include/u.h -+++ b/include/u.h -@@ -38,6 +38,16 @@ - # define __MAKECONTEXT_V2_SOURCE 1 - # endif - #endif -+/** -+ * in glibc >= 2.20, _BSD_SOURCE and _SVID_SOURCE causes warning -+ * messages if _DEFAULT_SOURCE is not defined. -+ * -+ * From glibc 2.20 release notes, since this application needs _BSD_SOURCE -+ * and/or _SVID_SOURCE and we must support glibc < 2.19 and -+ * glibc >= 2.20, then define all 3 (_DEFAULT_SOURCE, _BSD_SOURCE, -+ * and _SVID_SOURCE) unconditionally -+ */ -+#define _DEFAULT_SOURCE 1 - #define _BSD_SOURCE 1 - #define _NETBSD_SOURCE 1 /* NetBSD */ - #define _SVID_SOURCE 1 -- cgit v1.2.3-54-g00ecf