Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442364 - net-print/hplip-3.12.10a - Can't print with USE flag policykit.
Summary: net-print/hplip-3.12.10a - Can't print with USE flag policykit.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 18:15 UTC by Sylvain Alain (RETIRED)
Modified: 2012-11-10 04:55 UTC (History)
5 users (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 Sylvain Alain (RETIRED) gentoo-dev 2012-11-08 18:15:32 UTC
Hi, for a long time now, I have a problem with the use flag policykit only with the hplip package.

See also this bugzilla : https://bugs.gentoo.org/show_bug.cgi?id=438886



Reproducible: Always

Steps to Reproduce:
1.emerge -av hplip
2.
3.
Actual Results:  
The compilation process is fine, but when I'm trying to print something, my hp laserjet P1505 stay idle.

But if I compile hplip without the policykit use flag, I can print.

Expected Results:  
Print something.

Portage 2.1.11.30 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.2 x86_64)
=================================================================
System uname: Linux-3.6.2-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
Timestamp of tree: Sat, 20 Oct 2012 04:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7-avx -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=corei7-avx -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8.0 --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://distfiles.gentoo.org"
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j8 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk gtk3 iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb userlocales vorbis wxwidgets x264 xcb xcomposite xfce xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd 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 sheets 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" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" XFCE_PLUGINS="brightness clock logout trash" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Sylvain Alain (RETIRED) gentoo-dev 2012-11-08 18:20:59 UTC
I'm gonna post what Alexandre demands tonight.

https://bugs.gentoo.org/show_bug.cgi?id=414195#c25
Comment 2 Sylvain Alain (RETIRED) gentoo-dev 2012-11-09 04:08:26 UTC
I found this inside the /var/log/critical :

gentootux critical # cat current 
Nov 08 23:01:56 [hp-firmware] hp-firmware[21031]: error: hp-firmware -u/--gui requires Qt4 GUI support. Entering interactive mode.
Nov 08 23:02:03 [hp-toolbox] hp-toolbox[21085]: error: Fax address book disabled - Python 2.3+ required.
Nov 08 23:03:25 [hp-systray] hp-systray(hpdio)[2232]: error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1505?serial=CA5618F
Nov 08 23:03:25 [hp-systray] hp-systray(hpdio)[2232]: error: Device not found
Nov 08 23:03:28 [hp-firmware] hp-firmware[7222]: error: hp-firmware -u/--gui requires Qt4 GUI support. Entering interactive mode.
Nov 08 23:03:31 [hp-firmware] hp-firmware[7222]: error: Device busy: hp:/usb/HP_LaserJet_P1505?serial=CA5618F
Nov 08 23:03:31 [hp-firmware] hp-firmware[7222]: error: Error opening device (Device not found). Exiting.
Nov 08 23:03:38 [hp-toolbox] hp-toolbox(UI)[21085]: error: Device busy: hp:/usb/HP_LaserJet_P1505?serial=CA5618F
Nov 08 23:03:38 [hp-toolbox] hp-toolbox(UI)[21085]: error: Unable to print to printer. Please check device and try again.
Nov 08 23:03:38 [hp-toolbox] hp-toolbox(UI)[21085]: error:  Unable to communicate with printer HP_LaserJet_P1505.  Please check the print
Comment 3 Daniel Pielmeier gentoo-dev 2012-11-09 11:10:39 UTC
CC-ing polkit maintainers: We continue here from bug #414195 There is a lot of unneeded information regarding the policykit issue in the previous bug. I appreciate any help as I m not familiar with policykit. For me it just works.
Comment 4 Daniel Pielmeier gentoo-dev 2012-11-09 11:23:46 UTC
(In reply to comment #2)
> I found this inside the /var/log/critical :
> 

The question was if there are any policykit related errors. Please restart cups and try to print. Afterwards try the following grep command and post all results for the time after the cups restart. 

grep -IHir "org.freedesktop.PolicyKit1" /var/log/ ~/.xsession-errors
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-11-09 12:05:07 UTC
(In reply to comment #3)
> CC-ing polkit maintainers: We continue here from bug #414195 There is a lot
> of unneeded information regarding the policykit issue in the previous bug. I
> appreciate any help as I m not familiar with policykit. For me it just works.

What should be telling PolicyKit if user is authorized or not? I assume this is done by status of the user by ConsoleKit.
Is the user using ConsoleKit and does 'ck-list-sessions' print the user as 'active = TRUE'? If not, then he propably should be addressing forums
instead of bugzilla. Such as first post of [1]
Then everything is at it should be, no authorization without user being a local user, or custom .rules file in /etc/polkit-1/rules.d/ (man polkit) that authorizes it for non-local users, specific group, or even a specific user...

[1] http://forums.gentoo.org/viewtopic-t-858965-start-0.html
Comment 6 Sylvain Alain (RETIRED) gentoo-dev 2012-11-10 03:36:09 UTC
ck-list-sessions
Session1:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2012-11-10T03:33:17.940229Z'
	login-session-id = '1'
	idle-since-hint = '2012-11-10T03:33:49.081809Z'
Session2:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2012-11-10T03:33:19.837762Z'
	login-session-id = '1'
Comment 7 Sylvain Alain (RETIRED) gentoo-dev 2012-11-10 03:37:08 UTC
I restarted cups and now it's working.

Maybe it's related or not, but I found that when I reenable the policykit use flag for hplip, I need to restart cups to be able to print.