Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818790 - sys-apps/fwupd-1.7.0 USE=logitech says it requires gusb, but dev-libs/libgusb-0.3.7 doesn't help
Summary: sys-apps/fwupd-1.7.0 USE=logitech says it requires gusb, but dev-libs/libgusb...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-10-18 07:39 UTC by Duncan
Modified: 2021-10-29 17:34 UTC (History)
2 users (show)

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


Attachments
emerge log (sys-apps:fwupd-1.7.0:20211018-073535.log,13.26 KB, text/plain)
2021-10-18 07:39 UTC, Duncan
Details
emerge --info (emerge.info,6.84 KB, text/plain)
2021-10-18 07:42 UTC, Duncan
Details
logitech requires gusb (fwupd-1.7.0.ebuild-logitech.patch,277 bytes, patch)
2021-10-24 16:05 UTC, Tee KOBAYASHI
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2021-10-18 07:39:32 UTC
Created attachment 745650 [details]
emerge log

Attempting to build fwupd-1.7.0 with USE=logitech failed for me in the configure phase with the following error:

plugins/logitech-bulkcontroller/meson.build:4:2: ERROR: Problem encountered: gusb is required for plugin_logitech_bulkcontroller

That was without dev-libs/libgusb-0.3.7 merged.  Unfortunately, merging it doesn't seem to help, same exact configure-phase error.

It does build fine with USE=-logitech, but then running it doesn't detect my logitech unifying receiver and the cordless touchpad and keyboard it hosts (which fwupd did detect some versions ago as I used it to update the firmware).

The full emerge log is attached and I'll attach emerge --info.
Comment 1 Duncan 2021-10-18 07:42:02 UTC
Created attachment 745653 [details]
emerge --info
Comment 2 Tee KOBAYASHI 2021-10-24 16:05:26 UTC
Created attachment 746529 [details, diff]
logitech requires gusb

I wonder if you have tried USE="gusb logitech"
Comment 3 James Beddek 2021-10-27 01:18:29 UTC
USE="gusb logitech" fixes this for me.
Comment 4 Duncan 2021-10-27 03:26:11 UTC
(In reply to Tee KOBAYASHI from comment #2)
> Created attachment 746529 [details, diff] [details, diff]
> logitech requires gusb
> 
> I wonder if you have tried USE="gusb logitech"

I hadn't.  Somehow I missed the gusb USE flag and just looked for a package, which as I reported didn't work, but...

(In reply to James Beddek from comment #3)
> USE="gusb logitech" fixes this for me.

Thanks to both of you.  Confirming USE="gusb logitech" works for me too, so the proposed REQUIRED_USE patch/PR seems to be the correct fix and this bug can close when it's in-tree. =:^)
Comment 5 Larry the Git Cow gentoo-dev 2021-10-29 17:34:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55b02e871c49d7595587dd627cb6ec1289e599e1

commit 55b02e871c49d7595587dd627cb6ec1289e599e1
Author:     James Beddek <telans@posteo.de>
AuthorDate: 2021-10-27 01:20:05 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-10-29 17:32:14 +0000

    sys-apps/fwupd: add REQUIRED_USE on gusb for logitech
    
    Closes: https://bugs.gentoo.org/818790
    Signed-off-by: James Beddek <telans@posteo.de>
    Closes: https://github.com/gentoo/gentoo/pull/22719
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 sys-apps/fwupd/fwupd-1.7.0.ebuild | 1 +
 1 file changed, 1 insertion(+)