Package: src:vim
Version: 2:7.4.712-2
Severity: minor
Tags: patch

Hi,

You create a PDF logo in debian/rules using the 'pswrite' device, but
this has been removed as of ghostscript 9.10 (e.g. in experimental) and
vim therefore FTBFS. Writing postscript level 2 using 'ps2write' works
and resolves this.

  gs -sDefaultCMYKProfile=ps_cmyk.icc -sOutputICCProfile=ps_rgb.icc \
      -dSAFER -dEPSCrop -dBATCH -dNOPAUSE \
      -sDEVICE=pswrite -sOutputFile=debian/tmplogo.ps runtime/vimlogo.eps
  GPL Ghostscript RELEASE CANDIDATE 1 9.15 (2014-03-25)
  Copyright (C) 2014 Artifex Software, Inc.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Unknown device: pswrite
  Unrecoverable error: undefined in .uninstallpagedevice
  Operand stack:
      defaultdevice
  make: *** [install-stamp-vim-basic] Error 1
  debian/rules:305: recipe for target 'install-stamp-vim-basic' failed

Patch attached.

Cheers,
-- 
Iain Lane                                  [ [email protected] ]
Debian Developer                                   [ [email protected] ]
Ubuntu Developer                                   [ [email protected] ]
diff -Nru vim-7.4.712/debian/changelog vim-7.4.712/debian/changelog
--- vim-7.4.712/debian/changelog	2015-05-01 01:25:45.000000000 +0100
+++ vim-7.4.712/debian/changelog	2015-05-13 16:17:30.000000000 +0100
@@ -1,3 +1,10 @@
+vim (2:7.4.712-2.1) UNRELEASED; urgency=medium
+
+  * debian/rules: Use ps2write. Ghostscript 9.10 removed the 'pswrite' device.
+    We need to write level 2 postscript now.
+
+ -- Iain Lane <[email protected]>  Wed, 13 May 2015 16:16:22 +0100
+
 vim (2:7.4.712-2) unstable; urgency=medium
 
   * Add stretch to Debian syntax files.  (Closes: #783506)
diff -Nru vim-7.4.712/debian/rules vim-7.4.712/debian/rules
--- vim-7.4.712/debian/rules	2015-04-01 01:10:40.000000000 +0100
+++ vim-7.4.712/debian/rules	2015-05-13 16:12:46.000000000 +0100
@@ -395,7 +395,7 @@
 	done
 	gs -sDefaultCMYKProfile=ps_cmyk.icc -sOutputICCProfile=ps_rgb.icc \
 	    -dSAFER -dEPSCrop -dBATCH -dNOPAUSE \
-	    -sDEVICE=pswrite -sOutputFile=debian/tmplogo.ps runtime/vimlogo.eps
+	    -sDEVICE=ps2write -sOutputFile=debian/tmplogo.ps runtime/vimlogo.eps
 	ps2pdf debian/tmplogo.ps debian/tmplogo.pdf
 	pdf2svg debian/tmplogo.pdf debian/vim-common/usr/share/pixmaps/vim.svg
 	cp debian/vim-common/usr/share/pixmaps/vim.svg \

Reply via email to