Index: trunk/debs/librsvg2/debian/compat |
— | — | @@ -1 +1 @@ |
2 | | -8 |
| 2 | +7 |
Index: trunk/debs/librsvg2/debian/control.in |
— | — | @@ -1,32 +1,32 @@ |
2 | 2 | Source: librsvg |
3 | 3 | Section: libdevel |
4 | 4 | Priority: optional |
5 | | -Maintainer: Josselin Mouette <joss@debian.org> |
6 | | -Uploaders: @GNOME_TEAM@ |
7 | | -Build-Depends: cdbs (>= 0.4.93), |
8 | | - debhelper (>= 8.1.3), |
| 5 | +Maintainer: Tim Starling <tstarling@wikimedia.org> |
| 6 | +Build-Depends: cdbs, |
| 7 | + debhelper (>= 7), |
9 | 8 | libfreetype6-dev, |
10 | 9 | libfontconfig1-dev (>= 1.0.1), |
11 | 10 | libxml2-dev (>= 2.6.22), |
12 | 11 | libglib2.0-dev (>= 2.24.0), |
13 | 12 | libcairo2-dev (>= 1.2.0), |
14 | 13 | libpango1.0-dev (>= 1.10.0), |
15 | | - libgdk-pixbuf2.0-dev (>= 2.23.5-2), |
16 | | - libgtk2.0-dev (>= 2.21.5), |
17 | | - libgtk-3-dev (>= 2.90.0), |
| 14 | + libgtk2.0-dev, |
18 | 15 | libgsf-1-dev (>= 1.13.2-2), |
19 | 16 | gnome-pkg-tools (>= 0.10), |
20 | 17 | libcroco3-dev (>= 0.6.1), |
21 | 18 | gtk-doc-tools (>= 1.13), |
| 19 | + libgirepository1.0-dev, |
| 20 | + gir1.0-glib-2.0, |
| 21 | + gir1.0-freedesktop, |
22 | 22 | python, |
23 | 23 | python-support, |
24 | 24 | libglib2.0-doc, |
25 | 25 | libgtk2.0-doc, |
26 | 26 | libcairo2-doc |
27 | | -Standards-Version: 3.9.2 |
| 27 | +Standards-Version: 3.8.4 |
28 | 28 | Homepage: http://librsvg.sourceforge.net/ |
29 | | -Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/librsvg |
30 | | -Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/unstable/librsvg |
| 29 | +Vcs-Svn: svn+ssh://svn.wikimedia.org/svnroot/mediawiki/trunk/debs/librsvg2 |
| 30 | +Vcs-Browser: https://svn.wikimedia.org/viewvc/mediawiki/trunk/debs/librsvg2/ |
31 | 31 | XS-Python-Version: >= 2.5 |
32 | 32 | |
33 | 33 | Package: librsvg2-dev |
— | — | @@ -34,10 +34,9 @@ |
35 | 35 | Architecture: any |
36 | 36 | Depends: ${misc:Depends}, |
37 | 37 | librsvg2-2 (= ${binary:Version}), |
38 | | - libglib2.0-dev (>= 2.12.0), |
39 | | - libgdk-pixbuf2.0-dev (>= 2.21.6), |
| 38 | + libglib2.0-dev, |
40 | 39 | libcairo2-dev (>= 1.2.0), |
41 | | - libgtk2.0-dev (>= 2.21.5) |
| 40 | + libgtk2.0-dev |
42 | 41 | Multi-Arch: same |
43 | 42 | Description: SAX-based renderer library for SVG files (development) |
44 | 43 | The rsvg library is an efficient renderer for Scalable Vector Graphics |
— | — | @@ -45,6 +44,8 @@ |
46 | 45 | . |
47 | 46 | This package provides the necessary development libraries and include |
48 | 47 | files to allow you to develop with librsvg. |
| 48 | + . |
| 49 | + With Wikimedia patch to disallow external files. |
49 | 50 | |
50 | 51 | Package: librsvg2-2 |
51 | 52 | Section: libs |
— | — | @@ -60,6 +61,8 @@ |
61 | 62 | . |
62 | 63 | This package contains the runtime library, necessary to run |
63 | 64 | applications using librsvg. |
| 65 | + . |
| 66 | + With Wikimedia patch to disallow external files. |
64 | 67 | |
65 | 68 | Package: librsvg2-common |
66 | 69 | Section: libs |
— | — | @@ -67,7 +70,7 @@ |
68 | 71 | Depends: ${misc:Depends}, |
69 | 72 | ${shlibs:Depends}, |
70 | 73 | librsvg2-2 (= ${binary:Version}) |
71 | | -Breaks: libgdk-pixbuf2.0-0 (<< 2.23.5-2), libgtk2.0-0 (<< 2.24.5-4) |
| 74 | +Breaks: libgdk-pixbuf2.0-0 (<< 2.23.5-2), libgtk2.0-0 (<< 2.20.0-0) |
72 | 75 | Multi-Arch: same |
73 | 76 | Description: SAX-based renderer library for SVG files (extra runtime) |
74 | 77 | The rsvg library is an efficient renderer for Scalable Vector Graphics |
— | — | @@ -75,6 +78,8 @@ |
76 | 79 | . |
77 | 80 | This package includes the gdk-pixbuf loader and a GTK+ engine, allowing |
78 | 81 | to load SVG images transparently inside GTK+ applications. |
| 82 | + . |
| 83 | + With Wikimedia patch to disallow external files. |
79 | 84 | |
80 | 85 | Package: librsvg2-dbg |
81 | 86 | Section: debug |
— | — | @@ -83,12 +88,13 @@ |
84 | 89 | Depends: ${misc:Depends}, |
85 | 90 | ${shlibs:Depends}, |
86 | 91 | librsvg2-2 (= ${binary:Version}) |
87 | | -Multi-Arch: same |
88 | 92 | Description: SAX-based renderer library for SVG files (debug) |
89 | 93 | The rsvg library is an efficient renderer for Scalable Vector Graphics |
90 | 94 | (SVG) pictures. |
91 | 95 | . |
92 | 96 | This package contains the debugging symbols. |
| 97 | + . |
| 98 | + With Wikimedia patch to disallow external files. |
93 | 99 | |
94 | 100 | Package: librsvg2-bin |
95 | 101 | Section: graphics |
— | — | @@ -104,3 +110,5 @@ |
105 | 111 | . |
106 | 112 | This package includes a command-line utility to convert the SVG files |
107 | 113 | to the PNG format and a graphical SVG viewer. |
| 114 | + . |
| 115 | + With Wikimedia patch to disallow external files. |
Index: trunk/debs/librsvg2/debian/librsvg2-common.install |
— | — | @@ -1,2 +1 @@ |
2 | | -usr/lib/*/gdk-pixbuf-2.0/2.10.0/loaders/*.so |
3 | | -usr/lib/*/gtk-2.0/*/engines/*.so |
| 2 | +usr/lib/gtk-2.0/*/engines/*.so |
Index: trunk/debs/librsvg2/debian/changelog |
— | — | @@ -1,3 +1,37 @@ |
| 2 | +librsvg (2.34.2-1wmf1) unstable; urgency=low |
| 3 | + |
| 4 | + * Recover wmf patches |
| 5 | + |
| 6 | + -- Mark A. Hershberger <mah@wikimedia.org> Sat, 24 Dec 2011 01:28:00 +0500 |
| 7 | + |
| 8 | +librsvg (2.34.2-1) unstable; urgency=low |
| 9 | + |
| 10 | + [ Josselin Mouette ] |
| 11 | + * Remove incorrect M-A: same statement for the debug package. |
| 12 | + |
| 13 | + [ Martin Pitt ] |
| 14 | + * New upstream release. |
| 15 | + * Drop 01_null_crash.patch, accepted upstream. |
| 16 | + * This version supports introspection, enable it: |
| 17 | + - debian/control.in: Add gir1.2-rsvg-2.0 binary package, |
| 18 | + g-i/libgirepository-dev build dependencies, and add gir1.2-rsvg-2.0 |
| 19 | + dependency to -dev. |
| 20 | + - debian/rules: Configure with --enable-introspection. |
| 21 | + - Add debian/gir1.2-rsvg-2.0.install: Install typelib. |
| 22 | + - debian/librsvg2-dev.install: Install *.gir. |
| 23 | + |
| 24 | + -- Martin Pitt <mpitt@debian.org> Thu, 17 Nov 2011 09:38:21 +0100 |
| 25 | + |
| 26 | +librsvg (2.34.1-3) unstable; urgency=low |
| 27 | + |
| 28 | + * debian/librsvg2-common.postinst.in: Simplify by merely activating the |
| 29 | + triggers of interested packages again instead of copy&paste'ing the |
| 30 | + gdk-pixbuf-loader code snippets. Also add a more detailled comment about |
| 31 | + why this is necessary. Also fix the glob to only catch directories. |
| 32 | + (Closes: #640955) |
| 33 | + |
| 34 | + -- Martin Pitt <mpitt@debian.org> Wed, 26 Oct 2011 12:43:35 +0200 |
| 35 | + |
2 | 36 | librsvg (2.34.1-2) unstable; urgency=low |
3 | 37 | |
4 | 38 | * debian/control.in: Add libgtk-3-dev build dependency to also build the |
— | — | @@ -179,6 +213,22 @@ |
180 | 214 | |
181 | 215 | -- Emilio Pozuelo Monfort <pochu@ubuntu.com> Tue, 21 Oct 2008 11:52:06 +0200 |
182 | 216 | |
| 217 | +librsvg (2.22.2-100wm2) unstable; urgency=low |
| 218 | + |
| 219 | + * (WM bug 16014) Fixed UTF-8 command-line input |
| 220 | + * Fixed missing newline in rsvg-convert error display |
| 221 | + |
| 222 | + -- Tim Starling <tstarling@wikimedia.org> Mon, 20 Oct 2008 16:42:45 +1100 |
| 223 | + |
| 224 | +librsvg (2.22.2-100wm1) unstable; urgency=low |
| 225 | + |
| 226 | + * Wikimedia fork. Applied security patch by Brion Vibber. |
| 227 | + * Added Wikimedia tag to rsvg --version and rsvg-convert --version. This is |
| 228 | + for Wikimedia's internal convenience only and is not a requirement of |
| 229 | + distribution. |
| 230 | + |
| 231 | + -- Tim Starling <tstarling@wikimedia.org> Wed, 20 Aug 2008 12:28:43 +1000 |
| 232 | + |
183 | 233 | librsvg (2.22.2-2) unstable; urgency=low |
184 | 234 | |
185 | 235 | * debian/control.in: |
Index: trunk/debs/librsvg2/debian/patches/cmdline-bugfixes.patch |
— | — | @@ -0,0 +1,29 @@ |
| 2 | +--- librsvg-2.22.2~/rsvg-convert.c 2007-07-01 23:43:44.000000000 +1000 |
| 3 | +@@ -31,6 +31,7 @@ |
| 4 | + #include <stdio.h> |
| 5 | + #include <stdlib.h> |
| 6 | + #include <string.h> |
| 7 | ++#include <locale.h> |
| 8 | + |
| 9 | + #include "rsvg.h" |
| 10 | + #include "rsvg-cairo.h" |
| 11 | +@@ -52,7 +53,7 @@ |
| 12 | + display_error (GError * err) |
| 13 | + { |
| 14 | + if (err) { |
| 15 | +- g_print ("%s", err->message); |
| 16 | ++ g_print ("%s\n", err->message); |
| 17 | + g_error_free (err); |
| 18 | + } |
| 19 | + } |
| 20 | +@@ -165,6 +166,9 @@ |
| 21 | + {NULL} |
| 22 | + }; |
| 23 | + |
| 24 | ++ /* Set the locale so that UTF-8 filenames work */ |
| 25 | ++ setlocale(LC_ALL, ""); |
| 26 | ++ |
| 27 | + g_thread_init(NULL); |
| 28 | + |
| 29 | + g_option_context = g_option_context_new (_("- SVG Converter")); |
Index: trunk/debs/librsvg2/debian/patches/wikimedia-brand.patch |
— | — | @@ -0,0 +1,24 @@ |
| 2 | +diff -ru librsvg-2.22.2~/rsvg-convert.c librsvg-2.22.2/rsvg-convert.c |
| 3 | +--- librsvg-2.22.2~/rsvg-convert.c 2007-07-01 23:43:44.000000000 +1000 |
| 4 | +@@ -178,7 +178,7 @@ |
| 5 | + g_option_context_free (g_option_context); |
| 6 | + |
| 7 | + if (bVersion != 0) { |
| 8 | +- printf (_("rsvg-convert version %s\n"), VERSION); |
| 9 | ++ printf (_("rsvg-convert version %s (Wikimedia)\n"), VERSION); |
| 10 | + return 0; |
| 11 | + } |
| 12 | + |
| 13 | +diff -ru librsvg-2.22.2~/rsvg.in librsvg-2.22.2/rsvg.in |
| 14 | +--- librsvg-2.22.2~/rsvg.in 2007-04-24 08:45:56.000000000 +1000 |
| 15 | +@@ -45,7 +45,7 @@ |
| 16 | + |
| 17 | + for o, a in opts: |
| 18 | + if o in ("-v", "--version"): |
| 19 | +- print "rsvg version %s" % ("@VERSION@") |
| 20 | ++ print "rsvg version %s (Wikimedia)" % ("@VERSION@") |
| 21 | + sys.exit(0) |
| 22 | + elif o in ("--usage"): |
| 23 | + usage() |
Index: trunk/debs/librsvg2/debian/patches/manpage.patch |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +--- librsvg2-2.8.1.orig/rsvg.1 |
| 3 | +@@ -6,7 +6,7 @@ |
| 4 | + [options] in.svg out.png |
| 5 | + .I "" |
| 6 | + .SH DESCRIPTION |
| 7 | +-RSVG coverts SVG images into PNG, JPEG, and ICO raster images. |
| 8 | ++RSVG converts SVG images into PNG, JPEG, and ICO raster images. |
| 9 | + .SS OPTIONS |
| 10 | + .TP |
| 11 | + .I "\-d \-\-dpi-x number" |
Index: trunk/debs/librsvg2/debian/patches/99_ltmain_as-needed.patch |
— | — | @@ -1,7 +1,7 @@ |
2 | | -+++ b/ltmain.sh |
3 | | -@@ -4716,6 +4716,11 @@ |
4 | | - arg=$func_stripname_result |
| 2 | +--- ltmain.sh.old 2007-10-09 07:38:25.000000000 +0200 |
| 3 | +@@ -1794,6 +1794,11 @@ |
| 4 | + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` |
5 | 5 | ;; |
6 | 6 | |
7 | 7 | + -Wl,--as-needed) |
— | — | @@ -10,9 +10,9 @@ |
11 | 11 | + ;; |
12 | 12 | + |
13 | 13 | -Wl,*) |
14 | | - func_stripname '-Wl,' '' "$arg" |
15 | | - args=$func_stripname_result |
16 | | -@@ -5067,6 +5072,15 @@ |
| 14 | + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` |
| 15 | + arg= |
| 16 | +@@ -2137,6 +2142,15 @@ |
17 | 17 | lib= |
18 | 18 | found=no |
19 | 19 | case $deplib in |
Index: trunk/debs/librsvg2/debian/patches/no-external-files.patch |
— | — | @@ -0,0 +1,58 @@ |
| 2 | +diff --git a/rsvg-base-file-util.c b/rsvg-base-file-util.c |
| 3 | +index 902c436..a3cc7c5 100644 |
| 4 | +--- a/rsvg-base-file-util.c |
| 5 | +@@ -91,7 +91,7 @@ rsvg_handle_new_from_file (const gchar * file_name, GError ** error) |
| 6 | + rsvg_return_val_if_fail (file_name != NULL, NULL, error); |
| 7 | + |
| 8 | + base_uri = rsvg_get_base_uri_from_filename (file_name); |
| 9 | +- f = _rsvg_acquire_xlink_href_resource (file_name, base_uri, error); |
| 10 | ++ f = _rsvg_acquire_file_resource (file_name, base_uri, error); |
| 11 | + |
| 12 | + if (f) { |
| 13 | + handle = rsvg_handle_new (); |
| 14 | +diff --git a/rsvg-image.c b/rsvg-image.c |
| 15 | +index 02882bd..5e74a1e 100644 |
| 16 | +--- a/rsvg-image.c |
| 17 | +@@ -160,6 +160,26 @@ rsvg_acquire_vfs_resource (const char *filename, const char *base_uri, GError ** |
| 18 | + } |
| 19 | + |
| 20 | + GByteArray * |
| 21 | ++_rsvg_acquire_file_resource (const char *href, const char *base_uri, GError ** err) |
| 22 | ++{ |
| 23 | ++ GByteArray *arr = NULL; |
| 24 | ++ |
| 25 | ++ if (!(href && *href)) |
| 26 | ++ return NULL; |
| 27 | ++ |
| 28 | ++ if (!strncmp (href, "data:", 5)) |
| 29 | ++ arr = rsvg_acquire_base64_resource (href, NULL); |
| 30 | ++ |
| 31 | ++ if (!arr) |
| 32 | ++ arr = rsvg_acquire_file_resource (href, base_uri, NULL); |
| 33 | ++ |
| 34 | ++ if (!arr) |
| 35 | ++ arr = rsvg_acquire_vfs_resource (href, base_uri, NULL); |
| 36 | ++ |
| 37 | ++ return arr; |
| 38 | ++} |
| 39 | ++ |
| 40 | ++GByteArray * |
| 41 | + _rsvg_acquire_xlink_href_resource (const char *href, const char *base_uri, GError ** err) |
| 42 | + { |
| 43 | + GByteArray *arr = NULL; |
| 44 | +@@ -170,11 +190,13 @@ _rsvg_acquire_xlink_href_resource (const char *href, const char *base_uri, GErro |
| 45 | + if (!strncmp (href, "data:", 5)) |
| 46 | + arr = rsvg_acquire_base64_resource (href, NULL); |
| 47 | + |
| 48 | ++#ifdef ALLOW_EXTERNAL |
| 49 | + if (!arr) |
| 50 | + arr = rsvg_acquire_file_resource (href, base_uri, NULL); |
| 51 | + |
| 52 | + if (!arr) |
| 53 | + arr = rsvg_acquire_vfs_resource (href, base_uri, NULL); |
| 54 | ++#endif |
| 55 | + |
| 56 | + return arr; |
| 57 | + } |
Index: trunk/debs/librsvg2/debian/patches/10_rsvg-gz.patch |
— | — | @@ -10,13 +10,3 @@ |
11 | 11 | +{ |
12 | 12 | + return rsvg_handle_new (); |
13 | 13 | +} |
14 | | -+++ b/librsvg.def |
15 | | -@@ -7,6 +7,7 @@ |
16 | | - rsvg_handle_set_dpi |
17 | | - rsvg_handle_set_dpi_x_y |
18 | | - rsvg_handle_new |
19 | | -+rsvg_handle_new_gz |
20 | | - rsvg_handle_write |
21 | | - rsvg_handle_close |
22 | | - rsvg_handle_get_pixbuf |
Index: trunk/debs/librsvg2/debian/patches/rsvg-gz.patch |
— | — | @@ -0,0 +1,22 @@ |
| 2 | +--- rsvg-gobject.c 2006-02-06 05:41:56.000000000 +0100 |
| 3 | +@@ -317,3 +317,9 @@ |
| 4 | + { |
| 5 | + return RSVG_HANDLE (g_object_new (RSVG_TYPE_HANDLE, NULL)); |
| 6 | + } |
| 7 | ++ |
| 8 | ++RsvgHandle * |
| 9 | ++rsvg_handle_new_gz (void) |
| 10 | ++{ |
| 11 | ++ return rsvg_handle_new (); |
| 12 | ++} |
| 13 | +--- librsvg.def.orig 2006-09-05 23:46:41.000000000 +0200 |
| 14 | +@@ -7,6 +7,7 @@ |
| 15 | + rsvg_handle_set_dpi |
| 16 | + rsvg_handle_set_dpi_x_y |
| 17 | + rsvg_handle_new |
| 18 | ++rsvg_handle_new_gz |
| 19 | + rsvg_handle_write |
| 20 | + rsvg_handle_close |
| 21 | + rsvg_handle_get_pixbuf |
Index: trunk/debs/librsvg2/debian/rules |
— | — | @@ -3,6 +3,7 @@ |
4 | 4 | include /usr/share/cdbs/1/rules/debhelper.mk |
5 | 5 | include /usr/share/cdbs/1/rules/utils.mk |
6 | 6 | include /usr/share/cdbs/1/class/gnome.mk |
| 7 | +include /usr/share/cdbs/1/rules/simple-patchsys.mk |
7 | 8 | include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk |
8 | 9 | include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk |
9 | 10 | |
Index: trunk/debs/librsvg2/debian/librsvg2-2.install |
— | — | @@ -1 +1 @@ |
2 | | -usr/lib/*/lib*.so.* |
| 2 | +usr/lib/lib*.so.* |
Index: trunk/debs/librsvg2/debian/librsvg2-common.postinst.in |
— | — | @@ -4,13 +4,12 @@ |
5 | 5 | #DEBHELPER# |
6 | 6 | |
7 | 7 | if [ "$1" = configure ]; then |
8 | | - # run an update there because the trigger might not work; see |
| 8 | + # gdk-pixbuf's triggers already trigger on "interest" which happens after |
| 9 | + # unpack. At that time the SVG loader might not work yet due to |
| 10 | + # unconfigured/missing dependencies, so we need to run the gdk pixbuf |
| 11 | + # loader query again after we are configured, as that is the only time when |
| 12 | + # our library is guaranteed to work. see # |
9 | 13 | # https://launchpad.net/bugs/719861 comment 9 for details |
10 | | - GDKPIXDIR=/usr/lib/#MULTIARCH#/gdk-pixbuf-2.0/ |
11 | | - if [ -d $GDKPIXDIR ]; then |
12 | | - for VERSION in `ls $GDKPIXDIR`; do |
13 | | - $GDKPIXDIR/gdk-pixbuf-query-loaders $GDKPIXDIR/$VERSION/loaders/*.so /usr/lib/gdk-pixbuf-2.0/$VERSION/loaders/*.so > $GDKPIXDIR/$VERSION/loaders.cache 2>/dev/null || true |
14 | | - done |
15 | | - fi |
| 14 | + dpkg-trigger --no-await /usr/lib/#MULTIARCH#/gdk-pixbuf-2.0/*/loaders |
16 | 15 | fi |
17 | 16 | |
Index: trunk/debs/librsvg2/debian/librsvg2-dev.install |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | usr/include |
3 | | -usr/lib/*/lib*.a |
4 | | -usr/lib/*/lib*.so |
5 | | -usr/lib/*/pkgconfig |
| 3 | +usr/lib/lib*.a |
| 4 | +usr/lib/lib*.so |
| 5 | +usr/lib/pkgconfig |
6 | 6 | usr/share/gtk-doc/html/rsvg-2.0/* usr/share/doc/librsvg2-dev/html/ |
Index: trunk/debs/librsvg2/debian/shlibs.local |
— | — | @@ -0,0 +1 @@ |
| 2 | +librsvg-2 2 |