Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684664 - app-crypt/gnupg-2.2.15 - configure: You need libusb to build the internal ccid driver
Summary: app-crypt/gnupg-2.2.15 - configure: You need libusb to build the internal cci...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kristian Fiskerstrand (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-28 20:10 UTC by David Flogeras
Modified: 2019-06-10 03:53 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 David Flogeras 2019-04-28 20:10:20 UTC
While upgrading an arm system on generic desktop profile, gnupg failed with

configure:
***
*** You need libusb to build the internal ccid driver.  Please
*** install a libusb suitable for your system.
***
configure: error:
***
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
***

I will probably just set USE="-usb" since I don't need it, but maybe needs a conditional dep on libusb?

Reproducible: Always
Comment 1 David Flogeras 2019-04-28 23:53:59 UTC
I can confirm that it was possible to work around with USE="-usb"
Comment 2 Johannes Hirte 2019-06-04 12:20:51 UTC
Same here. Wiht useflag usb app-crypt/gnupg must depend on libusb.
Comment 3 Steffen Hau 2019-06-08 11:28:23 UTC
This is caused by:
DEPEND="[snip]
    smartcard? ( usb? ( virtual/libusb:1 ) )
    [/snip]
"

econf \
        [snip] \
        $(use_enable usb ccid-driver) \
        [/snip]

libusb is only pulled in when use smartcard is enabled. ccid-driver should be guarded by smartcard use flag. If it's independet from smartcard, then the DEPEND line has to be adjusted.
Comment 4 Larry the Git Cow gentoo-dev 2019-06-10 03:53:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820e8725752f8ced0448f0693aee31ea6f7c8e43

commit 820e8725752f8ced0448f0693aee31ea6f7c8e43
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2019-06-10 03:51:33 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2019-06-10 03:51:36 +0000

    app-crypt/gnupg: fix ccid-driver smartcard dep
    
    Conceptually, serial line interfaces or other interfaces to smartcards
    could be used, but the upstream configure script depends on libusb if
    you want the internal ccid driver. Ensure that ccid-driver is only
    enabled if both smartcard && usb USE flags are set.
    
    Fixes: https://bugs.gentoo.org/684664
    Package-Manager: Portage-2.3.67, Repoman-2.3.12
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 app-crypt/gnupg/gnupg-2.2.16-r1.ebuild | 153 +++++++++++++++++++++++++++++++++
 1 file changed, 153 insertions(+)