Summary: | net-print/hplip-3.20.9-r3 - configure: error: cannot find libusb support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Daniel Pielmeier <billie> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, printing |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
build.log config.log Updated ebuild |
Created attachment 671449 [details]
build.log
Created attachment 671452 [details]
config.log
Created attachment 671659 [details, diff]
Updated ebuild
I can confirm this bug!
You have an interesting USE flag combination. Can you explain the use case for this combination?
Also next time please post the output of emerge info including the package in question. Like:
emerge --info =hplip-3.20.9-r4
This way the currently used USE flag combination is also added at the end of the output and I don't have to guess them from configure output!
It looks like the following USE combination is triggering this bug:
USE="libusb0 minimal -hpcups -hpijs"
This is interesting as I found no usb related changes between hplip-3.20.6-r1 and hplip-3.20.9-r3.
So this means that libusb must be available even with minimal build. However even with USE="minimal" as long as hpijs or hpcups is is enabled the error goes away. Probably it is a good idea to depend on libusb in any case.
If I do this however this triggers another build error with your Use flags. Apparently USE="snmp" requires dbus which is an added dependency in this version
I restructured the build options to disable USE="snmp scanner" in case of USE="minimal" in addition to use="fax". This also reflects the dependencies. Dbus is required in so many places that it also make sense to depend on it unconditionally.
It is really hard to say which flag triggers which dependency as the hplip build system is kind of difficult to read/understand.
Can you please test the attached version it should fix at least your issue. I hope I did not introduce anything new ;-)
(In reply to Daniel Pielmeier from comment #3) > You have an interesting USE flag combination. Can you explain the use case > for this combination? Yes, tatt-testing on ppc64 for bug #754072. ;) > It is really hard to say which flag triggers which dependency as the hplip > build system is kind of difficult to read/understand. Well, at least tatt uncovers non-working flag combinations easily most of the time. > Can you please test the attached version it should fix at least your issue. > I hope I did not introduce anything new ;-) Your new ebuild is working fine, thanks! All USE-flag combinations tatt generates pass now: # cat hplip-754072.report USE tests started on Di 17. Nov 23:23:44 CET 2020 FEATURES=' test' USE='' succeeded for =net-print/hplip-3.20.9-r4 USE='X -doc -fax hpcups -hpijs libnotify -libressl -libusb0 minimal -parport -policykit -qt5 scanner -snmp -static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='-X doc fax hpcups hpijs -libnotify -libressl libusb0 minimal parport -policykit -qt5 -scanner snmp -static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='X doc -fax -hpcups -hpijs libnotify -libressl libusb0 minimal parport -policykit qt5 -scanner snmp -static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='-X -doc -fax hpcups -hpijs -libnotify -libressl -libusb0 minimal -parport -policykit -qt5 scanner -snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='-X doc fax -hpcups -hpijs libnotify -libressl libusb0 minimal parport -policykit -qt5 scanner -snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='X -doc fax -hpcups -hpijs -libnotify -libressl -libusb0 minimal -parport -policykit -qt5 -scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='-X -doc -fax hpcups hpijs -libnotify -libressl libusb0 minimal -parport -policykit -qt5 -scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='X doc -fax hpcups -hpijs -libnotify -libressl -libusb0 minimal -parport -policykit qt5 -scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='X -doc -fax hpcups -hpijs -libnotify -libressl libusb0 minimal -parport policykit qt5 -scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='-X -doc fax hpcups -hpijs -libnotify -libressl libusb0 minimal -parport -policykit -qt5 scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='X doc fax hpcups -hpijs libnotify -libressl -libusb0 minimal parport -policykit -qt5 scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 USE='X doc -fax hpcups hpijs libnotify -libressl libusb0 minimal parport -policykit qt5 scanner snmp static-ppds' succeeded for =net-print/hplip-3.20.9-r4 I have not yet commited the fix so leave this open for now! (In reply to ernsteiswuerfel from comment #4) > (In reply to Daniel Pielmeier from comment #3) > > You have an interesting USE flag combination. Can you explain the use case > > for this combination? > Yes, tatt-testing on ppc64 for bug #754072. ;) Then you wil also find in the log that this combination does not make a lot of sense :-) It should build however or need to prevent it by required use flags. > > Can you please test the attached version it should fix at least your issue. > > I hope I did not introduce anything new ;-) > Your new ebuild is working fine, thanks! All USE-flag combinations tatt > generates pass now: > > # cat hplip-754072.report > USE tests started on Di 17. Nov 23:23:44 CET 2020 > > FEATURES=' test' USE='' succeeded for =net-print/hplip-3.20.9-r4 > USE='X -doc -fax hpcups -hpijs libnotify -libressl -libusb0 minimal -parport > -policykit -qt5 scanner -snmp -static-ppds' succeeded for > =net-print/hplip-3.20.9-r4 snip > USE='X doc -fax hpcups hpijs libnotify -libressl libusb0 minimal parport > -policykit qt5 scanner snmp static-ppds' succeeded for > =net-print/hplip-3.20.9-r4 Thanks for testing! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ec60389fdecf506a2d4f539268002543fa4af2c commit 9ec60389fdecf506a2d4f539268002543fa4af2c Author: Daniel Pielmeier <billie@gentoo.org> AuthorDate: 2020-11-18 20:38:42 +0000 Commit: Daniel Pielmeier <billie@gentoo.org> CommitDate: 2020-11-18 20:38:42 +0000 net-print/hplip: Revision bump to hplip-3.20.9-r4. Thanks to ernsteiswuerfel and Thomas De Schampheleire for the reports. Closes: https://bugs.gentoo.org/754636 Closes: https://bugs.gentoo.org/755038 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Daniel Pielmeier <billie@gentoo.org> net-print/hplip/hplip-3.20.9-r4.ebuild | 286 +++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) |
Created attachment 671446 [details] emerge --info [...] configure: error: cannot find libusb support !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-print/hplip-3.20.9-r3/work/hplip-3.20.9/config.log * ERROR: net-print/hplip-3.20.9-r3::gentoo failed (configure phase): * econf failed