Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47691

Summary: a2ps outputs to stdout instead of default printer
Product: Gentoo Linux Reporter: Ian Smith <13th.floor>
Component: Current packagesAssignee: Mamoru KOMACHI (RETIRED) <usata>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.4_rc1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ian Smith 2004-04-13 04:36:06 UTC
if I type a2ps <filename>

the output appears on the terminal.  On all my other systems (with the config files synced up), output is sent to the default printer as it should be.  I use NIS so my env is the same on all machines.

Reproducible: Always
Steps to Reproduce:
1.  type a2ps <filename>
2.
3.

Actual Results:  
several screenfulls of what looks like postscript (%!PS-Adobe-3.0)

Expected Results:  
sent it to default printer (which is connected and working for other apps
including Moz & OOo)

39 $ emerge info
Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24)
=================================================================
System uname: 2.4.24 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.10p1
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/lib/jboss /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/xkb /etc/afs/C /etc/afs/afsws /etc/gconf
/etc/init.d /etc/terminfo /etc/xfce /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/monster/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="3dnow X aalib apm avi berkdb bonobo cdr crypt cups dga directfb doc dvd
encode esd faad fbcon foomaticdb gdbm gif gpm gtk gtk2 gtkhtml guile imlib java
jpeg ldap libg++ libwww lirc mad mbox mikmod mmx motif mozcalendar mozilla
mozp3p mozsvg mozxmlterm mpeg mysql nas ncurses nls oav odbc oggvorbis opengl
oss pam pdflib perl plotutils png postgres python qt quicktime readline samba
sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"
Comment 1 Stefan Wimmer 2004-04-13 07:47:23 UTC
You can work around this by adding -P<your_printer> to the commandline or write a little wrapper which does the same ...

HTH
Stefan
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-26 06:17:36 UTC
*** Bug 47764 has been marked as a duplicate of this bug. ***
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-05 04:57:40 UTC
usata, any fix?
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-05 07:07:41 UTC
If you want to fix it, you just delete a2ps-4.13-stdout.diff from patch files.
This patch was requested in bug #24264 and I applied it because I think it's 
worth to change the default behaviour to output to stdout. (As I noted in
comment #1 of bug #47764, FreeBSD applies the patch too) If you think
it makes confusion, it's okay to revert to previous behaviour (sent to the
default printer).

http://lists.gnu.org/archive/html/bug-a2ps/2001-05/msg00000.html
is a post to a2ps mailing list about it.
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-07 09:08:29 UTC
i don't care, you maintain the ebuild currently, so you have to decide if this bug is valid or not ;)
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-04 12:18:56 UTC
I added "vanilla" USE flag to disable stdout patch. If you are unhappy
with the patch, please enable the USE flag. (I personally think stdout
patch is useful, and I'm more familiar with the current behaviour than
the original one.)