250729 Eli Schwartz wrote:
> On 7/27/25 6:46 AM, Philip Webb wrote:
>> I've run into this before, eg re sound, but not so severely.
>> It's a defect in Portage, which no-one seems to want to acknowledge :
>> it will happily update a pkg without including its vital requirements.
> I think that shouldn't be able to happen except when using --oneshot,
> or at least all the times I can recall seeing this were in such a case,
> because Portage allows uninstalling or upgrading a package
> to break another installed package
> iff that other package is eligible for --depclean.
> But that is why you're advised to regularly do a full world update
> followed by depclean.

I regularly use '-1' when emerging, but have never been aware
that that caused significantly different behaviour in itself.
in this case, 'clementine' is in my 'world' file.

As I see it, Portage allowed 'clementine' to be updated,
while failing to insist that some other pkg(s) were updated to match :
it's that simple & Portage shouldn't behave like that.

>> I was able to solve the problem with the help of 'pkg.ref',
>> my own invention long ago (I've been using Gentoo since 2003).
>> Here is an extract, listing all 'media-libs' pkgs which are installed :
>> 
>>     230717 media-libs/a52dec-0.7.4-r8 [for vlc]
>>     250427 media-libs/alsa-lib-1.2.13-r3 [for FF]
>>     230717 media-libs/alsa-topology-conf-1.2.5.1 [for alsa-lib]
 
> Is this manually maintained ?

Yes : I carefully update it whenever I emerge anything.
Pkgs in 'world' are marked 'W' & in 'system' 'S' ;
also, pkgs with special USE needs are marked 'USE'
& there is a list of such pkgs + flags towards the end of 'pkg.ref'.

> What happens when a package is installed due to multiple other packages ?

The '[for ...]' note lists them all.

> For top level packages I like to use /etc/portage/sets/* ,
> which supports comments describing why each package should be in @world.

I have several such files in the 'sets' dir, eg 'dev-qt',
which allows me to remove & re-install multiple pkgs easily.

I don't know how anyone can manage a Gentoo system without such a file.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatcadotinterdotnet


Reply via email to