[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343192: marked as done (cupsys: infrastructure for dvi autodetection and printing missing.)



Your message dated Wed, 12 Apr 2006 21:00:15 +0900
with message-id <[🔎] 20060412115924.7EA52223050@mail.topstudio.co.jp>
and subject line [Pkg-cups-devel] Bug#343192: cupsys: infrastructure for dvi	autodetection and printing missing.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: cupsys
Version: 1.1.23-12
Severity: serious
Tags: patch
Justification: dvis can't be printed automagically like that.

with some magic cups can be convinced to directly print dvi files. 
i achieved this with:
* adding to mime.convs:
application/x-dvi	application/postscript  33  dvips
* adding to mime.types
application/x-dvi       dvi contains(0,2048,"TeX output")

creating a tiny shellscript in /usr/lib/cups/filters/dvips
#!/bin/bash

# See if we have a filename on the command-line...
if test -z "$6"; then
TMPFILE=`mktemp`
cat >$TMPFILE
	ifile="$TMPFILE"
	else
	        ifile="$6"
		fi
		# try to figure out the dpi's...
		DPI=`cat $PPD |grep -i "resolution " |tail -n 1|sed -e
		"s;\*Resolution.*dpi/;;" -e "s; DPI.*;;"`

		ARGS="-D $DPI "
		if test "$DPI" -gt "400"; then 
		 ARGS="$ARGS -Z "
		 fi
		 echo INFO: Starting dvips. 1>&2
		 echo DEBUG: Running /usr/bin/dvips $ARGS -f \< "$ifile"
		 1>&2

		 exec /usr/bin/dvips $ARGS -f <"$ifile"
		 rm -f $TMPFILE


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cupsys depends on:
ii  adduser                  3.80            Add and remove users and groups
ii  debconf [debconf-2.0]    1.4.62          Debian configuration management sy
ii  gs-esp                   8.15.1.dfsg.1-1 The Ghostscript PostScript interpr
ii  libc6                    2.3.5-8.1       GNU C Library: Shared libraries an
ii  libcupsimage2            1.1.23-12       Common UNIX Printing System(tm) - 
ii  libcupsys2               1.1.23-12       Common UNIX Printing System(tm) - 
ii  libgnutls12              1.2.9-2         the GNU TLS library - runtime libr
ii  libpam0g                 0.79-3          Pluggable Authentication Modules l
ii  libpaper1                1.1.14-3        Library for handling paper charact
ii  libslp1                  1.2.1-3         OpenSLP libraries
ii  patch                    2.5.9-2         Apply a diff file to an original
ii  perl-modules             5.8.7-9         Core Perl modules
ii  procps                   1:3.2.6-2       /proc file system utilities
ii  xpdf-utils               3.01-3          Portable Document Format (PDF) sui
ii  zlib1g                   1:1.2.3-8       compression library - runtime

Versions of packages cupsys recommends:
ii  cupsys-client           1.1.23-12        Common UNIX Printing System(tm) - 
ii  foomatic-filters        3.0.2-20050720-1 linuxprinting.org printer support 
ii  smbclient               3.0.20b-3        a LanManager-like simple client fo

-- debconf information:
  cupsys/raw-print: true
  cupsys/backend: ipp, lpd, parallel, socket, usb

Attachment: dvips
Description: application/shellscript


--- End Message ---
--- Begin Message ---
Package: cupsys
Version: 1.1.23-8
Followup-For: Bug#343192

> Justification: dvis can't be printed automagically like that.
> 
> with some magic cups can be convinced to directly print dvi files. 

There isn't proper way to convert ANY dvi and adding default filter
makes bigger dependency.
Since cups 1.1.23-8, cupsys includes dvipipetops filter example in
/usr/share/doc/cupsys/examples/filters. Please try this.

Thanks,
-- 
Kenshi Muto
kmuto@debian.org

--- End Message ---

Reply to: