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
Opened by solsTiCe (zebul666) - Thursday, 31 May 2012, 13:10 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 31 May 2012, 21:28 GMT
|
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
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)
@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
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
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
While you're at it, look at
FS#30024