Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63177 - ebuild for hpijs-1.6.1 doesn't create hpijs.xml driver
Summary: ebuild for hpijs-1.6.1 doesn't create hpijs.xml driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-07 16:58 UTC by Guy
Modified: 2004-12-20 13:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for hpjis foomatic database (foomatic-db-hpijs-1.5.20040920.ebuild,815 bytes, text/plain)
2004-09-21 10:28 UTC, James Lademann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2004-09-07 16:58:00 UTC
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.
Comment 1 Guy 2004-09-07 17:04:05 UTC
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
Comment 2 James Lademann 2004-09-21 04:45:39 UTC
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.
Comment 3 James Lademann 2004-09-21 10:28:10 UTC
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?
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-22 05:52:00 UTC
the problem is that this files are still for version 1.5
Comment 5 James Lademann 2004-09-22 10:16:44 UTC
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.
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-12-20 13:19:21 UTC
fixed in 1.7.1