Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754636 - net-print/hplip-3.20.9-r3 - configure: error: cannot find libusb support
Summary: net-print/hplip-3.20.9-r3 - configure: error: cannot find libusb support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-14 23:04 UTC by ernsteiswuerfel
Modified: 2020-11-18 20:39 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_754636.txt,5.80 KB, text/plain)
2020-11-14 23:04 UTC, ernsteiswuerfel
Details
build.log (hplip-3.20.9-r3:20201114-224950.log,16.31 KB, text/x-log)
2020-11-14 23:05 UTC, ernsteiswuerfel
Details
config.log (config.log,49.14 KB, text/plain)
2020-11-14 23:05 UTC, ernsteiswuerfel
Details
Updated ebuild (hplip-3.20.9-r4.ebuild,7.95 KB, patch)
2020-11-16 17:22 UTC, Daniel Pielmeier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-11-14 23:04:31 UTC
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
Comment 1 ernsteiswuerfel archtester 2020-11-14 23:05:12 UTC
Created attachment 671449 [details]
build.log
Comment 2 ernsteiswuerfel archtester 2020-11-14 23:05:31 UTC
Created attachment 671452 [details]
config.log
Comment 3 Daniel Pielmeier gentoo-dev 2020-11-16 17:22:29 UTC
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 ;-)
Comment 4 ernsteiswuerfel archtester 2020-11-17 23:07:44 UTC
(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
Comment 5 Daniel Pielmeier gentoo-dev 2020-11-18 06:53:39 UTC
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!
Comment 6 Larry the Git Cow gentoo-dev 2020-11-18 20:39:23 UTC
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(+)