Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675350 - kde-plasma/kinfocenter-5.14.5 (5.14.4 also) does not show the usb devices correctly
Summary: kde-plasma/kinfocenter-5.14.5 (5.14.4 also) does not show the usb devices cor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://phabricator.kde.org/D18032
Whiteboard: fixed in 5.15.5
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-01-13 19:23 UTC by Alexandre Ferreira
Modified: 2019-01-16 08:17 UTC (History)
0 users

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


Attachments
Ebuild that applies the patch and also uses hwids (kinfocenter-5.14.5.ebuild,2.59 KB, text/plain)
2019-01-13 19:23 UTC, Alexandre Ferreira
Details
Patch for correcting the usb listing and also uses the usb.ids from the hwids package (kinfocenter-5.14.5-usb.patch,1.14 KB, patch)
2019-01-13 19:24 UTC, Alexandre Ferreira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Ferreira 2019-01-13 19:23:06 UTC
Created attachment 560872 [details]
Ebuild that applies the patch and also uses hwids

kinfocenter does not show the USB devices correctly and also has an old usb.ids.It only shows some of the devices below the hosts.
Comment 1 Alexandre Ferreira 2019-01-13 19:24:16 UTC
Created attachment 560874 [details, diff]
Patch for correcting the usb listing and also uses the usb.ids from the hwids package
Comment 2 Alexandre Ferreira 2019-01-13 19:25:33 UTC
This patch was upstreamed but the change to use the usb.ids only applies to gentoo.
Comment 3 Andreas Sturmlechner gentoo-dev 2019-01-13 20:31:47 UTC
Thanks! Maybe this should be rather configurable at build time...

(In reply to Alexandre Ferreira from comment #2)
> This patch was upstreamed
Where did that happen?
Comment 4 Alexandre Ferreira 2019-01-13 20:34:04 UTC
The bug is posted at https://phabricator.kde.org/D18032
Comment 5 Alexandre Ferreira 2019-01-13 20:34:38 UTC
The patch is also upstreamed there.
Comment 6 Arfrever Frehtes Taifersar Arahesis 2019-01-14 00:58:15 UTC
(In reply to Alexandre Ferreira from comment #2)
> This patch was upstreamed but the change to use the usb.ids only applies to
> gentoo.

You could send a patch to upstream which does the following:

...
QString db = QStringLiteral("/usr/share/hwdata/usb.ids"); /* on Fedora and Arch*/
if (!QFile::exists(db)) {
    db = QStringLiteral("/usr/share/misc/usb.ids"); /* on Gentoo*/
}
if (!QFile::exists(db)) {
...
Comment 7 Alexandre Ferreira 2019-01-14 22:27:57 UTC
Added the suggested code. Thanks for the suggestion.
Comment 8 Alexandre Ferreira 2019-01-15 22:55:40 UTC
Fixed upstream, it will appear on 5.15.
Comment 9 Larry the Git Cow gentoo-dev 2019-01-16 08:17:12 UTC
The bug has been closed via the following commit(s):

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

commit b5c1bb46080526515247b5184547a9360cefd6bd
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-01-13 22:18:23 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-01-16 08:16:56 +0000

    kde-plasma/kinfocenter: Fix USB device IDs w/ correct path to hwids
    
    See also: https://bugs.kde.org/show_bug.cgi?id=402949
    Thanks-to: Alexandre Ferreira <alexandref75@gmail.com>
    Closes: https://bugs.gentoo.org/675350
    Package-Manager: Portage-2.3.55, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/kinfocenter-5.14.5-hwids.patch           |  52 ++++++++++
 .../kinfocenter/kinfocenter-5.14.5-r1.ebuild       | 105 +++++++++++++++++++++
 2 files changed, 157 insertions(+)