Package: inkscape
Version: 0.45-1
Severity: normal
Tags: patch

There is a small bashism in share/extenions/ps2pdf.sh.  This will result
in a problem when using "Save As..." with "PDF with Text and Images"
selected on systems using /bin/dash as the default shell.

The attached patch fix the issue.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages inkscape depends on:
ii  libatk1.0-0               1.12.2-1       The ATK accessibility toolkit
ii  libbonobo2-0              2.14.0-1       Bonobo CORBA interfaces library
ii  libc6                     2.3.6.ds1-4    GNU C Library: Shared libraries
ii  libcairo2                 1.2.4-1        The Cairo 2D vector graphics libra
ii  libfontconfig1            2.4.1-2        generic font configuration library
ii  libfreetype6              2.2.1-5        FreeType 2 font engine, shared lib
ii  libgc1c2                  1:6.8-1        conservative garbage collector for
ii  libgcc1                   1:4.1.1-20     GCC support library
ii  libgconf2-4               2.14.0-4       GNOME configuration database syste
ii  libglib2.0-0              2.12.3-2       The GLib library of C routines
ii  libglibmm-2.4-1c2a        2.12.0-1       C++ wrapper for the GLib toolkit (
ii  libgnomevfs2-0            2.14.2-2+b1    GNOME virtual file-system (runtime
ii  libgtk2.0-0               2.8.20-2       The GTK+ graphical user interface 
ii  libgtkmm-2.4-1c2a         1:2.8.8-1      C++ wrappers for GTK+ 2.4 (shared 
ii  liblcms1                  1.15-1         Color management library
ii  liborbit2                 1:2.14.3-0.1   libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.14.8-2       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libpopt0                  1.10-3         lib for parsing cmdline parameters
ii  libsigc++-2.0-0c2a        2.0.17-2       type-safe Signal Framework for C++
ii  libstdc++6                4.1.1-20       The GNU Standard C++ Library v3
ii  libx11-6                  2:1.0.3-4      X11 client-side library
ii  libxcursor1               1.1.7-4        X cursor management library
ii  libxext6                  1:1.0.1-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.1-5      X11 miscellaneous 'fixes' extensio
ii  libxft2                   2.1.8.2-8      FreeType-based font drawing librar
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.1-4.1    X11 Xinerama extension library
ii  libxml2                   2.6.27.dfsg-1  GNOME XML library
ii  libxrandr2                2:1.1.0.2-5    X11 RandR extension library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra
ii  libxslt1.1                1.1.18-1       XSLT processing library - runtime 
ii  zlib1g                    1:1.2.3-13     compression library - runtime

Versions of packages inkscape recommends:
ii  imagemagick         7:6.2.4.5.dfsg1-0.10 Image manipulation programs
pn  libwmf-bin          <none>               (no description available)
pn  perlmagick          <none>               (no description available)
ii  pstoedit            3.44-1               PostScript and PDF files to editab

-- no debconf information

-- 
Jérémy Bobbio                        .''`. 
[EMAIL PROTECTED]                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -Naur inkscape-0.45-1/share/extensions/ps2pdf.sh 
inkscape-0.45/share/extensions/ps2pdf.sh
--- inkscape-0.45-1/share/extensions/ps2pdf.sh  2007-01-16 03:06:10.000000000 
+0100
+++ inkscape-0.45/share/extensions/ps2pdf.sh    2007-04-02 01:51:22.000000000 
+0200
@@ -2,7 +2,7 @@
 
 params=`grep "^%%DocumentMedia:" "$1" | head -n 1 | awk '{  if (NF==7) { if 
($2!="plain") print "-sPAPERSIZE=" $2; else print "-dDEVICEWIDTHPOINTS=" $3 " 
-dDEVICEHEIGHTPOINTS=" $4; } }'`
 
-if [ "x${params}x" == "xx" ]
+if [ "x${params}x" = "xx" ]
 then 
         params=`grep "^%%BoundingBox:" "$1" | head -n 1 | awk '{ print 
"-dDEVICEWIDTHPOINTS=" $4 " -dDEVICEHEIGHTPOINTS=" $5; }'`
 fi

Attachment: signature.asc
Description: Digital signature

Reply via email to