Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge lshw to include X support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 225

PostPosted: Fri Mar 09, 2018 4:37 am    Post subject: emerge lshw to include X support Reply with quote

Hi All.

lshw is great for seeing what Gentoo sees as far as hardware resources.

Thing is, I'd like to also include the X support for that. I had it in the previous portage version 13 profile build, but since I've rebuilt on the version 17 profile, I'm struggling to figure out how to enable this in the emerge.

I've check the package.gentoo.org page for lshw, only USE flag there is 'static' which isn't one I'm using.

I know that in the lshw readme says to build with 'make ; make gui ; make install' to get X support. How to do this with emerge, I guess is the question.

Can anyone point me in the right direction here?

Much appreciated in advance.

PS: considering ways to contribute back to the Gentoo community in some small way. Not sure how, PM me if you've got an idea I can follow up, issue is limited spare time (working 1 1/2 shifts per day at work for large bank IT operations in PM)
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24369
Location: here

PostPosted: Fri Mar 09, 2018 7:12 am    Post subject: Reply with quote

In my system there's also sqlite and gtk and you should enable gtk for gui
Code:
$ eix lshw
[I] sys-apps/lshw                                                                                                                                                         
     Available versions:  02.16b-r2 02.18b ~02.18b-r1 {gtk sqlite static}                                                                                                 
     Installed versions:  02.18b(08:20:36 08. 01. 18)(-gtk -sqlite -static)                                                                                               
     Homepage:            https://www.ezix.org/project/wiki/HardwareLiSter                                                                                               
     Description:         Hardware Lister   

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
eohrnberger
Apprentice
Apprentice


Joined: 09 Dec 2004
Posts: 225

PostPosted: Sat Mar 10, 2018 2:34 pm    Post subject: Reply with quote

fedeliallalinea wrote:
In my system there's also sqlite and gtk and you should enable gtk for gui
Code:
$ eix lshw
[I] sys-apps/lshw                                                                                                                                                         
     Available versions:  02.16b-r2 02.18b ~02.18b-r1 {gtk sqlite static}                                                                                                 
     Installed versions:  02.18b(08:20:36 08. 01. 18)(-gtk -sqlite -static)                                                                                               
     Homepage:            https://www.ezix.org/project/wiki/HardwareLiSter                                                                                               
     Description:         Hardware Lister   


Yeah, mine looks very similar.
Code:
eix lshw
[I] sys-apps/lshw
     Available versions:  02.16b-r2 02.18b ~02.18b-r1 {gtk sqlite static}
     Installed versions:  02.18b(23:11:48 03/08/18)(-gtk -sqlite -static)
     Homepage:            https://www.ezix.org/project/wiki/HardwareLiSter
     Description:         Hardware Lister


So the question is how to make the -gtk into a +gtk. Easy.

Code:
cat /etc/portage/package.use/sys-apps-lshw.use
sys-apps/lshw gui gtk


re-emerge, and it's turned on. If you run gtk-lshw or lshw -X you get the X display. Sweet.

Odd that the lshw package documentation page didn't include the gtk USE flag, but oh well.

Cheers!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15623

PostPosted: Sat Mar 10, 2018 3:26 pm    Post subject: Reply with quote

USE flags are a Gentoo construct. Some upstreams will include in their documentation how major distributions map upstream features into downstream packages/configurations (such as which USE flags to set in Gentoo, which supporting deb/rpm are needed if the distribution splits features into multiple packages, etc.). Others only document how to get the results using a direct distribution-free install.

As for how you can contribute, you could pick some aspect of Gentoo that you have reason to know, learn it as best you can in your available time, and use that knowledge to help other users on the forum. Based on your responses here, you already know about USE flags and per-package USE configurations. Some new users don't know those things, and a well-placed post explaining it can help with their issue. Perhaps you spend a lot of time working with virtualiztion, or complex networking, or exotic hardware. As your expertise expands, you both become better able to support yourself and better qualified to help others. This also has the advantage of being very flexible in terms of time commitment. If you need to take a few weeks away from Gentoo for work or personal reasons, people you would have helped will still get help, just not quite as quickly. This can be less stressful than trying to commit to maintaining a package, since users and other maintainers may expect a package maintainer to have particular responsiveness deadlines.
Back to top
View user's profile Send private message
pcmaster
Advocate
Advocate


Joined: 04 Dec 2003
Posts: 2184
Location: Barcelona

PostPosted: Mon Jun 29, 2020 3:20 pm    Post subject: Reply with quote

In my system, gtk-lshw and lshw -X only works as root.
_________________
pcmaster
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum