LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   multilib glibc gcc upgrade (https://www.linuxquestions.org/questions/slackware-14/multilib-glibc-gcc-upgrade-810465/)

bmxcess 05-27-2010 09:23 AM

multilib glibc gcc upgrade
 
Hi all,

I'm wanting to keep my multilib slackware-current up to date. I've blacklisted glibc/gcc since I first installed the alien bob's compat32 packages.

If I want to upgrade glibc/gcc and still keep my 32bit compatibly intact, what is the correct procedure? Do I just repeat Bob's instructions on the docuwiki? I'm not sure if I understand the dependancy between my compat32 packages and the version of glibc/gcc. Should I only be worried about those packages that were built with the newer versions of glibc/gcc? i

I'm a little confused. btw kudos to the slackware team on their new release and of course alien bob)

Cheers

foodown 05-27-2010 09:34 AM

Yes. Whenever there's an update to one of the gcc packages that you have blacklisted on the changelog, just download the new version from Alien Bob's ftp. (Usually, he is up-to-date within minutes or hours, but I think it is a good practice to give him at least 36 hours to match whatever Pat does in the updates.) The you can do an 'upgradepkg --install-new --reinstall *.t?z' just like before.

I wrote a little script to upgrade all of my multilib packages beyond the core compiler components. Of course, it requires Alien Bob's compat32 tools, which are of course conveniently on his ftp right next to the gcc packages. It also requires curlftpfs for mounting your favorite mirror as a file system.

Code:

#!/bin/sh
# Update the tree with the most current packages from FTP server and install

/sbin/umount /root/compat32/mnt
rm -rf /root/compat32/*
mkdir /root/compat32/mnt
cd /root/compat32/mnt
/usr/local/bin/curlftpfs ftp://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-current /root/compat32/mnt
cd /root/compat32
/usr/sbin/massconvert32.sh -i /root/compat32/mnt/slackware
/sbin/umount /root/compat32/mnt
/sbin/upgradepkg --reinstall --install-new *-compat32/*.t?z

This script, of course, is not selective at all . . . it just upgrades everything, whether it has been changed or not. Perhaps a 'slackpkg' hack is in order for this sort of thing . . . then it could easily go right along with the changelog.

I suppose, to make this script better, there are many things which could be done, including making the path to use for the 'compat32' packages adjustable with a variable at the top, as well as the name of the mirror to be used . . . but whatever, you get the idea.

Didier Spaier 05-27-2010 09:41 AM

This is what I plan to do:
1) Upgrade to Slackware-13.1
2) Remove all (old) compatibility packages and install new ones instead

That will be easy as alien BOB already provides all packages and instructions I need already. Thanks Eric :cool:

Just follow his instructions again.

bmxcess 05-27-2010 09:48 AM

Thanks!

I'm a bit slow, but correct me if I've got it wrong: every time Alien Bob brings out the new multilib versions of gcc/glibc, upgrade all, grab a copy of current from a local mirror and run Bob's massconvert then install?

thanks again


All times are GMT -5. The time now is 01:46 AM.