Bug 223121 - net-print/hplip-2.8.5: hp-systray requires dev-python/ctypes
Bug#: 223121 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: monassa@systm.fr
Component: Printing
URL: 
Summary: net-print/hplip-2.8.5: hp-systray requires dev-python/ctypes
Keywords:  
Status Whiteboard: 
Opened: 2008-05-21 21:14 0000
Description:   Opened: 2008-05-21 21:14 0000
Starting with net-print/hplip-2.8.5 hp-systray replaces /etc/init.d/hplip
startup script. When trying to launch it as a normal user, I get

error: Qt3 version of hp-systray requires python-ctypes module. Exiting!

Reproducible: Always

Steps to Reproduce:
1. emerge =net-print/hplip-2.8.5
2. hp-systray
Actual Results:  
error: Qt3 version of hp-systray requires python-ctypes module. Exiting!


Expected Results:  
An HP icon appearing in the systray (of KDE in my case)

Emerging dev-python/ctypes solved the problem. It should be added as a
mandatory dependency of the ebuild.

------- Comment #1 From Denis Dupeyron 2008-05-26 06:26:54 0000 -------
I'm currently away, so I don't have access to my printer to test this. I'll fix
it as soon as I'll get back home, in a couple of days.

Denis.

------- Comment #2 From Kai Sommer 2008-07-09 18:26:09 0000 -------
Created an attachment (id=159967) [details]
hplip-2.8.5-r1.ebuild with USEflag "systray"

I made a -r1 ebuild with the new USEflag "systray" and that dependency with
"dev-python/ctypes".
Maybe it helps... :)

------- Comment #3 From Denis Dupeyron 2008-07-09 20:15:43 0000 -------
(In reply to comment #2)
> Created an attachment (id=159967) [edit] [details]
> hplip-2.8.5-r1.ebuild with USEflag "systray"
> 
> I made a -r1 ebuild with the new USEflag "systray" and that dependency with
> "dev-python/ctypes".
> Maybe it helps... :)

Thanks a lot. I'll have a look at it as soon as I'll have access to my printer,
which seems to be less and less often nowadays unfortunately.

Denis.

------- Comment #4 From Sébastien Monassa 2008-07-13 08:13:09 0000 -------
(In reply to comment #2)
> Created an attachment (id=159967) [edit] [details]
> hplip-2.8.5-r1.ebuild with USEflag "systray"
> 
> I made a -r1 ebuild with the new USEflag "systray" and that dependency with
> "dev-python/ctypes".
> Maybe it helps... :)
> 

Thanks. It works correctly with the "systray" use flag by pulling
"dev-python/ctypes" in.

But if you don't use "systray" it still builds the hp-systray executable. And
it's the same problem again.

If you cannot disable the hp-systray building, maybe should you consider it's
part of the package and always pull in "dev-python/ctypes" without any
"systray" use flag.

------- Comment #5 From Denis Dupeyron 2008-07-13 11:28:13 0000 -------
(In reply to comment #4)
> If you cannot disable the hp-systray building, maybe should you consider it's
> part of the package and always pull in "dev-python/ctypes" without any
> "systray" use flag.

As annoying as it is (i.e. I'm not particularly fond of the feature),
upstream's documentation seems to imply that it is not optional. At least
that's what I remember.

Denis, still not hear his printer.

------- Comment #6 From Denis Dupeyron 2008-07-30 14:56:11 0000 -------
I have just committed hplip-2.8.6b. There are new qt3 and qt4 USE flags, and
when qt3 is used python-ctypes is added to RDEPEND.

Thanks for reporting this.
Denis.