Re: [PATCH v2] Add @unsatisfied-deps package set (bug 248026)

Zac Medico <[email protected]> Sat, 19 Jun 2021 11:03:51 -0700
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
On 6/18/21 8:29 PM, Zac Medico wrote:
> On 6/18/21 8:13 PM, Zac Medico wrote:
>> On 6/18/21 6:01 PM, Zac Medico wrote:
>>> If emerge --depclean fails to resolve any dependencies, then it will
>>> now suggest emerge @unsatisfied-deps as the simplest possible
>>> solution, and will also suggest to unmerge @unavailable where
>>> appropriate at the end:
>>>
>>> $ emerge --depclean
>>>
>>> Calculating dependencies... done!
>>>  * Dependencies could not be completely resolved due to
>>>  * the following required packages not being installed:
>>>  *
>>>  *   virtual/cdrtools pulled in by:
>>>  *     app-cdr/cdrdao-1.2.4
>>>  *
>>>  * Have you forgotten to resolve unsatisfied dependencies prior to
>>>  * depclean? The simplest possible command for this purpose is as
>>>  * follows:
>>>  *
>>>  *   emerge @unsatisfied-deps
>>
>> It turns out that @unsatisfied-deps is often unsuitable here because it
>> pulls in a bunch of @installed packages, when you really want to use
>> @world as the source of truth.
> 
> The underlying reason is the same as the reason that we've never used
> @installed updates as a substitute for @world updates. It just doesn't
> work, because @installed is polluted in comparison to @world.
> 

My plan is it introduce an @unsatisfied-world set which is equivalent to
@unsatisfied-deps but filters out any non @world packages.
-- 
Thanks,
Zac
signature.asc (application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQKTBAEBCgB9FiEE8OgXaltWzqgSupCu0HX7jBBKPSAFAmDOMYdfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYw
RTgxNzZBNUI1NkNFQTgxMkJBOTBBRUQwNzVGQjhDMTA0QTNEMjAACgkQ0HX7jBBK
PSBLmg//cnAnvI7AJcGNq8kZcdclM2XQNyDUsNpVQMLQ1rgqbMdLjtrF2iKaLraH
NrrfJitNB4ErH0PHMZZEL83Wi6s9pz1bTpNpnai6Dy60WVzzKoIQyzK+mc7NYAFI
Oy3vAetYnHUV2kFcYT/DMr0g3KSQYTOOJHXqfIvElWGa52zcEYsBpw6f4XCbi1VX
jPq8d47EoZkk8+F3rgQo1wpFVWeVLnsxkcnWrRdl3zQuLAayRC5Zg+2SvluQuORI
y7PokrKSAr80WRrU/W/Y7E/t3iMbQU3comDmedyInhpBfsmuW1Xyq+QfGvXfQ40x
Ts3x69cwtU9ebpssFbMZSClRS1HEyY9tO5Kv815P+ZHjMdqTgFIGv1GFAct0DmOB
peK+uxVQvugVNdYkx6/Mc2z5skJAKV3wUmw7E2ZNOM0xUKnVpRgXteY0zhWe6qpZ
PwPN+Ua33CbEUWIChpUufZdKhhQSYx09pmHQfa0iHopb8/e05y0Cd9BtYlJOkjWs
6WHZ/woWE30/F+Al2vKpogk81hxZQzZ9FzxweOq0PmgVBnxWtnEfaxHUxFSjNW21
emYSqYnio2EiV8R4zN/8UGVYTejH9yv6FXAOP8HCbzeyY/T19HcX3kgJfurwI+Cl
S+L7IjqypLDhV45KF0k0TK2oXsjGwHuC3cOnebkqKM1Y4jbgxKM=
=zYIf
-----END PGP SIGNATURE-----