From owner-freebsd-ports Wed Apr 24 9:40:26 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B0BD237B400 for ; Wed, 24 Apr 2002 09:40:15 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3OGe3n68187; Wed, 24 Apr 2002 09:40:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 24 Apr 2002 09:40:03 -0700 (PDT) Message-Id: <200204241640.g3OGe3n68187@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Chris Shenton Subject: Re: ports/37085: [FIX] apsfilter/ghostscript don't work with hpijs driver any longer Reply-To: Chris Shenton Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/37085; it has been noted by GNATS. From: Chris Shenton To: freebsd-gnats-submit@FreeBSD.org, apsfilter-stable@apsfilter.org Cc: apsfilter-help@apsfilter.org Subject: Re: ports/37085: [FIX] apsfilter/ghostscript don't work with hpijs driver any longer Date: 24 Apr 2002 12:31:25 -0400 [Following up to freebsd bug report, and apsfilter-stable where my apsfilter-bug submission went; also to apsfilter-help since other users will probably encounter this, it's not freebsd-specific.] Spent a bunch of time trying to figure where the bogus key/values were getting set, which generated: unable to set key=OutputFile, value=/tmp/apsfilter4303/test_page.aps unable to set key=Quality, value=0 unable to set key=ColorMode, value=2 unable to set key=MediaType, value=0 unable to set key=PenSet, value=2 Checked the hpijs page on sourceforge, then the file: /usr/ports/print/ghostscript-gnu/work/ghostscript-6.53/hpijs-1.0.4/hpijs_readme.html. Looks like the option syntax has changed. For my Deskjet 930, they're being set in /usr/local/share/apsfilter/driver/ijs/DESKJET_920 I've hacked it according to the following diff, but the other files need to be fixed too in the same way. *** DESKJET_920.ORIG_BROKEN Sun Dec 16 12:52:29 2001 --- DESKJET_920 Wed Apr 24 12:12:12 2002 *************** *** 5,19 **** case "$COLOR" in full) case "$QUALITY" in high|photo) RESOLUTION=600x600 ! params="Quality=2,ColorMode=2,MediaType=2,PenSet=2" ;; *) RESOLUTION=300x300 ! params="Quality=0,ColorMode=2,MediaType=0,PenSet=2" ;; esac ;; *) case "$QUALITY" in high|photo) RESOLUTION=600x600 ;; *) RESOLUTION=300x300 ;; esac ! params="Quality=0,ColorMode=0,MediaType=0,PenSet=2" ;; esac if [ -n "$HARDWARE_DUPLEX" -a -n "$DUPLEX" ]; then --- 5,19 ---- case "$COLOR" in full) case "$QUALITY" in high|photo) RESOLUTION=600x600 ! params="Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=2" ;; *) RESOLUTION=300x300 ! params="Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" ;; esac ;; *) case "$QUALITY" in high|photo) RESOLUTION=600x600 ;; *) RESOLUTION=300x300 ;; esac ! params="Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2" ;; esac if [ -n "$HARDWARE_DUPLEX" -a -n "$DUPLEX" ]; then *************** *** 24,27 **** fi fi ! GS_FEATURES="$GS_FEATURES -sIjsParams='$params' -sDeviceManufacturer=HEWLETT-PACKARD" --- 24,27 ---- fi fi ! GS_FEATURES="$GS_FEATURES -dIjsUseOutputFD -sIjsParams='$params' -sDeviceManufacturer=HEWLETT-PACKARD" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message