Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved how to find programs they only come with useflag XYZ
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
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 730

PostPosted: Fri Oct 18, 2024 7:40 am    Post subject: [solved how to find programs they only come with useflag XYZ Reply with quote

i have tried to mount something where comes the message unkown filesystem (LVM2_member)
i tried google, found that i have to use vgscan ....
i tried vgs<tab><tab> .... no vgscan here.
i tried emerge -av sys-fs/lvm2
Code:
[ebuild   R    ] sys-fs/lvm2-2.03.22-r5::gentoo  USE="readline udev -lvm -sanlock (-selinux) -static -static-libs -systemd -thin -valgrind" 0 KiB

ok, i was wondering, lvm2 installed, but no vgscan here.

i add "sys-fs/lvm2 lvm" in the file "/etc/portage/package.use"
and run emerge again to build lvm2 new. amd than was vgscan found at my system.
for me, it was a lucky hit to found vgscan now.

how can i find out that program 123 is only built using useflag XYZ?


Last edited by SarahS93 on Fri Oct 18, 2024 6:46 pm; edited 2 times in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3977

PostPosted: Fri Oct 18, 2024 8:23 am    Post subject: Reply with quote

2 my knowledge there is no way to predict what binaries an ebuild generates in general.
No to say depending on USE flags.

However pfl web site may be of some help in some cases, e.g. which ebuild for a required program.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Fri Oct 18, 2024 8:32 am; edited 2 times in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9320

PostPosted: Fri Oct 18, 2024 8:26 am    Post subject: Reply with quote

Code:
$ equery u lvm2
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-fs/lvm2-2.03.22-r5:
 U I
 - - lvm         : Build all of LVM2 including daemons and tools like lvchange, not just the device-mapper library (for other packages to use). If your system uses LVM2 for managing disks
                   and partitions, enable this flag.
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 730

PostPosted: Fri Oct 18, 2024 8:54 am    Post subject: Reply with quote

long time ago, i have noticed for me that
in "net-analyzer/dsniff" is the programm "tcpkill" and
in "sys-process/procps" is the program "watch"
but it would be easyer and nice if anyone looking for a programm to find out in what package or useflag the programm is behind
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1799
Location: Germany

PostPosted: Fri Oct 18, 2024 9:24 am    Post subject: Reply with quote

SarahS93 wrote:
long time ago, i have noticed for me that
in "net-analyzer/dsniff" is the programm "tcpkill" and
in "sys-process/procps" is the program "watch"
but it would be easyer and nice if anyone looking for a programm to find out in what package or useflag the programm is behind

On the topic which command comes from what package, https://www.portagefilelist.de/ and its package https://packages.gentoo.org/packages/app-portage/pfl can help.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3940
Location: Hamburg

PostPosted: Fri Oct 18, 2024 9:42 am    Post subject: Reply with quote

The title is misleading, "X" is a USE flag too.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4679
Location: Germany

PostPosted: Fri Oct 18, 2024 11:33 am    Post subject: Reply with quote

Yes, app-portage/pfl is helpful for this stuff <3
example output:
$ e-file vgscan
app-shells/bash-completion
        Seen Versions:       2.11 2.13.0-r1 2.14.0 2.14.0-r1
        Portage Versions:    2.14.0 2.14.0-r1 9999
        Repository:          gentoo
        Installed Versions:  2.14.0-r1(Fri Aug 30 01:35:15 2024)
        Homepage:            https://github.com/scop/bash-completion
        Description:         Programmable Completion for bash
        Matched Files:       /usr/share/bash-completion/completions/vgscan

sys-fs/lvm2
        Seen Versions:       2.03.14-r4 2.03.17-r2 2.03.20 2.03.21-r1 2.03.22-r2 2.03.22-r3 2.03.22-r5
        Portage Versions:    2.03.21-r1 2.03.22-r1 2.03.22-r5
        Repository:          gentoo
        Installed Versions:  2.03.22-r5(Fri Aug 30 10:46:31 2024)
        Homepage:            https://sourceware.org/lvm2/
        Description:         User-land utilities for LVM2 (device-mapper) software
        Matched Files:       /sbin/vgscan
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 730

PostPosted: Fri Oct 18, 2024 6:40 pm    Post subject: Reply with quote

Thanks a lot!
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