FS#30085 - [hplip-3.12.4-1] hplip driver must not include foomatic-rip-hplip anymore since we use cups-filter

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Thursday, 31 May 2012, 13:10 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 31 May 2012, 21:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Tom Gundersen (tomegun)
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

So since, the introduction of cups-filter, I was unable to print with my HP printer. This leads to this bug #30081 (raw pdf source is printed instead of document)

The problem is hplip driver is shipped with a custom foomatic-rip version which is called foomatic-rip-hplip.
But that version is an old version 3 of foomatic-rip that don't understand PDF input. So the bug.

When I build hplip with --disable-foomatic-rip-hplip, I was able to print wihtout problem using cups-filter.

May be further investigation is needed to check, if there is no side effect to remove foomatic-rip-hplip, but this a needed move since we use cups-filter in archlinux now.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 31 May 2012, 21:28 GMT
Reason for closing:  Fixed
Comment by solsTiCe (zebul666) - Thursday, 31 May 2012, 13:19 GMT
for example http://hplipopensource.com/hplip-web/tech_docs/tarball_install.html

may be check if hpijs driver are ok in that configuration ?

or if keeping the old foomatic-rip-hplip(for what good reason ?), revert to PostScript input and modify some *.convs file (Don't ask about that, I am just copy-pasting)
Comment by Markus Hoffmann (broken.pipe) - Thursday, 31 May 2012, 14:11 GMT
i rebuilt hplip (using AUR, --disable-foomatic-rip-hplip) but it's still printing pages of nonsense characters. if i disable the whole "--enable-foomatic-rip-hplip-install \" stack, the printer (HP Laserjet 1020) quits with an error message "foomatic-rip not found"
Comment by solsTiCe (zebul666) - Thursday, 31 May 2012, 14:22 GMT
Sorry, what I meant was to use "--disable-foomatic-rip-hplip-install \" instead of "--enable-foomatic-rip-hplip-install \"

@Markus: Once hplip has been reinstalled did you remove and add a new printer in cups configuration ?

another suggestion I was given is to do:
rm /usr/lib/cups/filter/foomatic-rip-hplip
ln -s /usr/lib/cups/filter/foomatic-rip /usr/lib/cups/filter/foomatic-rip-hplip

which is more of a quick fix/hack
Comment by Markus Hoffmann (broken.pipe) - Thursday, 31 May 2012, 14:39 GMT
oh yeah :) it works ... i missed to delete and add the printer again. everything's fine now!
Comment by Andreas Radke (AndyRTR) - Thursday, 31 May 2012, 16:30 GMT
Just uploading hplip-3.12.4-2 to testing built with --disable-foomatic-rip-hplip. Please test it.

I'm not sure if certain hplip drivers expect that funky binary. Then we would have to add a symlink to the foomatic-filters binary.
For reference and maybe other needed fixes check Changelog and the patches/source tarball: http://packages.debian.org/sid/hplip
Comment by solsTiCe (zebul666) - Thursday, 31 May 2012, 17:38 GMT
ah yes you're right hpijs drivers contain references to foomatic-rip-hplip

as said in the first link I posted above, they need to be manually taken care of:
1) with ppdc command but that fails here
2) so this leaves us with a bunch of sed command

just after make but before make install
find ppd/hpijs/ -name *.ppd.gz|while read f
do
gzip -cd $f | sed '/^\*cupsFilter:/s|foomatic-rip-hplip|foomatic-rip|' | gzip -9 > $f.tmp
mv -f $f.tmp $f
done

Comment by Andreas Radke (AndyRTR) - Thursday, 31 May 2012, 20:02 GMT
Please try 3.12.4-3 in testing. foomatic-rip-hplip calls should now be gone in all ppd files. Are we ready to move to extra?
Comment by solsTiCe (zebul666) - Thursday, 31 May 2012, 21:14 GMT
Of course, Gentoo

While you're at it, look at  FS#30024 

Loading...