The ebuild for hpijs-1.6.1 is apparently borked. It does not create the /usr/share/foomatic/db/source/driver/hpijs.xml file. See results below: Reproducible: Always Steps to Reproduce: Actual Results: These are the merge results from "emerge -v =hpijs-1.5": >>> Merging net-print/hpijs-1.5 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/hpijs --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/hpijs-1.5/ >>> /usr/share/doc/hpijs-1.5/gs_hpijs.png >>> /usr/share/doc/hpijs-1.5/hpijs_readme.html >>> /usr/share/ppd/ >>> /usr/share/ppd/HP/ >>> /usr/share/ppd/HP/HP-DeskJet_632C-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-OfficeJet_G55-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-PSC_1300-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-LaserJet_4-hpijs.ppd.gz ... many ppd files >>> /usr/share/ppd/HP/HP-PSC_1205-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-DeskJet_3820-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-PSC_2110-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-OfficeJet_5110-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-LaserJet_4_Plus-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-OfficeJet_590-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-LaserJet_4200-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-Color_Inkjet_Printer_CP1700-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-DeskJet_9600-hpijs.ppd.gz --- /usr/share/cups/ --- /usr/share/cups/model/ >>> /usr/share/cups/model/foomatic-ppds -> /usr/share/ppd --- /usr/share/foomatic/ --- /usr/share/foomatic/db/ --- /usr/share/foomatic/db/source/ --- /usr/share/foomatic/db/source/opt/ >>> /usr/share/foomatic/db/source/opt/hpijs-Quality.xml >>> /usr/share/foomatic/db/source/opt/hpijs-Model.xml >>> /usr/share/foomatic/db/source/opt/hpijs-PrintoutMode.xml >>> /usr/share/foomatic/db/source/opt/hpijs-Duplex.xml >>> /usr/share/foomatic/db/source/opt/hpijs-InputSlot.xml >>> /usr/share/foomatic/db/source/opt/hpijs-PageSize.xml --- /usr/share/foomatic/db/source/driver/ >>> /usr/share/foomatic/db/source/driver/hpijs.xml --- /usr/share/foomatic/db/source/printer/ * To use the hpijs driver with the PDQ spooler you will need the PDQ * driver file for your printer from * http://www.linuxprinting.org/show_driver.cgi?driver=hpijs * This file should be installed in /etc/pdq/drivers * * The hpijs ebuild no longer creates the ppds automatically, please use * foomatic to do so or remerge hpijs with the ppds use flag. * Caching service dependencies... >>> net-print/hpijs-1.5 merged. >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. =========================================================== These are the "emerge -v hpijs" results: >>> Merging net-print/hpijs-1.6.1 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/hpijs --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/hpijs-1.6.1/ >>> /usr/share/doc/hpijs-1.6.1/gs_hpijs.png >>> /usr/share/doc/hpijs-1.6.1/hpijs_readme.html --- /usr/share/ppd/ --- /usr/share/ppd/HP/ >>> /usr/share/ppd/HP/HP-DeskJet_632C-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-OfficeJet_G55-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-PSC_1300-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-LaserJet_4-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-PhotoSmart_P1218-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-DeskJet_695C-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-LaserJet_4V-hpijs.ppd.gz ... many ppd files ... >>> /usr/share/ppd/HP/HP-OfficeJet_590-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-LaserJet_4200-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-Color_Inkjet_Printer_CP1700-hpijs.ppd.gz >>> /usr/share/ppd/HP/HP-DeskJet_9600-hpijs.ppd.gz --- /usr/share/cups/ --- /usr/share/cups/model/ >>> /usr/share/cups/model/foomatic-ppds -> /usr/share/ppd * To use the hpijs driver with the PDQ spooler you will need the PDQ * driver file for your printer from * http://www.linuxprinting.org/show_driver.cgi?driver=hpijs * This file should be installed in /etc/pdq/drivers * * The hpijs ebuild no longer creates the ppds automatically, please use * foomatic to do so or remerge hpijs with the ppds use flag. * Caching service dependencies... >>> net-print/hpijs-1.6.1 merged. >>> Recording net-print/hpijs in "world" favorites file... Notice that there are no foomatic driver entries created. Expected Results: These are the results from running foomatic-configure under hpijs-1.5: # foomatic-configure -s cups -p HP-LaserJet_5L -c lpd://intel100/lp1 -n HP -N HPLJ5L -L Guy\'s Cubicle -d hpijs Use of uninitialized value in string eq at /usr/lib/perl5/vendor_perl/5.8.3/Foomatic/DB.pm line 2160. Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.3/Foomatic/DB.pm line 3389. These are the results of using foomatic-configure under hpijs-1.6.1 # foomatic-configure -s cups -p HP-LaserJet_5L -c lpd://intel100/lp1 -n HP -N HPLJ5L -L Guy\'s Cubicle -d hpijs Cannot read file /usr/share/foomatic/db/source/driver/hpijs.xml! Driver file /usr/share/foomatic/db/source/driver/hpijs.xml corrupted, missing, or not readable! Could not run "foomatic-combo-xml"/"foomatic-perl-data"! at /usr/lib/perl5/vendor_perl/5.8.3/Foomatic/DB.pm line 512. I could not run: #emerge -v =hpijs-1.6 because that ebuild is no longer in portage.
Additional info: More proof that the hpijs-1.6.1 is borked: ========================================================= --- !mtime obj /usr/share/ppd/HP/HP-Business_Inkjet_2230-hpijs.ppd.gz --- !mtime obj /usr/share/ppd/HP/HP-Business_Inkjet_2200-hpijs.ppd.gz --- !mtime obj /usr/share/ppd/HP/HP-Business_Inkjet_1100-hpijs.ppd.gz --- !mtime obj /usr/share/ppd/HP/HP-2500CM-hpijs.ppd.gz --- !mtime obj /usr/share/ppd/HP/HP-2500C-hpijs.ppd.gz --- !mtime obj /usr/share/ppd/HP/HP-2000C-hpijs.ppd.gz <<< obj /usr/share/foomatic/db/source/opt/hpijs-Quality.xml <<< obj /usr/share/foomatic/db/source/opt/hpijs-PrintoutMode.xml <<< obj /usr/share/foomatic/db/source/opt/hpijs-PageSize.xml <<< obj /usr/share/foomatic/db/source/opt/hpijs-Model.xml <<< obj /usr/share/foomatic/db/source/opt/hpijs-InputSlot.xml <<< obj /usr/share/foomatic/db/source/opt/hpijs-Duplex.xml <<< obj /usr/share/foomatic/db/source/driver/hpijs.xml <<< obj /usr/share/doc/hpijs-1.5/hpijs_readme.html <<< obj /usr/share/doc/hpijs-1.5/gs_hpijs.png --- !mtime obj /usr/bin/hpijs <<< dir /usr/share/doc/hpijs-1.5 --- !empty dir /usr/share/ppd/HP --- !empty dir /usr/share/ppd --- !empty dir /usr/share/foomatic/db/source/printer --- !empty dir /usr/share/foomatic/db/source/opt --- !empty dir /usr/share/foomatic/db/source/driver --- !empty dir /usr/share/foomatic/db/source --- !empty dir /usr/share/foomatic/db --- !empty dir /usr/share/foomatic
I believe the hpijs xml database files have been moved to a separate foomatic-db package called foomatic-db-hpijs, see http://www.linuxprinting.org/foomatic.html (though I don't think they have been updated to 1.6 yet, since they refer to 1.5 in the tarball). I've rigged up a VERY poor ebuild to do the job (JUST do the job though, I'm not that good at ebuilds!) based on the foomatic-db ebuild. I haven't tested whether it works beyond installing the xml files and using foomatic-gui to set up a printer, more to follow when I try to print something later today.
Created attachment 40103 [details] Ebuild for hpjis foomatic database This is a cleaned up version of my ebuild for the hpjis foomatic database stuff. There's a nasty sed mangle required to get the filename of the tarball, someone can probably do it nicer than this. This is 100% works-for-me status. Perhaps the hpjis ebuild should depend on this if the foomatic use flag is set?
the problem is that this files are still for version 1.5
True, but the xml files just tell foomatic a few things about the driver and how to make a ppd to use with foomatic-rip. I've looked at the ppds supplied in the hpijs-1.6.1 tarball and one that is generated using the xml files from foomatic-db-hpijs and they are almost identical (only difference is default page size). The alternative to foomatic-db-hpijs is to emerge hpijs with "ppds" in your USE flags and use the ppds instead (though you end up with quite a lot of ppds). Anyway, it all works perfectly for me.
fixed in 1.7.1