File: use_debian_packaged_libyaml.patch

package info (click to toggle)
r-cran-yaml 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 736 kB
  • sloc: ansic: 9,553; sh: 14; makefile: 7
file content (37 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Authors: Andreas Tille <tille@debian.org>
Las-Update: Tue, 29 Nov 2016 16:39:02 +0100
Description: Enable use of Debian packaged libyaml
  upstream r-ext.h has:
       #include "yaml.h"
       #include "yaml_private.h"
  should be
       #include <yaml.h>
       #include "yaml_private.h"
  since libyaml-dev ships only /usr/include/yaml.h

--- a/src/Makevars
+++ b/src/Makevars
@@ -1 +1,2 @@
 PKG_CPPFLAGS = -I. -DNDEBUG
+PKG_LIBS = -lyaml
--- a/src/implicit.c
+++ b/src/implicit.c
@@ -1,6 +1,6 @@
 /* Generated by re2c 0.16 */
 #line 1 "implicit.re"
-#include "yaml.h"
+#include <yaml.h>
 
 yaml_char_t *
 find_implicit_tag(str, len)
--- a/src/r-ext.h
+++ b/src/r-ext.h
@@ -9,7 +9,7 @@
 #include "R_ext/Parse.h"
 #include "R_ext/Print.h"
 #include "R_ext/PrtUtil.h"
-#include "yaml.h"
+#include <yaml.h>
 #include "yaml_private.h"
 
 #define REAL_BUF_SIZE 256