Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Check what will an USE flag pull in?
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
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 448
Location: Hong Kong

PostPosted: Wed Nov 13, 2024 3:17 am    Post subject: Check what will an USE flag pull in? Reply with quote

Take kde-apps/kdesdk-meta as an example. By default all its USE flags are disabled. Installing kde-apps/kdesdk-meta with default USE flags options almost install nothing.

eix kdesdk-meta:
[I] kde-apps/kdesdk-meta
     Available versions:  24.05.2 24.08.1{xpak} ~24.08.2 {cvs git mercurial perl php python subversion webengine}
     Installed versions:  24.08.1{xpak}(09點50分25秒 2024年11月13號 禮拜叁)(-cvs -git -mercurial -perl -php -python -subversion -webengine)
     Homepage:            https://apps.kde.org/categories/development/
     Description:         KDE SDK - merge this to pull in all kdesdk-derived packages


After installed kde-apps/kdesdk-meta, (almost) none of these programs available in my system.

equery depgraph kdesdk-meta:
 * dependency graph for kde-apps/kdesdk-meta-24.08.1
...

 `--  kde-apps/kdesdk-meta-24.08.1  amd64
   `--  dev-util/massif-visualizer-24.08.1  (>=dev-util/massif-visualizer-24.08.1) amd64
   `--  kde-apps/kapptemplate-24.08.1  (>=kde-apps/kapptemplate-24.08.1) amd64
   `--  kde-apps/kcachegrind-24.08.1  (>=kde-apps/kcachegrind-24.08.1) amd64
   `--  kde-apps/kde-dev-scripts-24.08.1  (>=kde-apps/kde-dev-scripts-24.08.1) amd64
   `--  kde-apps/kde-dev-utils-24.08.1  (>=kde-apps/kde-dev-utils-24.08.1) amd64
   `--  kde-apps/kdesdk-thumbnailers-24.08.1  (>=kde-apps/kdesdk-thumbnailers-24.08.1) amd64
   `--  kde-apps/kompare-24.08.1  (>=kde-apps/kompare-24.08.1) amd64
   `--  kde-apps/libkomparediff2-24.08.1  (>=kde-apps/libkomparediff2-24.08.1) amd64
   `--  kde-apps/poxml-24.08.1-r1  (>=kde-apps/poxml-24.08.1) amd64
   `--  kde-apps/umbrello-24.08.1  (>=kde-apps/umbrello-24.08.1) amd64
   `--  kde-apps/cervisia-24.08.1  (>=kde-apps/cervisia-24.08.1) amd64
   `--  kde-apps/dolphin-plugins-git-24.08.1  (>=kde-apps/dolphin-plugins-git-24.08.1) amd64
   `--  kde-apps/dolphin-plugins-mercurial-24.08.1  (>=kde-apps/dolphin-plugins-mercurial-24.08.1) amd64
   `--  dev-util/kio-perldoc-24.08.1  (>=dev-util/kio-perldoc-24.08.1) amd64
   `--  kde-apps/lokalize-24.08.1  (>=kde-apps/lokalize-24.08.1) amd64
   `--  kde-apps/dolphin-plugins-subversion-24.08.1-r1  (>=kde-apps/dolphin-plugins-subversion-24.08.1) amd64
   `--  dev-util/kdevelop-24.08.1  (>=dev-util/kdevelop-24.08.1) amd64
   `--  dev-util/kdevelop-php-24.08.1  (>=dev-util/kdevelop-php-24.08.1) amd64
   `--  dev-util/kdevelop-python-24.08.1  (>=dev-util/kdevelop-python-24.08.1) amd64
[ kde-apps/kdesdk-meta-24.08.1 stats: packages (20), max depth (1) ]

...


I can try enabling the USE flag and see what packages it will pull in.

USE='webengine' emerge -pv kde-apps/kdesdk-meta:
These are the packages that would be merged, in order:
...
...
[ebuild  N     ] sys-devel/clang-runtime-18.1.8:18::gentoo  USE="compiler-rt openmp sanitize -libcxx" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] dev-util/kdevelop-24.08.1:6/24.08::gentoo  USE="handbook plasma qmake share -debug -gdbui -subversion -test" LLVM_SLOT="18 -15 -16 -17" 8,588 KiB
[ebuild  N     ] kde-apps/dolphin-plugins-git-24.08.1:6::gentoo  USE="-debug" 0 KiB
[ebuild  N     ] dev-util/kdevelop-php-24.08.1:6::gentoo  USE="handbook -debug -test" 1,069 KiB
[ebuild  N     ] dev-util/kdevelop-python-24.08.1:6::gentoo  USE="-debug -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 1,076 KiB
[ebuild   R    ] kde-apps/kdesdk-meta-24.08.1::gentoo  USE="git* php* python* webengine* -cvs -mercurial -perl -subversion" 0 KiB

Total: 53 packages (1 upgrade, 51 new, 1 reinstall), Size of downloads: 179,176 KiB


But what if after I actually installed those packages, how to check what packages that the USE flag would pull in?

I found that the dependency information may be written in the ebuild file.

cat /var/db/pkg/kde-apps/kdesdk-meta-24.08.1/kdesdk-meta-24.08.1.ebuild:
...
        webengine? (
                >=dev-util/kdevelop-${PV}:*
                php? ( >=dev-util/kdevelop-php-${PV}:* )
                python? ( >=dev-util/kdevelop-python-${PV}:* )
        )
...


Any programs to phrase this dependence information recursively (or up to a depth of e.g. 3)?
_________________
- midnite.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Wed Nov 13, 2024 12:37 pm    Post subject: Re: Check what will an USE flag pull in? Reply with quote

midnite wrote:
[...] But what if after I actually installed those packages, how to check what packages that the USE flag would pull in?

I found that the dependency information may be written in the ebuild file. [...]

Yes, you will find the answer what a USE flag will pull in, in the ebuild file ... OR ... you can also check it with emerge (by using parameter -p and a temporary adding of a flag) ... e.g.:
Code:
# USE="newflag" emerge -pvD packagename

(of course you should set this flag later in your /etc/portage/package.use IF you really want to use it.)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
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