SF.net SVN: gar:[25511] csw/mgar/pkg/jq/trunk

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Mon Dec 28 20:00:19 CET 2015


Revision: 25511
          http://sourceforge.net/p/gar/code/25511
Author:   chninkel
Date:     2015-12-28 19:00:18 +0000 (Mon, 28 Dec 2015)
Log Message:
-----------
jq/trunk: fix build issue with _XOPEN_SOURCE

Modified Paths:
--------------
    csw/mgar/pkg/jq/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/jq/trunk/files/unset_xopen_source_for_solaris.patch

Modified: csw/mgar/pkg/jq/trunk/Makefile
===================================================================
--- csw/mgar/pkg/jq/trunk/Makefile	2015-12-28 18:56:03 UTC (rev 25510)
+++ csw/mgar/pkg/jq/trunk/Makefile	2015-12-28 19:00:18 UTC (rev 25511)
@@ -42,6 +42,11 @@
 PKGFILES_CSWlibjq-dev += $(PKGFILES_DEVEL)
 RUNTIME_DEP_PKGS_CSWlibjq-dev += CSWlibjq1
 
+# jq define _XOPEN_SOURCE but it causes problem when compiled with GCC
+# so we undefine it for now
+# see https://www.illumos.org/issues/3801 for detail on this issue
+PATCHFILES += unset_xopen_source_for_solaris.patch
+
 GARCOMPILER = GNU
 
 BUILD64 = 1

Added: csw/mgar/pkg/jq/trunk/files/unset_xopen_source_for_solaris.patch
===================================================================
--- csw/mgar/pkg/jq/trunk/files/unset_xopen_source_for_solaris.patch	                        (rev 0)
+++ csw/mgar/pkg/jq/trunk/files/unset_xopen_source_for_solaris.patch	2015-12-28 19:00:18 UTC (rev 25511)
@@ -0,0 +1,10 @@
+diff -urN jq-1.5/builtin.c jq-1.5.new/builtin.c
+--- jq-1.5/builtin.c	2015-08-16 06:38:10.000000000 +0200
++++ jq-1.5.new/builtin.c	2015-12-28 19:48:18.873160894 +0100
+@@ -1,6 +1,5 @@
+ #define _BSD_SOURCE
+ #define _GNU_SOURCE
+-#define _XOPEN_SOURCE
+ #include <sys/time.h>
+ #include <stdlib.h>
+ #include <stddef.h>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list