summaryrefslogtreecommitdiffstats
path: root/src/librsvg-1-fixes.patch
blob: 8e25e66e88291f7f0f42cca5791a144b25e11a2d (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
This file is part of MXE.
See index.html for further information.

Contains an ad hoc patch for cross building.

From 1ff5a73bee660f1d61f9cdd7c8d7aff29e959c4c Mon Sep 17 00:00:00 2001
From: MXE
Date: Mon, 27 Sep 2010 12:00:52 +0200
Subject: [PATCH 1/2] fix .pc requirements


diff --git a/librsvg.pc.in b/librsvg.pc.in
index 372f199..b6ee7a9 100644
--- a/librsvg.pc.in
+++ b/librsvg.pc.in
@@ -9,7 +9,7 @@ css_supported=@CSS_SUPPORTED@
 Name: librsvg
 Description: library that renders svg files
 Version: @VERSION@
-Requires: glib-2.0 gio-2.0 gdk-pixbuf-2.0 cairo
+Requires: glib-2.0 gio-2.0 gdk-pixbuf-2.0 cairo libgsf-1 pangocairo libcroco-0.6
 Requires.private:
 Libs: -L${libdir} -lrsvg-@RSVG_API_MAJOR_VERSION@ -lm
 Cflags: -I${includedir}/librsvg-@RSVG_API_VERSION@
-- 
1.7.1


[PATCH 2/2] Work around use of canonicalize_file_name()


diff -ur librsvg-2.40.0.orig/rsvg-base.c librsvg-2.40.0/rsvg-base.c
--- librsvg-2.40.0.orig/rsvg-base.c	2013-05-11 11:19:07.000000000 +0200
+++ librsvg-2.40.0/rsvg-base.c	2013-11-09 15:24:47.865999754 +0100
@@ -2191,7 +2191,11 @@
     g_object_unref (base);
 
     /* FIXME portability */
+#ifndef __MINGW32__
     cdir = canonicalize_file_name (dir);
+#else
+    cdir = dir;
+#endif
     g_free (dir);
     if (cdir == NULL)
         goto deny;
@@ -2201,7 +2205,11 @@
         goto deny;
 
     /* FIXME portability */
+#ifndef __MINGW32__
     cpath = canonicalize_file_name (path);
+#else
+    cpath = path;
+#endif
     g_free (path);
 
     if (cpath == NULL)