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

Re: Advice on how best to handle non-backwards compatibility



On Wed, Jan 07, 2004 at 06:18:28AM +0000, Andrew Suffield wrote:
> 
> Treat it just like a fresh installation with a pre-existing printcap -
> whatever that means. The fact that the existing printcap was created
> with an old version of lprngtool is no more interesting in this case
> than if it were created by hand.
> 
> I hope it doesn't do silly things in that scenario - that would be a
> more serious issue.

An example is probably going to make the problem clearer:

printcap entry generated with version 1.1.1:

##LPRNGTOOL## LOCAL laserjet 300x300 a4 {} LaserJet Default {}
lp
:sd=/var/spool/lpd/lp
:sh
:ml=0
:mx=0
:af=/var/spool/lpd/lp/acct
:lf=/var/spool/lpd/lp/log
:cd=/var/spool/lpd/lp
:lp=/dev/lp0
:if=/usr/share/lprngtool/master-filter
:

printcap entry generated with version 1.3.2

##LPRNGTOOL## DEVICE filtertype=IFHP
ifhp_options=status@,sync@,pagecount@,waitend@ printerdb_entry=pcl_gs
lp
:filter=/usr/lib/ifhp/ifhp
:ifhp=model=pcl_gs,status@,sync@,pagecount@,waitend@
:lp=/dev/lp0
:lprngtooloptions=FILTERTYPE="IFHP"
IFHP_OPTIONS="status@,sync@,pagecount@,waitend@" PRINTERDB_ENTRY="pcl_gs"
:mx=0
:rw
:sd=/var/spool/lpd/%P
:sh

Specifically, /usr/share/lprngtool/master-filter isn't provided by the newer
lprngtool, so that printcap entry is now busted-ass.

Andrew



Reply to: