Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458976 - net-print/hplip-3.13.2-r1 - User does not see plugin
Summary: net-print/hplip-3.13.2-r1 - User does not see plugin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-24 12:41 UTC by James
Modified: 2013-03-01 20:12 UTC (History)
2 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 James 2013-02-24 12:41:22 UTC
After upgrading to net-print/hplip-3.13.2-r1, whenever I attempt to scan, I get a dialog saying that I need to install the binary plugin.  So, I walk through the installation process and it tells me that I have installed the plugin successfully.  But then, an error comes up, saying that I must have canceled out of the install or the plugin install failed.
Any way in which I install the plugin, including "sh hplip-version-plugin.run" is not seen by the user.
After downgrading to hplip-3.12.10a, everything works correctly.  What I find most interesting is that doing a hp-check under both versions as root shows that the plugin is installed, and as user, shows that the plugin is not installed.  Yet with the old version, it works and scans as it should.
I have posted the hp-check info at http://forums.gentoo.org/viewtopic-t-952040.html
Thanks
Comment 1 James 2013-02-24 14:05:45 UTC
emerge --info
Portage 2.1.11.52 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.8.0-gentoo x86_64)
=================================================================
System uname: Linux-3.8.0-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1045T_Processor-with-gentoo-2.2
KiB Mem:     8168848 total,   6146372 free
KiB Swap:    5242876 total,   5242876 free
Timestamp of tree: Sun, 24 Feb 2013 13:15:01 +0000                                                                                                                   
ld GNU ld (GNU Binutils) 2.23.1                                                                                                                                      
ccache version 3.1.9 [enabled]                                                                                                                                       
app-shells/bash:          4.2_p42                                                                                                                                    
dev-java/java-config:     2.1.12-r1                                                                                                                                  
dev-lang/python:          2.7.3-r3, 3.2.3-r2                                                                                                                         
dev-util/ccache:          3.1.9                                                                                                                                      
dev-util/cmake:           2.8.10.2-r1                                                                                                                                
dev-util/pkgconfig:       0.28                                                                                                                                       
sys-apps/baselayout:      2.2                                                                                                                                        
sys-apps/openrc:          0.11.8                                                                                                                                     
sys-apps/sandbox:         2.6                                                                                                                                        
sys-devel/autoconf:       2.13, 2.69                                                                                                                                 
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1                                                                                                                   
sys-devel/binutils:       2.23.1                                                                                                                                     
sys-devel/gcc:            4.6.3                                                                                                                                      
sys-devel/gcc-config:     1.8                                                                                                                                        
sys-devel/libtool:        2.4.2                                                                                                                                      
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo MythTV-0-26-fixes Home
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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="-march=amdfam10 -O2 -pipe"
DISTDIR="/mnt/nfs_portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo http://www.cyberuse.com/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/mnt/nfs_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="/mnt/nfs_portage"
PORTDIR_OVERLAY="/var/lib/layman/mt-mythtv /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacs acl acpi alsa amd64 audiofile avahi avi bluetooth bluray branding bzip2 cairo ccache cdda cddb cdio cdr cdrkit cli consolekit cracklib crypt css cups cxx dbus declarative divx4linux dlloader dri dts dv dvb dvd dvdnav dvdr dvdread emboss enca encode exif extras fam ffmpeg firefox flac fontconfig fortran g3dvl gdbm gif gimp glut gpm gtk gzip iconv icu ieee1394 imagemagick java jpeg json kde kerberos kipi kontact ladspa lame lcms ldap libnotify live lm_sensors lv2 mad melt midi mjpeg mmx mmx2 mmxext mng modules mp2 mp3 mp4 mpeg mplayer mpm-worker mtp mudflap multilib musepack mythtv ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp pam pango pcre pda pdf pdflib phonon plasma png policykit posix ppds pulseaudio qt3support qt4 readline scanner sdl semantic-desktop session smp snmp sockets spell srt sse sse2 ssl startup-notification subtitles svg swat szip tcpd theora threads tiff truetype udev udisks unicode upower usb vcd vdpau vim-syntax vorbis webkit wxwidgets x264 xanim xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda_intel usb_audio" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp umax" USERLAND="GNU" VIDEO_CARDS="nvidia ati vesa" 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 2 Andre Reinke 2013-02-24 20:06:47 UTC
Same issue over here :/
Comment 3 Markus Wernig 2013-02-26 17:52:39 UTC
Had the same problem. Looking at the output from hp-check -t I found:

hp-check -t
...
Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: Permission denied


/var/lib/hp actually has permissions 644 after the upgrade to 3.13.2

Changing it manually to 755 (sudo chmod 755 /var/lib/hp) solved the problem for me.

I have reported this also on the hplip bug tracker: https://bugs.launchpad.net/hplip/+bug/1133486
Comment 4 Andre Reinke 2013-02-26 18:00:33 UTC
(In reply to comment #3)
> Had the same problem. Looking at the output from hp-check -t I found:
> 
> hp-check -t
> ...
> Current contents of '/var/lib/hp/hplip.state' file:
> Plugins are not installed. Could not access file: Permission denied
> 
> 
> /var/lib/hp actually has permissions 644 after the upgrade to 3.13.2
> 
> Changing it manually to 755 (sudo chmod 755 /var/lib/hp) solved the problem
> for me.

Confirming that!
Comment 5 Daniel Pielmeier gentoo-dev 2013-02-26 18:34:00 UTC
(In reply to comment #3)
> Had the same problem. Looking at the output from hp-check -t I found:
> 
> hp-check -t
> ...
> Current contents of '/var/lib/hp/hplip.state' file:
> Plugins are not installed. Could not access file: Permission denied
> 
> 
> /var/lib/hp actually has permissions 644 after the upgrade to 3.13.2
> 
> Changing it manually to 755 (sudo chmod 755 /var/lib/hp) solved the problem
> for me.
> 
> I have reported this also on the hplip bug tracker:
> https://bugs.launchpad.net/hplip/+bug/1133486

The Gentoo ebuild does not alter permissions of /var/lib/hp. Recently there were permission issues with /var/log/hp which have been fixed.

Looking at the source code there is the following in base/g.py:

in hplip-3.12.10a
if not os.path.exists('/var/lib/hp/') and os.geteuid() == 0:
  os.makedirs('/var/lib/hp/')
  os.system('chmod 644 /var/lib/hp/')

in hplip-3.13.2
if not os.path.exists('/var/lib/hp/') and os.geteuid() == 0:
  os.makedirs('/var/lib/hp/')
  cmd = 'chmod 644 /var/lib/hp/'
  os_utils.execute(cmd)

Maybe this change caused the issue. Probably it did not work before and now it does. However a directory shouldn't have 644 permissions at all.
Comment 6 Daniel Pielmeier gentoo-dev 2013-03-01 20:12:38 UTC
+*hplip-3.13.2-r2 (01 Mar 2013)
+
+  01 Mar 2013; Daniel Pielmeier <billie@gentoo.org> +hplip-3.13.2-r2.ebuild:
+  Revison bump. Fix bug #458976. Wrong permissions again. This time for
+  /var/lib/hp/. Thanks to James for the report. Only remove /var/lib/hp/ if it
+  is world writeable.

Should be fixed. Please reopen if there are still problems.