Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420671 - app-admin/system-config-printer-gnome - system-config-printer cannot find /usr/lib/cups/filter/hpcups
Summary: app-admin/system-config-printer-gnome - system-config-printer cannot find /us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-11 11:44 UTC by poncho
Modified: 2012-06-20 07:31 UTC (History)
5 users (show)

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


Attachments
0001-add-usr-libexec-cups-filter-to-the-filter-search-pat.patch (0001-add-usr-libexec-cups-filter-to-the-filter-search-pat.patch,962 bytes, patch)
2012-06-16 06:56 UTC, Tiziano Müller (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description poncho 2012-06-11 11:44:19 UTC
The system-config-printer utility (cups?) can't find hpcups in /usr/lib/cups/filter/

After linking /usr/libexec/cups to /usr/lib/cups printing works fine.

Reproducible: Always




Portage 2.2.0_alpha110 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.14.1-r3, 3.4.0-gentoo x86_64)
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Mon, 11 Jun 2012 10:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.6.3
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo poncho-overlay infinality-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 googleearth Nero-EULA-US Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/Adwaita/backgrounds/adwaita-timed.xml"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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="-march=native -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --ask --verbose --jobs=5 --load-average=6"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo 	http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo 	http://distfiles.gentoo.org"
INSTALL_MASK=" /usr/lib32/wine/fakedlls/winemenubuilder.exe /usr/lib32/wine/winemenubuilder.exe.so"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5 -l6"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found --exclude=/metadata/cache/*"
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/portage-tmpfs"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/local/poncho-overlay /var/portage/local/infinality-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alac alsa amd64 ass bash-completion berkdb bluetooth bluray bzip2 cairo cdda cdr cdrdao cli consolekit cracklib crypt css cue cups cxx dbus device-mapper dirac dri dts dvd dvdr eds emboss encode evo exif faac fam ffmpeg firefox flac fontconfig fortran g3dvl gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv id3tag ipv6 jpeg kate lame lcms libass libnotify libtiger mad matroska mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nvidia ogg opencl opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support quicktime readline rtmp schroedinger sdl session sndfile socialweb speex spell sse sse2 sse3 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis vpx wav wavpack wxwidgets x264 xcb xinerama xml xorg xulrunner xv xvid xvmc zlib zsh-completion" ALSA_CARDS="hda-intel" 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 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" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS





net-print/hplip-3.12.4 was built with the following:
USE="acl hpcups libnotify (multilib) policykit -X -doc -fax -hpijs -kde -minimal -parport -qt4 -scanner -snmp -static-ppds"

net-print/cups-1.5.2-r4 was built with the following:
USE="acl dbus filters jpeg (multilib) pam png ssl threads tiff usb -X -avahi -debug -gnutls -java -kerberos -ldap -perl -python -slp -static-libs -xinetd" LINGUAS="-da -de -es -eu -fi -fr -id -it -ja -ko -nl -no -pl -pt -pt_BR -ru -sv -zh -zh_TW"

app-admin/system-config-printer-gnome-1.3.9-r1 was built with the following:
USE="gnome-keyring (multilib)" LINGUAS="-ar -as -bg -bn -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -es -et -fa -fi -fr -gu -he -hi -hr -hu -hy -id -is -it -ja -ka -kn -ko -lo -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt -pt_BR -ro -ru -si -sk -sl -sr -sr@latin -sv -ta -te -th -tr -uk -vi -zh_CN -zh_TW"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-12 15:12:55 UTC
app-admin/system-config-printer-gnome: /usr/bin/system-config-printer
Comment 2 poncho 2012-06-12 17:26:24 UTC
this seems to be an older issue.

here is a post from 03-16-2011 by another user who has the same problem:
https://www.linuxquestions.org/questions/linux-software-2/hp-setup-and-network-printer-or-hpcups-and-system-config-printer-869015/
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2012-06-16 06:56:59 UTC
Created attachment 315473 [details, diff]
0001-add-usr-libexec-cups-filter-to-the-filter-search-pat.patch

Well, I could reproduce the problem when one of my printers had an issue and the test/diagnose dialog popped up and told me that the filter could not be found.
The problem is that system-config-printer should not have fixed paths but it should be set to "$(cups-config --serverbin)/filter" at compile/configure-time.
The attached path follows what upstream cuurently does and just adds /usr/libexec/cups/filter to the list of filter-paths.
Comment 4 poncho 2012-06-16 10:38:53 UTC
Thanks for looking into this.

Upstream bugreport is here:
https://fedorahosted.org/system-config-printer/ticket/224
Comment 5 Maciej Mrozowski gentoo-dev 2012-06-19 22:12:35 UTC
Thanks dev-zero & poncho.
I think for now we can live with this patch as a workaround.
When upstream fixes is to use cups-config, patch will be dropped.
Comment 6 poncho 2012-06-20 07:31:09 UTC
please bump app-admin/system-config-printer-gnome-1.3.9-r1 as well because it has
RDEPEND="
    =app-admin/system-config-printer-common-${PVR}

which results in a blocker:

WARNING: One or more updates have been skipped due to a dependency conflict:

app-admin/system-config-printer-common:0

  (app-admin/system-config-printer-common-1.3.9-r2::gentoo, ebuild scheduled for merge) conflicts with
    =app-admin/system-config-printer-common-1.3.9-r1 required by (app-admin/system-config-printer-gnome-1.3.9-r1::gentoo, installed)