First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 106035
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Printing Team <printing@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tom Hendrikx <tom@whyscream.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 106035 depends on: Show dependency tree
Bug 106035 blocks: 112425
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-09-15 00:17 0000
I have installed hplip with USE flags +X -qt (among others). There is a 'HP
device Manager provided in my (gnome) menu, but it doesn't run. From
commandline, it tells me:

tomhendr@elaine ~ $ /usr/share/hplip/toolbox
Traceback (most recent call last):
  File "/usr/share/hplip/toolbox", line 41, in ?
    import base.async_qt as async
  File "/usr/share/hplip/base/async_qt.py", line 85, in ?
    from qt import *
ImportError: No module named qt

The error is pretty straightforward, but if this application only works with qt,
then why is it installed. Problem exists with latest ebuild (0.9.4).

Reproducible: Always
Steps to Reproduce:
1. USE="X -qt" emerge hplip
2. run /usr/share/hplip/toolbox from commandline




emerge --info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.whyscream.net/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac acpi alsa avi berkdb bmp cdr crypt cups dbus divx4linux dri
dvd elibc_glibc encode esd exif fam flac foomaticdb gdbm gif gnome gphoto2
gstreamer gtk gtk2 hal howl imlib ipv6 jpeg kernel_linux libwww mad matroska
matrox mikmod mmx motif mp3 mpeg ncurses nls nptl nsplugin ogg oggvorbis opengl
pam pdflib png python quicktime readline samba sdl spell sse ssl svg tcpd theora
tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU vorbis
win32codecs xine xml2 xv zlib"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS

------- Comment #1 From Luis Medinas (RETIRED) 2005-09-16 13:41:41 0000 -------
can you please emerge pykde and see if it runs ?

------- Comment #2 From Tom Hendrikx 2005-09-18 07:30:12 0000 -------
emerge -av pykde gives:

[blocks B     ] >=kde-base/kdelibs-3.3.1 (is blocking dev-python/pykde-3.11.3)
[ebuild  N    ] x11-libs/qt-3.3.4-r3  +cups -debug -doc -examples -firebird +gif
-immqt -immqt-bc +ipv6 -mysql -nas -odbc +opengl -postgres -sqlite -xinerama
+zlib 0 kB
[ebuild  N    ] dev-python/sip-4.1.1  -debug -doc 289 kB
[ebuild  N    ] kde-base/kde-env-3-r4  0 kB
[ebuild  N    ] kde-base/kdelibs-3.4.1-r1  +alsa -arts +cups -debug -doc -jpeg2k
-kdeenablefinal -kerberos -openexr +spell +ssl +tiff -xinerama -zeroconf 0 kB
[ebuild  N    ] dev-python/qscintilla-1.61  -doc 684 kB
[ebuild  N    ] dev-python/PyQt-3.13  -debug -doc 745 kB
[ebuild  N    ] dev-python/pykde-3.11.3  -debug -doc -kjs 1,225 kB

which seems to be a rather strange error in the pykde ebuild. I'm going to
emerge with ">=kde-base/kdelibs-3.3.1" in my package.mask.

Note however, that I do not think it is advisable to make half of kde a
dependency of hplip. It should rather not install the device manager at all...

------- Comment #3 From Tom Hendrikx 2005-09-18 11:24:49 0000 -------
It runs fine after 4 hours of kde compilation, but I did not expect anything
else ;)

------- Comment #4 From Luis Medinas (RETIRED) 2005-09-25 09:59:43 0000 -------
yes that's true but you need qt use flag to be able to access that environment.
So i will not remove the qt use flag because it's only optional.

------- Comment #5 From Tom Hendrikx 2005-09-26 01:08:56 0000 -------
I never meant to remove the qt use flag. The problem is that, when you do *not*
have/want the qt USE flag enabled, there is a program in your menu that is
actually broken (because of qt not available). I think you should not provide
rpograms to end-users that do not run, especialy when this is expected behaviour
(because the qt flag is not set, and qt is not available).

Since you do not want qt as a dependency, there is only one solution to the
problem: do not provide/install the program that depends on qt. 

------- Comment #6 From Chris White (RETIRED) 2005-11-20 14:04:03 0000 -------
CANTFIX? noooooo wrong answer:  
  
+       if ! use qt ; then  
+               rm -f ${D}/usr/bin/hp-print  
+               rm -f ${D}/usr/bin/hp-toolbox  
+               rm -f ${D}/usr/share/hplip/print  
+               rm -f ${D}/usr/share/hplip/toolbox  
+       fi  
+  
  
hm.. that looks familiar...:  
  
    else 
        rm -f ${D}/usr/lib/libsane-hpaio.la 
        rm -f ${D}/usr/lib/libsane-hpaio.so 
        rm -f ${D}/usr/lib/libsane-hpaio.so.1 
        rm -f ${D}/usr/lib/libsane-hpaio.so.1.0.0 
    fi 
 
oh look.. it's the same logic :/.  Tested myself and it successfully does not 
install the files, and portage takes care of the symlinks that don't exist 
anymore. 

------- Comment #7 From Marcelo Goes 2006-01-14 11:12:58 0000 -------
Thanks Chris, fix in cvs.

First Last Prev Next    No search results available      Search page      Enter new bug