[Pkg-hpijs-devel] Bug#512596: Debian/ Ubuntu place hpaio in /etc/sane.d/dll.d/hplip, so lets check there too

Mark Purcell msp at debian.org
Thu Jan 22 01:10:07 UTC 2009


Package: hplip
Version: 2.8.12-1
Severity: normal

--- /usr/share/hplip/check.py.orig	2009-01-03 14:26:56.000000000 +1100
+++ /usr/share/hplip/check.py	2009-01-22 12:08:07.000000000 +1100
@@ -693,6 +693,21 @@
                     if 'hpaio' in line:
                         found = True
 
+		# Debian/ Ubuntu place hpaio in /etc/sane.d/dll.d/hplip, so lets check there too
+
+		if not found:
+		    log.info(log.bold("'hpaio' in '/etc/sane.d/dll.d/hplip'..."))
+		    try:
+                       f = file('/etc/sane.d/dll.d/hplip', 'r')
+                    except IOError:
+                       log.error("'/etc/sane.d/dll.d/hplip' not found.")
+                       num_errors += 1
+                    else:
+                        found = False
+                        for line in f:
+                            if 'hpaio' in line:
+                                found = True
+
                 if found:
                     log.info("OK, found. SANE backend 'hpaio' is properly set up.")
                 else:


-- Package-specific info:

HP Linux Imaging and Printing System (ver. 2.8.12)
Dependency/Version Check Utility ver. 14.1

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP. 
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to            
successfully run.                                                                                                                                                                                              
3. Both compile- and run-time note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log
check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).                                                     

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux hp 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux

Distribution:
debian 5.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt 3.x version...
OK, version 3.17 installed.

Checking PyQt 4.x version...

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0


------------------------
| RUNTIME DEPENDENCIES |
------------------------


Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: scanimage - Shell scanning warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
program...
To install this dependency, execute this command:
su -c "apt-get install --force-yes -y sane-utils"

Checking for dependency: xsane - Graphical scanner frontend for SANE...
To install this dependency, execute this command:
su -c "apt-get install --force-yes -y sane"


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 2.8.12 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
[dirs]
run = /var/run
cupsbackend = /usr/lib/cups/backend
ppd = /usr/share/ppd/hpijs/HP
doc = /usr/share/doc/hplip-doc/HTML
drv = /usr/share/cups/drv
ppdbase = /usr/share/ppd/hpijs
home = /usr/share/hplip
cupsfilter = /usr/lib/cups/filter
icon = no

[hplip]
version = 2.8.12

[installation]
version = 2.8.12.26
date_time = 01/22/09 12:00:18

[configure]
foomatic-rip-hplip-install = no
qt4 = yes
doc-build = yes
qt3 = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.12.26
foomatic-drv-install = yes
foomatic-ppd-install = nwarning: No queues found.
error: scanimage not found.
o
ui-toolkit = qt3
pp-build = yes
scanner-build = yes
network-build = yes
restricted-build = no
dbus-build = yes
shadow-build = no
fax-build = yes



Current contents of '~/.hplip/hplip.conf' file:
[installation]
version = 2.8.12.26
date_time = 01/22/09 12:09:31



-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------



----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
'hpaio' in '/etc/sane.d/dll.d/hplip'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O exterror: 2 errors and/or warnings.
ension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


-----------------
| USB I/O SETUP |
-----------------


Checking for permissions of USB attached printers...

-----------
| SUMMARY |
-----------


Summary of needed commands to run to satisfy missing dependencies:
su -c "apt-get install --force-yes -y sane-utils"
su -c "apt-get install --force-yes -y sane"

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages hplip depends on:
ii  adduser                    3.110         add and remove users and groups
ii  coreutils                  6.10-6        The GNU core utilities
ii  cups                       1.3.9-11      Common UNIX Printing System(tm) - 
ii  hplip-data                 2.8.12-1      HP Linux Printing and Imaging - da
ii  libc6                      2.7-18        GNU C Library: Shared libraries
ii  libcups2                   1.3.9-11      Common UNIX Printing System(tm) - 
ii  libdbus-1-3                1.2.8-1       simple interprocess messaging syst
ii  libsane                    1.0.19-23     API library for scanners
ii  libsnmp15                  5.4.1~dfsg-12 SNMP (Simple Network Management Pr
ii  libssl0.9.8                0.9.8g-15     SSL shared libraries
ii  libusb-0.1-4               2:0.1.12-13   userspace USB programming library
ii  lsb-base                   3.2-20        Linux Standard Base 3.2 init scrip
ii  python                     2.5.2-3       An interactive high-level object-o
ii  python-dbus                0.83.0-1      simple interprocess messaging syst
ii  python-imaging             1.1.6-3       Python Imaging Library
ii  python-support             0.8.7         automated rebuilding support for P

Versions of packages hplip recommends:
ii  cups-client                   1.3.9-11   Common UNIX Printing System(tm) - 
ii  hpijs                         2.8.12-1   HP Linux Printing and Imaging - gs

Versions of packages hplip suggests:
pn  hplip-doc                     <none>     (no description available)
ii  hplip-gui                     2.8.12-1   HP Linux Printing and Imaging - GU
pn  kdeprint | gtklp | xpp        <none>     (no description available)
pn  openprinting-ppds             <none>     (no description available)

-- no debconf information





More information about the Pkg-hpijs-devel mailing list