Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223121 - net-print/hplip-2.8.5: hp-systray requires dev-python/ctypes
Summary: net-print/hplip-2.8.5: hp-systray requires dev-python/ctypes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 21:14 UTC by Sébastien Monassa
Modified: 2008-07-30 14:56 UTC (History)
1 user (show)

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


Attachments
hplip-2.8.5-r1.ebuild with USEflag "systray" (hplip-2.8.5-r1.ebuild,4.23 KB, text/plain)
2008-07-09 18:26 UTC, Deleted Account
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Monassa 2008-05-21 21:14:40 UTC
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 Denis Dupeyron (RETIRED) gentoo-dev 2008-05-26 06:26:54 UTC
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 Deleted Account 2008-07-09 18:26:09 UTC
Created attachment 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 Denis Dupeyron (RETIRED) gentoo-dev 2008-07-09 20:15:43 UTC
(In reply to comment #2)
> Created an attachment (id=159967) [edit]
> 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 Sébastien Monassa 2008-07-13 08:13:09 UTC
(In reply to comment #2)
> Created an attachment (id=159967) [edit]
> 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 Denis Dupeyron (RETIRED) gentoo-dev 2008-07-13 11:28:13 UTC
(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 Denis Dupeyron (RETIRED) gentoo-dev 2008-07-30 14:56:11 UTC
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.