cupsys: infrastructure for dvi autodetection and printing missing.

Bug #27032 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
cupsys (Debian)
Fix Released
Unknown
cupsys (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Automatically imported from Debian bug report #343192 http://bugs.debian.org/343192

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #343192 http://bugs.debian.org/343192

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (4.1 KiB)

Message-ID: <email address hidden>
Date: Tue, 13 Dec 2005 16:01:28 +0100
From: Wilfried Goesgens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: cupsys: infrastructure for dvi autodetection and printing missing.

--===============0616324677==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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-p...

Read more...

Revision history for this message
In , Kenshi Muto (kmuto) wrote : severity of 343192 is wishlist

# Automatically generated email from bts, devscripts version 2.9.9
severity 343192 wishlist

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 17 Dec 2005 14:35:26 +0900
From: Kenshi Muto <email address hidden>
To: <email address hidden>
Subject: severity of 343192 is wishlist

# Automatically generated email from bts, devscripts version 2.9.9
severity 343192 wishlist

Revision history for this message
Carthik Sharma (carthik) wrote :

Changing status to confirmed, severity to wishlist to reflect upstream (Debian) changes in status and severity.

Changed in cupsys:
status: Unconfirmed → Confirmed
Revision history for this message
In , Kenshi Muto (kmuto) wrote : Re: [Pkg-cups-devel] Bug#343192: cupsys: infrastructure for dvi autodetection and printing missing.

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
<email address hidden>

Revision history for this message
Carthik Sharma (carthik) wrote :

The fix was committed to 1.1.23-8 in Debian. Ubuntu has a newer version. Closing.

Changed in cupsys:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.