Ticket #42298: patch-librsvg-2.40.1.diff

File patch-librsvg-2.40.1.diff, 4.3 KB (added by dbevans (David B. Evans), 10 years ago)

Proposed patch to update to version 2.40.1

  • Portfile

     
    55PortGroup           archcheck 1.0
    66
    77name                librsvg
    8 version             2.36.4
    9 revision            5
     8version             2.40.1
    109license             {GPL-2+ LGPL-2+}
    1110set branch          [join [lrange [split ${version} .] 0 1] .]
    1211categories          graphics gnome
     
    2019master_sites        gnome:sources/${name}/${branch}/
    2120use_xz              yes
    2221
    23 checksums           rmd160  b9765edaccd7e40997a3a141e4d21c5a13f6f2a1 \
    24                     sha256  1021935204798f4f0ad3004a09b583668ea94a48593461b147fdcff68a18e6c2
     22checksums           rmd160  6e0212214c7acc6d570d1dbb196bde3678e84525 \
     23                    sha256  8813b4fe776d5e7acbce28bacbaed30ccb0cec3734eb3632c711a16ebe2961d7
    2524
    2625depends_build       port:pkgconfig
    2726
    28 depends_lib         port:libart_lgpl \
     27depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
    2928                    path:lib/pkgconfig/cairo.pc:cairo \
     29                    path:lib/pkgconfig/pangocairo.pc:pango \
    3030                    port:libcroco \
    31                     port:fontconfig \
    32                     port:freetype \
    33                     path:lib/pkgconfig/glib-2.0.pc:glib2 \
    34                     port:libgsf \
    35                     port:libpng \
    3631                    port:libxml2 \
    37                     path:lib/pkgconfig/pango.pc:pango \
    38                     path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2
     32                    port:gdk-pixbuf2 \
     33                    port:gtk3 \
     34                    port:vala
    3935
    4036
    4137set pyversion 2.7
    4238depends_run         port:python[join [split ${pyversion} "."] ""]
    4339
    44 archcheck.files     lib/libart_lgpl_2.dylib \
    45                     lib/libcairo.dylib \
     40archcheck.files     lib/libcairo.dylib \
    4641                    lib/libcroco-0.6.dylib \
    47                     lib/libfontconfig.dylib \
    48                     lib/libfreetype.dylib \
    4942                    lib/libglib-2.0.dylib \
    50                     lib/libgsf-1.dylib \
    51                     lib/libpango-1.0.dylib \
     43                    lib/libpangocairo-1.0.dylib \
    5244                    lib/libxml2.dylib
    5345
    54 patch.pre_args      -p1
    55 patchfiles          patch-configure.diff
     46patchfiles          patch-replace-canonicalize-file-name.diff
    5647
    57 configure.args      --disable-gtk-theme \
    58                     --disable-gtk-doc \
     48configure.args      --enable-introspection=yes \
     49                    --enable-vala=yes \
    5950                    --disable-Bsymbolic
    6051
    6152# librsvg's build process includes the gobject-introspection Makefile, causing
  • files/patch-replace-canonicalize-file-name.diff

     
     1From 02cb19835cb52bd84b0b5eaca1b4d6338417d261 Mon Sep 17 00:00:00 2001
     2From: Antoine Jacoutot <ajacoutot@gnome.org>
     3Date: Tue, 15 Oct 2013 07:36:30 +0000
     4Subject: portability: canonicalize_file_name -> realpath
     5
     6canonicalize_file_name() is a GNU extension so let's use the portable
     7realpath() instead.
     8
     9https://bugzilla.gnome.org/show_bug.cgi?id=710163
     10---
     11diff --git a/rsvg-base.c b/rsvg-base.c
     12index cb9f64a..fb829e7 100644
     13--- rsvg-base.c
     14+++ rsvg-base.c
     15@@ -50,6 +50,8 @@
     16 #include <math.h>
     17 #include <string.h>
     18 #include <stdarg.h>
     19+#include <limits.h>
     20+#include <stdlib.h>
     21 
     22 #include "rsvg-path.h"
     23 #include "rsvg-paint-server.h"
     24@@ -2190,8 +2192,7 @@ _rsvg_handle_allow_load (RsvgHandle *handle,
     25     dir = g_file_get_path (base);
     26     g_object_unref (base);
     27 
     28-    /* FIXME portability */
     29-    cdir = canonicalize_file_name (dir);
     30+    cdir = realpath (dir, NULL);
     31     g_free (dir);
     32     if (cdir == NULL)
     33         goto deny;
     34@@ -2200,8 +2201,7 @@ _rsvg_handle_allow_load (RsvgHandle *handle,
     35     if (path == NULL)
     36         goto deny;
     37 
     38-    /* FIXME portability */
     39-    cpath = canonicalize_file_name (path);
     40+    cpath = realpath (path, NULL);
     41     g_free (path);
     42 
     43     if (cpath == NULL)
     44--
     45cgit v0.9.2
  • .