Re: it works Re: About upgrading to glibc-2.40
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
On 1/5/25 8:40 PM, Pocket ([email protected] via lfs-support Mailing List) wrote: .. >> On 1/5/25 10:18 AM, tjoen ([email protected] via lfs-support Mailing List) wrote: >>> 1. add in %pr0yWe >>> rpm -e --justdb --nodeps glibc >>> 2. add in %install >>> cd $RPM_BUILD_ROOT/ >>> mkdir usr/lib64/glibc >>> mv lib64/*.so.* usr/lib64/glibc/ >>> 3. add in %post >>> install /usr/lib64/glibc/*.so.* /lib64/ ... > Doing so risks breaking the system completely. > > When doing glibc upgrades using rpm you need to compile the entire tool chain including bash before you do the update. > > Are you using the latest rpm? > The later rpm version’s do a better job updating packages > > You should have tried to work with/ around rpm but what you did was to compromise rpm’s installed database. Yes I discovered that twice. The %pre script didn't work But point #2 did the job Performing the %pre script manually works Point #2 is essential for rpm -i --noscripts After that point #3 manually Not tested all programs but it looks like everything works Even rpm querying the database. Not tested with newer rpms except the toolchains which were built with glibc-2.39 Need confirmation by others -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page