Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407239 - net-print/hplip- 3.12.2-r2 USE=parport does not configure parallel port support
Summary: net-print/hplip- 3.12.2-r2 USE=parport does not configure parallel port support
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-07 08:18 UTC by Stephen Bosch
Modified: 2012-08-15 14:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Bosch 2012-03-07 08:18:50 UTC
When I build hplip using the parport use flag, hplip builds successfully, but fails to enable parallel port support. As a result, printers attached via the parallel port are not detected.

Reproducible: Always

Steps to Reproduce:
1. Set parport for net-print/hplip in /etc/portage/package.use
2. Ensure CONFIG_PPDEV is set in kernel config, if not, rebuild kernel with CONFIG_PPDEV set and restart
3. emerge hplip
4. run hp-check -t and check value of pp-build=
5. run hp-setup with an HP parallel port printer attached.
Actual Results:  
pp-build=no; printer is not detected, even with command-line options

Even after building masked version, hp-setup still reports version number from stable!

eix hplip:
[I] net-print/hplip
     Available versions:  3.11.5 3.11.10 (~)3.12.2-r1 (~)3.12.2-r2 {X -acl doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds}          
     Installed versions:  3.12.2-r2(01:01:15 AM 03/07/2012)(X acl doc fax hpcups kde libnotify parport qt4 scanner -hpijs -minimal -policykit -snmp -static-ppds)               
     Homepage:            http://hplipopensource.com/hplip-web/index.html
     Description:         HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools.

$ hp-setup --help

HP Linux Imaging and Printing System (ver. 3.11.10)
Printer/Fax Setup Utility ver. 9.0



Expected Results:  
I should see pp-build=yes; printer should be detected

emerge --info:
Portage 2.1.10.44 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 i686)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-i686-AMD_Athlon-tm-_64_Processor_3800+-with-gentoo-2.0.3
Timestamp of tree: Tue, 06 Mar 2012 05:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en en_GB fr nb"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aim alsa ao apm arts audiofile bash-completion berkdb bindist branding bzip2 cairo calendar cdda cddb cdinstall cdparanoia cdr clamav cli cracklib crypt css cups curl curlwrappers cxx dbus dga dri dv dvb dvd dvdr encode exif expat fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif gimp ginac glut gnuplot gphoto2 gpm gsm gtk hal handbook hddtemp iconv icq icu idn imagemagick imap imlib ipv6 jabber java jingle joystick jpeg jpeg2k kde kontact lame latex lcms libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin odbc offensive ofx ogg opengl openmp oscar oss pam pcmcia pcre pda pdf perl plasma plotutils png posix ppds pppd python qt3support qt4 raw rdesktop readline samba scanner sdl session sql sqlite sse sse2 ssl startup-notification svg svga sysfs syslog tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vim-syntax vnc vorbis webkit wifi win32codecs wmf wxwidgets x264 x86 xine xinerama xinetd xorg xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB fr nb" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



hp-check -t:

HP Linux Imaging and Printing System (ver. 3.11.10)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2011-14 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 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 cmbosch 3.2.1-gentoo-r2 #4 SMP Wed Mar 7 00:02:58 MST 2012 i686 AMD Athlon(tm) 64 Processor 3800+ AuthenticAMD GNU/Linux

Distribution:
gentoo 0.0

Checking Python version...
OK, version 2.7.2 installed

Checking PyQt 4.x version...
OK, version 4.8.4 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.4.8
warning: /etc/cups/cupsd.conf file not found or not accessible.

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


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

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

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

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

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

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

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
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: Python 2.2 or greater - Python programming language...
OK, found.

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

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

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

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


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


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

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.11.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.11.10
html=/usr/share/doc/hplip-3.11.10/html
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
dbus-build=yes
cups11-build=no
doc-build=no
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables. 

[plugin]
installed=0
eula=0



Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 03/07/2012 01:03:21
version = 3.11.10



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

No devices found.

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

 
deskjet
-------
Type: Unknown
Device URI: parallel:/dev/lp2
PPD: /etc/cups/ppd/deskjet.ppd
PPD Description: HP DeskJet 932C Foomatic/hpijs (recommended)
Printer status: printer deskjet is idle.  enabled since Mon 23 Aug 2010 06:34:49 PM MDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

laserjet
--------
Type: Unknown
Device URI: parallel:/dev/lp0
PPD: /etc/cups/ppd/laserjet.ppd
PPD Description: HP LaserJet 3330 MFP Foomatic/hpijs
Printer status: printer laserjet is idle.  enabled since Sat 24 Mar 2007 04:16:42 PM MDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.


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

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

Checking output of 'scanimage -L'...
device `v4l:/dev/video0' is a Noname UVC Camera (046d:0802) virtual device


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

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

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

Checking 'hpmudext' I/O extension...
OK, found.

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


 
---------------
| USER GROUPS |
---------------

wheel audio cdrom video usb users plugdev vmware


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

error: 4 errors and/or warnings.

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


Done.
Comment 1 Daniel Pielmeier gentoo-dev 2012-03-07 19:18:25 UTC
If you take a look at /etc/hp I bet there are ._cfgXXXX_hplip.conf files and the version you have previously installed did not have parallel port support enabled. If yes learn to use the tools described here [1] in chapter 4.a and 4.b and try again.

[1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=4
Comment 2 Stephen Bosch 2012-03-07 20:02:36 UTC
(In reply to comment #1)
> If you take a look at /etc/hp I bet there are ._cfgXXXX_hplip.conf files and
> the version you have previously installed did not have parallel port support
> enabled. If yes learn to use the tools described here [1] in chapter 4.a and
> 4.b and try again.
> 
> [1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=4

There are two ._cfgXXXX_hplip.conf files there. However, *all* of the configure files in this directory contain pp-build=yes.

The role of these conf files is a mystery to me, since these are configure time parameters and cannot be changed after the fact anyway.
Comment 3 Daniel Pielmeier gentoo-dev 2012-03-07 20:26:24 UTC
Hplip relies on this file at runtime. If you compile it with some options and change them manually in the config file afterwards you can get strange results. So it is important to run dispatch-conf or etc-update as portage already tells you after it finishes it's work. This way the settings match the installed ones.
Comment 4 Daniel Pielmeier gentoo-dev 2012-03-10 06:57:54 UTC
So what is the status here?
Comment 5 Stephen Bosch 2012-03-12 09:06:34 UTC
(In reply to comment #4)
> So what is the status here?

I built it manually from current sources, at which point parallel port support was enabled (pp-build=yes) and it showed me the option of choosing the parallel port when running hp-setup, although it still doesn't seem to see the connected printer (which can at least print using a normal CUPS setup).

Given that, though, I still think there is something wrong with the ebuild.

In any case -- the conf files you describe are supposed to reflect build time parameters, not set them. What are the strange results you get when the conf files don't match the build-time parameters?
Comment 6 Daniel Pielmeier gentoo-dev 2012-03-12 17:48:05 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > So what is the status here?
> 
> In any case -- the conf files you describe are supposed to reflect build
> time parameters, not set them. What are the strange results you get when the
> conf files don't match the build-time parameters?

The strange things I mentioned are the ones I thought you are experiencing at first. You built with parallel port enabled but did not update the config file. I assumed this because the version hplip reported was an old one and it gets the version number from the configuration file and all settings as well regardless of which are built or not.

So the settings should reflect build time parameters but they wont if you don't update the configuration file with dispatch-conf or etc-update. Please reinstall hplip and run one of them to update the configuration file. Maybe it is also a good idea to remove any traces from the the file hplip.conf in /etc/hp including the ._cfgXXXX_ files in advance. Afterwards restart cups. Then remove all your configured printer queues and configure them again. If you still encounter problems please post the output of:

emerge --info =net-print/hplip-3.12.2-r2
The complete build log of hplip
Your configuration file /etc/hp/hplip.conf
Comment 7 Daniel Pielmeier gentoo-dev 2012-04-08 10:37:38 UTC
Please add the requested information else I can not do much and will close this bug. I don't use a parallel port printer, but there are still a lot of users who do and nobody else has reported such issues.
Comment 8 Stephen Bosch 2012-04-09 13:48:23 UTC
I am not near the machine in question and need until the weekend to access it and look at it again. Can you wait until then?