components/swig/patches/01-rlang.patch
author Shawn Walker <shawn.walker@oracle.com>
Wed, 04 Nov 2015 17:27:39 -0800
changeset 5067 f5a839ab21b9
permissions -rw-r--r--
22093091 r-project bindings for swig can prevent graphviz from building
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5067
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     1
Swig bindings for R call fprintf but fail to include stdio.h.
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     2
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     3
Reported upstream as issue #555:
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     4
  https://github.com/swig/swig/issues/555
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     5
diff -ru swig-3.0.5/Lib/r/rrun.swg swig-3.0.5.new/Lib/r/rrun.swg
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     6
--- swig-3.0.5/Lib/r/rrun.swg	2015-01-31 09:51:17.000000000 -0800
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     7
+++ swig-3.0.5/Lib/r/rrun.swg	2015-10-23 14:03:31.679583617 -0700
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     8
@@ -20,6 +20,7 @@
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
     9
 
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
    10
 #include <Rdefines.h>
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
    11
 #include <Rversion.h>
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
    12
+#include <stdio.h>
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
    13
 #include <stdlib.h>
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
    14
 #include <assert.h>
f5a839ab21b9 22093091 r-project bindings for swig can prevent graphviz from building
Shawn Walker <shawn.walker@oracle.com>
parents:
diff changeset
    15