--- libwmf-0.2.8.4.orig/src/font.c +++ libwmf-0.2.8.4/src/font.c @@ -199,7 +199,7 @@ unsigned int i = 0; while (font_data->cache[i].name) - { if (strcmp (font_data->cache[i].path,entry->path) == 0) break; + { if (strcmp (font_data->cache[i].name,entry->name) == 0) break; i++; } @@ -422,7 +422,6 @@ fontmap_data->FD.FI = 0; - if (API->flags & WMF_OPT_SYS_FONTS) { if (API->flags & WMF_OPT_SYS_FONTMAP) { wmf_ipa_font_map_xml (API,&(fontmap_data->FD),options->sys_fontmap_file); } --- libwmf-0.2.8.4.orig/src/player.c +++ libwmf-0.2.8.4/src/player.c @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -132,8 +133,14 @@ } } -/* P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API)-3) * 2 * sizeof (unsigned char)); - */ P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char)); + if (MAX_REC_SIZE(API) > UINT32_MAX / 2) + { + API->err = wmf_E_InsMem; + WMF_DEBUG (API,"bailing..."); + return (API->err); + } + + P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char)); if (ERR (API)) { WMF_DEBUG (API,"bailing..."); --- libwmf-0.2.8.4.orig/src/extra/gd/gd_clip.c +++ libwmf-0.2.8.4/src/extra/gd/gd_clip.c @@ -70,6 +70,7 @@ { more = gdRealloc (im->clip->list,(im->clip->max + 8) * sizeof (gdClipRectangle)); if (more == 0) return; im->clip->max += 8; + im->clip->list = more; } im->clip->list[im->clip->count] = (*rect); im->clip->count++; --- libwmf-0.2.8.4.orig/debian/install +++ libwmf-0.2.8.4/debian/install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/*.so.* +debian/tmp/usr/lib/gtk-*/*/loaders/*.so --- libwmf-0.2.8.4.orig/debian/copyright +++ libwmf-0.2.8.4/debian/copyright @@ -0,0 +1,82 @@ +Upstream sources of libwmf were obtained from +. + +The original author is Caolan McNamara . It is +currently maintained by Francis James Franklin . + +libwmf was packaged for Debian by Matej Vela . + + Copyright (C) 2000 - various; see CREDITS, ChangeLog, and sources + + The libwmf Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The libwmf Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the libwmf Library; see the file COPYING. If not, + write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU Library General Public +License can be found in /usr/share/common-licenses/LGPL-2. + + In order to resolve any possible confusion regarding the authorship of + gd, the following copyright statement covers all of the authors who + have required such a statement. _If you are aware of any oversights in + this copyright notice, please contact Thomas Boutell who will be + pleased to correct them._ + + COPYRIGHT STATEMENT FOLLOWS THIS LINE + + Portions copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 + by Cold Spring Harbor Laboratory. Funded under Grant P41-RR02188 by + the National Institutes of Health. + + Portions copyright 1996, 1997, 1998, 1999, 2000, 2001 by + Boutell.Com, Inc. + + Portions relating to GD2 format copyright 1999, 2000 Philip Warner. + + Portions relating to PNG copyright 1999, 2000 Greg Roelofs. + + Portions relating to libttf copyright 1999, 2000 John Ellson + (ellson@lucent.com). + + Portions relating to JPEG and to color quantization copyright 2000, + Doug Becker and copyright (C) 1994-1998, Thomas G. Lane. This + software is based in part on the work of the Independent JPEG + Group. See the file README-JPEG.TXT for more information. + + Portions relating to WBMP copyright 2000 Maurice Szmurlo and Johan + Van den Brande. + + _Permission has been granted to copy, distribute and modify gd in + any context without fee, including a commercial application, + provided that this notice is present in user-accessible supporting + documentation._ + + This does not affect your ownership of the derived work itself, and + the intent is to assure proper credit for the authors of gd, not to + interfere with your productive use of gd. If you have questions, + ask. "Derived works" includes all programs that utilize the + library. Credit must be given in user-accessible documentation. + + _This software is provided "AS IS."_ The copyright holders disclaim + all warranties, either express or implied, including but not + limited to implied warranties of merchantability and fitness for a + particular purpose, with respect to this code and accompanying + documentation. + + Although their code does not appear in gd 2.0.1, the authors wish + to thank David Koblas, David Rowley, and Hutchison Avenue Software + Corporation for their prior contributions. + + END OF COPYRIGHT STATEMENT + +The Debian packaging is in the public domain. --- libwmf-0.2.8.4.orig/debian/rules +++ libwmf-0.2.8.4/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +export CFLAGS := -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2) + +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) + +libwmf_pkg := libwmf0.2-7 + +confflags := --prefix=/usr \ + --with-docdir=/usr/share/doc/$(libwmf_pkg) \ + --with-fontdir=/var/lib/defoma/$(libwmf_pkg).d \ + --with-gsfontdir=/var/lib/defoma/$(libwmf_pkg).d \ + --with-sysfontmap=/var/lib/defoma/$(libwmf_pkg).d/fontmap \ + --with-gsfontmap=/var/lib/defoma/$(libwmf_pkg).d/fontmap.gs \ + --with-xtrafontmap=/etc/libwmf.fontmap +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build=$(DEB_HOST_GNU_TYPE) +else + confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif + +build: build-stamp +build-stamp: + dh_testdir + ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess . + ./configure $(confflags) + $(MAKE) + > $@ + +clean: + dh_testdir + dh_testroot + dh_clean build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + +export DH_OPTIONS + +install: DH_OPTIONS = +install: build + dh_testdir + dh_testroot + dh_clean + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp font_DATA= install + +binary-arch: DH_OPTIONS = -a +binary-indep: DH_OPTIONS = -i +binary-%: DH_OPTIONS = -p$* +binary binary-%: install + dh_installdirs + dh_link + dh_installchangelogs ChangeLog + dh_installdocs + dh_installdefoma + dh_install + LD_LIBRARY_PATH=debian/$(libwmf_pkg)/usr/lib:$(LD_LIBRARY_PATH) \ + dh_gtkmodules + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps -ldebian/$(libwmf_pkg)/usr/lib -Xusr/lib/gtk + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: build clean install binary --- libwmf-0.2.8.4.orig/debian/libwmf-doc.links +++ libwmf-0.2.8.4/debian/libwmf-doc.links @@ -0,0 +1 @@ +usr/share/doc/libwmf0.2-7 usr/share/doc/libwmf-doc --- libwmf-0.2.8.4.orig/debian/changelog +++ libwmf-0.2.8.4/debian/changelog @@ -0,0 +1,252 @@ +libwmf (0.2.8.4-6ubuntu0.8.10.1) intrepid-security; urgency=low + + * SECURITY UPDATE: denial of service via gd use-after-free error + - src/extra/gd/gd_clip.c: actually use result of gdRealloc. + - CVE-2009-1364 + + -- Marc Deslauriers Fri, 24 Apr 2009 09:37:25 -0400 + +libwmf (0.2.8.4-6) unstable; urgency=low + + * Upload to unstable. + + -- Loic Minier Fri, 13 Apr 2007 22:04:10 +0200 + +libwmf (0.2.8.4-5) experimental; urgency=low + + * Convert the package to the new Gtk modules handling; closes: #382511. + - Bump up the libgtk2.0-dev build-dep to >= 2.10.1-1. + - Call dh_gtkmodules with an appropriate LD_LIBRARY_PATH. + - Drop debian/postinst and debian/postrm. + + -- Loic Minier Wed, 21 Mar 2007 10:51:18 +0100 + +libwmf (0.2.8.4-4) unstable; urgency=low + + * Adopt for interim maintenance upon the end of the Gtk 2.10 transition; + closes: #415574. + * Depend on ${misc:Depends}. + * For additional safety, use $(libwmf_pkg) instead of hardcoding the + package name with SONAME. + * Bump up Debhelper compatibility level to 5. + + -- Loic Minier Wed, 21 Mar 2007 10:46:43 +0100 + +libwmf (0.2.8.4-3) unstable; urgency=low + + * Orphaning. + * debian/watch: Update upstream URL. + + -- Matej Vela Tue, 20 Mar 2007 10:10:00 +0100 + +libwmf (0.2.8.4-2) unstable; urgency=high + + * src/player.c: Fix integer overflow vulnerability. [CVE-2006-3376] + Closes: #381538. + + -- Matej Vela Sat, 5 Aug 2006 12:15:57 +0200 + +libwmf (0.2.8.4-1) unstable; urgency=low + + * New upstream release. + * Acknowledge NMU. Thanks, Daniel! Closes: #347236. + * Upstream is using a recent enough libtool; leave it alone. + * Build depend on libxt-dev to placate AC_PATH_X. + * Conforms to Standards version 3.7.2. + + -- Matej Vela Sun, 23 Jul 2006 20:06:00 +0200 + +libwmf (0.2.8.3-3.1) unstable; urgency=low + + * NMU. + * Update to use automake1.7, since automake1.6 was removed. + Closes: #335137. + + -- Daniel Schepler Mon, 9 Jan 2006 16:59:46 +0100 + +libwmf (0.2.8.3-3) unstable; urgency=low + + * Update libwmf-dev dependencies: + - Replace xlibs-dev with libsm-dev, libice-dev, libx11-dev. + Closes: #332260. + - Replace libpng12-0-dev with libpng12-dev. + * debian/copyright: Update FSF address. + * debian/watch: Add. + * Conforms to Standards version 3.6.2. + + -- Matej Vela Wed, 5 Oct 2005 18:36:53 +0200 + +libwmf (0.2.8.3-2) unstable; urgency=low + + * debian/defoma: Handle missing Family hints. Closes: #301311. + * Move libwmf-dev to libdevel. + + -- Matej Vela Fri, 25 Mar 2005 21:21:01 +0100 + +libwmf (0.2.8.3-1) unstable; urgency=low + + * New upstream release. Closes: #255979. + - Uses . Closes: #220989, #224142. + * Instead of relying on hardcoded paths from gsfonts, use Defoma to + generate an XML fontmap. (This makes libwmf-fontmap unnecessary.) + Closes: #287984. + * src/font.c (wmf_ipa_font_init): Always check the generated fontmap. + * src/font.c (ipa_font_add_cache): Compare cache entries by name rather + than by path in order to correctly handle aliases. + * Build-depend on libx11-dev rather than xlibs-dev. Closes: #247274. + * Install gdk-pixbuf loader. Closes: #263911. + * debian/rules: + - Automatically update libtool and config.sub. Closes: #267510. + - Specify build and host type to configure. + - Honor DEB_BUILD_OPTIONS=noopt. + * Conforms to Standards version 3.6.1. + + -- Matej Vela Thu, 24 Mar 2005 13:47:38 +0100 + +libwmf (0.2.8-1.1) unstable; urgency=low + + * NMU from the Minneapolis BSP. + * Fixed freetype header problem, was causing FTBFS bugs in other packages. + (Closes: #220989) + + -- Scott Dier Sat, 13 Dec 2003 19:27:27 -0600 + +libwmf (0.2.8-1) unstable; urgency=low + + * New upstream release. + * Update libpng-dev build dependency to libpng12-0-dev. + * Remove undocumented(7) symlinks. + * Conforms to Standards version 3.5.8. + + -- Matej Vela Sun, 29 Dec 2002 22:24:49 +0100 + +libwmf (0.2.7-1) unstable; urgency=low + + * New upstream release. + * Conforms to Standards version 3.5.7. + + -- Matej Vela Mon, 14 Oct 2002 20:49:18 +0200 + +libwmf (0.2.6-1) unstable; urgency=low + + * New upstream version, compiled with libpng3. Closes: #156761. + * Configured to use /usr/share/fonts/type1/gsfonts in order to work with + older gsfonts. Raised gsfonts to a dependency. Closes: #141203. + * ltmain.sh: Use James Troup's workaround for #98342. + * Switched to debhelper 4. + * debian/rules: Remove `debug' support and enable `-g' by default. + According to #157131, the slow down is insignificant. + + -- Matej Vela Mon, 26 Aug 2002 21:35:25 +0200 + +libwmf (0.2.2-4) unstable; urgency=high + + * Make libwmf-dev replace misplaced .la files in libwmf0 (<< 0.1.21-1). + Closes: #144299. + + -- Matej Vela Sat, 27 Apr 2002 11:26:42 +0200 + +libwmf (0.2.2-3) unstable; urgency=high + + * Remove virtual library packages from build dependencies to avoid + conflicts. Closes: #143900. + + -- Matej Vela Sun, 21 Apr 2002 18:59:24 +0200 + +libwmf (0.2.2-2) unstable; urgency=low + + * Link with expat instead of libxml2, solving some AbiWord problems. + Closes: #139464. + + -- Matej Vela Sat, 13 Apr 2002 19:31:19 +0200 + +libwmf (0.2.2-1) unstable; urgency=high + + * New upstream version. + * Hope it makes it to testing now. Closes: #117766. + * Use the updated description from libwmf.spec. Closes: #111292. + + -- Matej Vela Sun, 11 Nov 2001 09:59:07 +0100 + +libwmf (0.2.1-1) unstable; urgency=low + + * New upstream version. + * configure now puts FreeType 2 includes at the beginning; Conflicts + no longer necessary. + + -- Matej Vela Sun, 2 Sep 2001 17:08:43 +0200 + +libwmf (0.2.0-1) unstable; urgency=medium + + * New upstream version. + * src/ipa/fig/device.h: POSIX time(2) requires an argument. + * Merged in previous NMU. Closes: #96017. + * Updated config.guess and config.sub once again. Closes: #98336. + * debian/rules: Use `dh_shlibdeps -l'. Closes: #104309. + * Added {freetype[0-2],libttf}-dev to Build-Conflicts and + libwmf-dev's Conflicts to avoid header mismatches + (`-I/usr/include' from xml-config comes first). + * Switched to debhelper 3. + * Conforms to Standards version 3.5.6. + + -- Matej Vela Wed, 1 Aug 2001 00:50:15 +0200 + +libwmf (0.1.21-1.1) unstable; urgency=low + + * Run libtoolize to get support for new architectures. Closes: #96017 + + -- LaMont Jones Mon, 9 Jul 2001 21:39:34 -0600 + +libwmf (0.1.21-1) unstable; urgency=low + + * New upstream version. + * Updated wmftofig.1, wmftopng.1, and xwmf.1; wrote wmftoeps.1. + * debian/control: Renamed libwmf0-dev to libwmf-dev since it is + unlikely that different versions will be installed at the same time. + * debian/rules: Put the copyright and changelogs in libwmf0 only, + and symbolic links to /usr/share/doc/libwmf0 in other packages. + * Conforms to Standards version 3.2.1: + * debian/rules: Added support for the `debug' build option. + + -- Matej Vela Sat, 6 Jan 2001 23:02:08 +0100 + +libwmf (0.1.16-2) unstable; urgency=low + + * Conforms to Standards version 3.1.0: + * Installing the /usr/doc symbolic links. + * debian/control: Added build dependancies. + * debian/control: libwmf0-dev suggests libwmf-doc, and vice versa. + + -- Matej Vela Sat, 6 Nov 1999 21:56:34 +0100 + +libwmf (0.1.16-1) unstable; urgency=low + + * New upstream version. + * Added a dependancy on netpbm. Closes: Bug#45448. + * Applied + containing libtool support (accepted by upstream). + * Wrote wmftofig.1. + * Conforms to Standards version 3.0.1: + * Changed debian/copyright to reference + `/usr/share/common-licenses/LGPL-2'. + + -- Matej Vela Wed, 8 Sep 1999 13:01:36 +0200 + +libwmf (0.1.11-1) unstable; urgency=low + + * New upstream version. + * Conforms to Standards version 2.5.1. + + -- Matej Vela Thu, 3 Jun 1999 10:54:34 +0200 + +libwmf (0.1.10-1) unstable; urgency=low + + * New upstream version. + + -- Matej Vela Fri, 28 May 1999 18:37:13 +0200 + +libwmf (0.1.9-1) unstable; urgency=low + + * New package. + + -- Matej Vela Sat, 8 May 1999 22:23:58 +0200 --- libwmf-0.2.8.4.orig/debian/libwmf-bin.links +++ libwmf-0.2.8.4/debian/libwmf-bin.links @@ -0,0 +1 @@ +usr/share/doc/libwmf0.2-7 usr/share/doc/libwmf-bin --- libwmf-0.2.8.4.orig/debian/libwmf-bin.install +++ libwmf-0.2.8.4/debian/libwmf-bin.install @@ -0,0 +1 @@ +debian/tmp/usr/bin/wmf2* --- libwmf-0.2.8.4.orig/debian/control +++ libwmf-0.2.8.4/debian/control @@ -0,0 +1,58 @@ +Source: libwmf +Section: libs +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Loic Minier +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 5), defoma (>= 0.11), autotools-dev, libfreetype6-dev, zlib1g-dev, libsm-dev, libice-dev, libx11-dev, libxt-dev, libexpat1-dev, libjpeg62-dev, libpng12-dev, libgtk2.0-dev (>= 2.10.1-1) + +Package: libwmf0.2-7 +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, defoma (>= 0.11), gsfonts +Description: Windows metafile conversion library + Windows metafile (WMF) is a picture format used by many Windows + programs, e.g. Microsoft Word. libwmf is a library for interpreting + metafile images and either displaying them using X or converting them + to standard formats such as PNG, JPEG, PS, EPS and SVG(Z)... + . + This package contains the shared library. + +Package: libwmf-bin +Section: graphics +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Windows metafile conversion tools + Windows metafile (WMF) is a picture format used by many Windows + programs, e.g. Microsoft Word. libwmf is a library for interpreting + metafile images and either displaying them using X or converting them + to standard formats such as PNG, JPEG, PS, EPS and SVG(Z)... + . + This package contains several frontends to libwmf. + +Package: libwmf-dev +Section: libdevel +Architecture: any +Replaces: libwmf0 (<< 0.1.21-1), libwmf0-dev +Depends: ${misc:Depends}, libwmf0.2-7 (= ${Source-Version}), libc6-dev, libfreetype6-dev, zlib1g-dev, libsm-dev, libice-dev, libx11-dev, libexpat1-dev, libjpeg62-dev, libpng12-dev +Suggests: libwmf-doc +Conflicts: libwmf0-dev +Description: Windows metafile conversion development + Windows metafile (WMF) is a picture format used by many Windows + programs, e.g. Microsoft Word. libwmf is a library for interpreting + metafile images and either displaying them using X or converting them + to standard formats such as PNG, JPEG, PS, EPS and SVG(Z)... + . + This package contains the static library and header files. + +Package: libwmf-doc +Section: doc +Architecture: all +Depends: ${misc:Depends}, libwmf0.2-7 (>= ${Source-Version}) +Suggests: libwmf-dev +Description: Windows metafile documentation + Windows metafile (WMF) is a picture format used by many Windows + programs, e.g. Microsoft Word. libwmf is a library for interpreting + metafile images and either displaying them using X or converting them + to standard formats such as PNG, JPEG, PS, EPS and SVG(Z)... + . + This package documents the libwmf API and WMF in general. --- libwmf-0.2.8.4.orig/debian/dirs +++ libwmf-0.2.8.4/debian/dirs @@ -0,0 +1 @@ +var/lib/defoma/libwmf0.2-7.d --- libwmf-0.2.8.4.orig/debian/docs +++ libwmf-0.2.8.4/debian/docs @@ -0,0 +1,3 @@ +CREDITS +README +TODO --- libwmf-0.2.8.4.orig/debian/defoma +++ libwmf-0.2.8.4/debian/defoma @@ -0,0 +1,128 @@ +# libwmf.defoma: Generate XML fontmap for libwmf. -*- Perl -*- + +@ACCEPT_CATEGORIES = qw(truetype type1); + +package libwmf0_2_7; +use Debian::Defoma::Common; +use Debian::Defoma::Id; + +my $PkgDir = "$ROOTDIR/libwmf0.2-7.d"; +my $Fontmap = "$PkgDir/fontmap"; +my $Id; + +sub init { + $Id ||= defoma_id_open_cache(); + + return 0; +} + +sub register { + my($font, @hints) = @_; + + my $hint = parse_hints_start(@hints); + defined($hint->{FontName}) or return 1; + my $fontname = $hint->{FontName}; + $fontname =~ s/ .*//; + my $priority = $hint->{Priority} || 20; + + defoma_id_register($Id, type => 'real', font => $font, + id => $fontname, priority => $priority, + hints => join(' ', @hints)); + if (defined($hint->{Alias})) { + for my $alias (split(/ /, $hint->{Alias})) { + defoma_id_register($Id, type => 'alias', font => $font, + id => $alias, priority => $priority, + origin => $fontname); + } + } + + return 0; +} + +sub unregister { + my($font) = @_; + + defoma_id_unregister($Id, type => 'alias', font => $font); + defoma_id_unregister($Id, type => 'real', font => $font); + + return 0; +} + +sub term { + if ($Id) { + open(FONTMAP, ">$Fontmap.tmp") or die "$Fontmap.tmp: $!\n"; + + print FONTMAP "\n"; + print FONTMAP "\n"; + + for my $i (defoma_id_grep_cache($Id, 'installed', sorttype => 'p')) { + my $hint = parse_hints_start(defoma_id_get_hints($Id, $i)); + my @attrs; + + push(@attrs, format => $Id->{e_category}->[$i]); + + push(@attrs, metrics => $hint->{AFM}) + if defined($hint->{AFM}); + + push(@attrs, glyphs => $Id->{e_font}->[$i]); + + push(@attrs, name => $Id->{e_id}->[$i]); + + my $fullname = $Id->{e_id}->[$i]; + # ipa_font_sys_map() determines whether a font is italic by + # searching the full name. + $fullname .= " ($1)" + if $fullname !~ /Italic|Oblique/ + && defined($hint->{Shape}) + && $hint->{Shape} =~ /(Italic|Oblique)/; + push @attrs, fullname => $fullname; + + my $familyname; + if (defined($hint->{Family})) { + $familyname = $hint->{Family}; + $familyname =~ tr/_/ /; + } else { + $familyname = $Id->{e_id}->[$i]; + } + push(@attrs, familyname => $familyname); + + push(@attrs, weight => $hint->{Weight}) + if defined($hint->{Weight}); + + push(@attrs, version => '0.1'); + + print FONTMAP " \n"; + } + + print FONTMAP "\n"; + + close(FONTMAP) or die "$Fontmap.tmp: $!\n"; + + # Atomically replace old fontmap. + rename("$Fontmap.tmp", $Fontmap) or die "$Fontmap: $!\n" ; + + defoma_id_close_cache($Id); + undef($Id); + } + + return 0; +} + +sub dispatch { + my($command, @args) = @_; + + if (my $code = __PACKAGE__->can($command)) { + return $code->(@args); + } else { + return 0; + } +} + +*truetype = *dispatch; +*type1 = *dispatch; + +1; --- libwmf-0.2.8.4.orig/debian/compat +++ libwmf-0.2.8.4/debian/compat @@ -0,0 +1 @@ +5 --- libwmf-0.2.8.4.orig/debian/libwmf-doc.install +++ libwmf-0.2.8.4/debian/libwmf-doc.install @@ -0,0 +1 @@ +debian/tmp/usr/share/doc --- libwmf-0.2.8.4.orig/debian/libwmf-dev.install +++ libwmf-0.2.8.4/debian/libwmf-dev.install @@ -0,0 +1,6 @@ +debian/tmp/usr/bin/libwmf-config +debian/tmp/usr/include +debian/tmp/usr/lib/*.so +debian/tmp/usr/lib/*.a +debian/tmp/usr/lib/*.la +debian/tmp/usr/lib/gtk-*/*/loaders/*.la --- libwmf-0.2.8.4.orig/debian/libwmf-dev.links +++ libwmf-0.2.8.4/debian/libwmf-dev.links @@ -0,0 +1 @@ +usr/share/doc/libwmf0.2-7 usr/share/doc/libwmf-dev --- libwmf-0.2.8.4.orig/debian/watch +++ libwmf-0.2.8.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/wvware/libwmf-(.*)\.tar\.gz