public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Tree resolving details/visualization
@ 2024-12-20 10:30 Alexander Kurakin
  2024-12-23 18:06 ` Michael
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kurakin @ 2024-12-20 10:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1146 bytes --]


Good day!
 
On emerge and other operations, I see the next sequence of actions:
1. Packages state is pulled (repositories, `/etc/portage/package.accept_keywords`, etc.).
This is versions of the packages, the USE flags, the arch keywords, etc.
2. User demands are pulled (`@world`, `/etc/portage/package.use`, etc.).
These demands are required version of the packages, the USE flag demands, etc. 3. They are pushed to the SAT resolver.
4. The decision is made. (The new full tree, "diff" for the tree - it doesn't matter here.)
 
Questions:
1. Am I correct?
2. Are there some tools (or projects for such tools) to show:
2a. the result and the sources of the p.1
(e.g., "there are `=mail-client/claws-mail-{3.21.0-r1,4.2.0-r3,4.3.0-r2,9999}` from `::gentoo`;
the applied keyword `amd64` for `=mail-client/claws-mail-4.2.0-r3` came from `/etc/portage/package.accept_keywords:17`")
and
2b. the result and the sources of the p.2
(e.g. "the user input is: `=mail-client/claws-mail-4.2.0-r3`;
the USE flag demand `mail-client/claws-mail[smime]` came from `/etc/portage/package.accept_keywords:2`")
 
Thanks!
 
Sincerely,
Alexander Kurakin.
 

[-- Attachment #2: Type: text/html, Size: 1533 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Tree resolving details/visualization
  2024-12-20 10:30 [gentoo-user] Tree resolving details/visualization Alexander Kurakin
@ 2024-12-23 18:06 ` Michael
  0 siblings, 0 replies; 2+ messages in thread
From: Michael @ 2024-12-23 18:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2375 bytes --]

Hi Alexander,

On Friday 20 December 2024 10:30:22 GMT Alexander Kurakin wrote:
> Good day!
>  
> On emerge and other operations, I see the next sequence of actions:
> 1. Packages state is pulled (repositories,
> `/etc/portage/package.accept_keywords`, etc.). This is versions of the
> packages, the USE flags, the arch keywords, etc. 2. User demands are pulled
> (`@world`, `/etc/portage/package.use`, etc.). These demands are
> required version of the packages, the USE flag demands, etc. 3. They are
> pushed to the SAT resolver. 4. The decision is made. (The new full tree,
> "diff" for the tree - it doesn't matter here.) 
> Questions:
> 1. Am I correct?

The directive you may have specified in ACCEPT_KEYWORDS in your /etc/portage/
make.conf, over-written by any package specific stable ARCH or testing ~ARCH 
entries you have added in your /etc/portage/package.accept_keywords will 
determine if a package version is selected to be emerged as stable or testing.

https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS

The default USE flags for any package are determined by your chosen profile 
(eselect profile list) and they are in turn overwritten by any optional USE 
flags you have set for all packages in /etc/portage/make.conf, or for 
individual packages in /etc/portage/package.use

https://wiki.gentoo.org/wiki/USE_flag
https://wiki.gentoo.org/wiki//etc/portage/package.use


> 2. Are there some tools (or projects for such tools) to show:
> 2a. the result and the sources of the p.1
> (e.g., "there
> are `=mail-client/claws-mail-{3.21.0-r1,4.2.0-r3,4.3.0-r2,9999}` from
> `::gentoo`; the applied keyword `amd64` for
> `=mail-client/claws-mail-4.2.0-r3` came from
> `/etc/portage/package.accept_keywords:17`") and
> 2b. the result and the sources of the p.2
> (e.g. "the user input is: `=mail-client/claws-mail-4.2.0-r3`;
> the USE flag demand `mail-client/claws-mail[smime]` came from
> `/etc/portage/package.accept_keywords:2`") 
> Thanks!
>  
> Sincerely,
> Alexander Kurakin.
>  

There are various tools besides the output of 'emerge -pv <package>' which 
will indicate the version you are about to install and the USE flags to be 
configured for it.  As a minimum I use these:

app-portage/gentoolkit
app-portage/portage-utils

but there are more to choose from:

https://wiki.gentoo.org/wiki/Gentoolkit
https://wiki.gentoo.org/wiki/Useful_Portage_tools

HTH,

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-23 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 10:30 [gentoo-user] Tree resolving details/visualization Alexander Kurakin
2024-12-23 18:06 ` Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox