Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449402 - net-print/hplip should conditionallly depend on dev-python/dbus-python
Summary: net-print/hplip should conditionallly depend on dev-python/dbus-python
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: http://hplipopensource.com/hplip-web/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-31 07:08 UTC by turtle
Modified: 2014-03-05 18:52 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 turtle 2012-12-31 07:08:50 UTC
Checking:
http://hplipopensource.com/hplip-web/install/manual/distros/other.html
dev-python/dbus-python is not a required dep of net-print/hplip 
Changing the ebuild from
dev-python/dbus-python
to
fax? ( dev-python/dbus-python )
Seems to fix the problem of dbus being pulled in.
Although I am not sure what else you need it for


Reproducible: Always

Steps to Reproduce:
1. emerge -av net-print/hplip with minimal USE=  -X -doc -fax -hpijs -kde -libnotify -libusb0 -parport -policykit -qt4 -scanner -snmp -static-ppds on a headless server without dbus
2. emerge wants to pull in dbus and other deps
3. change ebuild from dev-python/dbus-python to fax? ( dev-python/dbus-python ), digest and, emerge  hplip works fine without dbus yay.
Actual Results:  
hplip pulls in dbus via dev-python/dbus-python

Expected Results:  
Just emerging hplip no dbus according to HP dev-python/dbus-python is only needed for fax support.
REF http://hplipopensource.com/hplip-web/install/manual/distros/other.html

Thanks for your time!
Comment 1 Daniel Pielmeier gentoo-dev 2013-01-02 17:08:05 UTC
Take a look at the code and not at the incomplete installation docs. There are a few scripts which require dbus-python. If you can convince upstream to make everything there configurable I can make dbus-python optionally again. See also comment #12 and #13 on bug #431202.
Comment 2 turtle 2013-01-03 20:30:51 UTC
Whoah wow! That was the fastest bug reply ever.
OK here we go https://bugs.launchpad.net/hplip/+bug/1095783

Looking at configure I thought dbus-build=no would disable anything python-dbus.

"Following values are determined at configure time and cannot be changed.
[configure] <snip>
fax-build=no
dbus-build=no </snip>"

OK that's cool either way. I edited the ebuild and am running it without dbus as I don't have anything else on the server that needs dbus.
I am browsing the code just to see if I am going to cause a problem with a lazer jet by not having dbus.
Do you recall what other files require (python-)dbus?

I did just try emerging hplip with the minimal USE flag and I could still use the printer but the hp-foo scripts were not present.
Thanks again Daniel
Comment 3 Nick Bowler 2014-03-04 20:53:34 UTC
Can we at least have the already-existing USE=minimal to avoid the dependency on dbus-python?  With USE=minimal the problematic scripts are not installed so there should be no issue, right?
Comment 4 turtle 2014-03-05 08:04:38 UTC
(In reply to Nick Bowler from comment #3)
> Can we at least have the already-existing USE=minimal to avoid the
> dependency on dbus-python?  With USE=minimal the problematic scripts are not
> installed so there should be no issue, right?

That works for me thanks.
Comment 5 Daniel Pielmeier gentoo-dev 2014-03-05 18:52:00 UTC
+*hplip-3.14.1-r1 (05 Mar 2014)
+
+  05 Mar 2014; Daniel Pielmeier <billie@gentoo.org> +hplip-3.14.1-r1.ebuild:
+  Only depend on dev-python/dbus-python if USE=minimal. This fixes bug #449402.
+  Thanks to turtle for the report and Nick Bowler for the suggested dependency
+  change.