[golang] fix BSD/SVID patch, and fix up changelog entry (rpmlint was complaining about invalid date)

Adam Miller maxamillion at fedoraproject.org
Thu Feb 20 20:38:27 UTC 2014


commit 64f9c1459a3af3e8d31daddc9c57f443b6985771
Author: Adam Miller <admiller at redhat.com>
Date:   Thu Feb 20 14:39:08 2014 -0600

    fix BSD/SVID patch, and fix up changelog entry (rpmlint was complaining about invalid date)

 golang-1.2-BSD-SVID-SOURCE.patch |   29 ++++++++++++++++++++++++-----
 golang.spec                      |    2 +-
 2 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/golang-1.2-BSD-SVID-SOURCE.patch b/golang-1.2-BSD-SVID-SOURCE.patch
index 9ad1677..d65e04a 100644
--- a/golang-1.2-BSD-SVID-SOURCE.patch
+++ b/golang-1.2-BSD-SVID-SOURCE.patch
@@ -1,12 +1,31 @@
---- include/u.h.orig	2014-02-20 11:27:46.943079375 -0600
-+++ include/u.h	2014-02-20 11:27:54.126195603 -0600
-@@ -38,9 +38,6 @@
+--- include/u.h.orig	2014-02-20 13:51:53.456000000 -0600
++++ include/u.h	2014-02-20 13:55:51.072000000 -0600
+@@ -38,9 +38,12 @@
  #		define __MAKECONTEXT_V2_SOURCE 1
  #	endif
  #endif
--#define _BSD_SOURCE 1
++#if defined __linux__ || defined __GNU__ || defined __GLIBC__
++#define _DEFAULT_SOURCE 1
++#else
+ #define _BSD_SOURCE 1
 -#define _NETBSD_SOURCE 1	/* NetBSD */
--#define _SVID_SOURCE 1
+ #define _SVID_SOURCE 1
++#endif
  #if !defined(__APPLE__) && !defined(__OpenBSD__)
  #	define _XOPEN_SOURCE 1000
  #	define _XOPEN_SOURCE_EXTENDED 1
+--- src/lib9/utf/utfecpy.c.orig	2014-02-20 14:12:27.735000000 -0600
++++ src/lib9/utf/utfecpy.c	2014-02-20 14:13:09.242000000 -0600
+@@ -11,7 +11,11 @@
+  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
+  * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
+  */
+-#define _BSD_SOURCE 1
++#if defined __linux__ || defined __GNU__ || defined __GLIBC__
++#define _DEFAULT_SOURCE 1
++#else
++ #define _BSD_SOURCE 1
++#endif
+ #include <string.h>
+ #include "utf.h"
+ #include "utfdef.h"
diff --git a/golang.spec b/golang.spec
index 7c495b5..5b2882c 100644
--- a/golang.spec
+++ b/golang.spec
@@ -329,7 +329,7 @@ cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
 * Tue Feb 18 2014 Vincent Batts <vbatts at redhat.com> 1.2-5
 - provide 'go', so users can yum install 'go'
 
-* Thu Jan 24 2014 Vincent Batts <vbatts at redhat.com> 1.2-4
+* Fri Jan 24 2014 Vincent Batts <vbatts at redhat.com> 1.2-4
 - skip a flaky test that is sporadically failing on the build server
 
 * Thu Jan 16 2014 Vincent Batts <vbatts at redhat.com> 1.2-3


More information about the scm-commits mailing list