Re: Making a partition larger without affecting my OS.
Dale <[email protected]>
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <[email protected]> |
On 3/17/26 2:55 PM, Eli Schwartz wrote: > On 3/15/26 2:50 PM, Dave Sizer wrote: >> On Sat, 14 Mar 2026, Dale wrote: >> >>> Howdy, >>> >>> As some know, on my old and new rig, I compile my updates in a chroot >>> environment. Then I copy the binaries over and use the -k option on my >>> running OS. That way I don't have a crash when one program is updated >>> and another it depends on is not yet updated. >>> [...] >> I was surprised to read this... is such a process really necessary when >> emerging package updates? >> >> I am pretty new to gentoo, but I assumed that this was something that >> portage handled somehow already, although I admittedly didn't really >> look into the details of how. > > > Gentoo automatically handles ELf sonames, via make.conf(5) -> > FEATURES="preserve-libs", e.g. > > libfoo.so.2 -> libfoo.so.3 > > During updates, if one program uses libfoo.so.2, portage will upgrade > and install libfoo.so.3 but not delete libfoo.so.2 until the program > which needs it, gets rebuilt using libfoo.so.3 (hence no longer needs > the old one!) > > It is not generically possible to solve all issues, especially languages > like python can only have one version at a time. > > Running programs don't usually break. Programs that fork child processes > may break, and newly started applications may break, if it is not > covered by FEATURES="preserve-libs". > > Binary-only distros solve this by only "breaking" for a minute or so > while installing prebuilt binaries. Gentoo lets you choose, of course. :) > > This is why I chose to do my own builds and then emerge the binaries. Since it solved my problems, I just keep doing what works. That way I shouldn't have problems even if they are rare. It may not be needed but given the volume of data here, I try to play it safe, despite having backups. :-) Dale :-) :-)