LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgrading to Apr 14 KDE 4.8.2 - did I mess up? (http://www.linuxquestions.org/questions/slackware-14/upgrading-to-apr-14-kde-4-8-2-did-i-mess-up-948241/)

jamesf 06-02-2012 10:33 PM

Upgrading to Apr 14 KDE 4.8.2 - did I mess up?
 
Yesterday I upgraded to KDE 4.8.2 by finally catching up to -current again.

The Changelog had some notes:
Code:

NOTE:  After upgrading, the following obsolete KDE packages should be removed:
  kdeaccessibility, kdebase, kdebase-runtime, kdebase-workspace,
  kdebindings, kdeedu, kdegraphics, kdeutils, koffice, konq-plugins,
  kopete-cryptography, polkit-kde-1, and all koffice-l10n-*.

I executed those notes by doing a removepkg on the old packages. removepkg showed some lines like (not exact):
Code:

WARNING: file xxx changed after installation
I remembered one of the many such lines. After I was finished with the notes I looked for the file mentioned. It was gone. I grepped /var/log/packages for the file. It was listed in kde-baseapps-4.8.2-i486-1.

I did a 'slackpkg reinstall kde-baseapps-4.2.8-i486-1' and the file re-appeared in its normal place.

A bit worried, I wrote some horrible bash scripts to help me locate missing files (run as root, output is in missingfiles.txt in the /root directory):
verifypackages.sh
Code:

#!/bin/bash
# verifypackages.sh
#  For every file in /var/log/packages calls a script to verify
#  that all files listed in the package exist.
#  If called script exit code is 1 list the package name.

for name in `ls /var/log/packages` ;
do
        /root/verifypackagefiles.sh </var/log/packages/${name} ;
        [[ $? == 1 ]] && echo ${name} ;
done >/root/missingfiles.txt

and verifypackagefiles.sh
Code:

#!/bin/bash
# verifypackagefiles.sh
#  Reads a package installation log.  For every line after the text FILE LIST:
#  verifies that the file exists.  If it does not it echoes the file name and
#  sets the exit code to 1.

infilelist=0
export retcode=0

while read aline
do
        if [[ ${infilelist} == 1  && \
              ${aline} != install/* && \
              ${aline} != *.new && \
              ${aline} != *.orig ]] ; then
                if ! [ -a "/${aline}" ] ; then
                              echo " " ${aline} does not exist ;
                        export retcode=1;
                      fi
        fi

        if [ "${aline}" == "FILE LIST:" ] ; then
                infilelist=1;
        fi
done
exit ${retcode};

Ignoring all of the entries in /dev that devs-2.3.1-noarch-25 doesn't install (?), there are about 1,000 files "missing." Almost all of them are in /usr/doc/HTML/en. Here's a short snippet:
Code:

  usr/doc/HTML/en/ark/ does not exist
  usr/doc/HTML/en/ark/ark-mainwindow.png does not exist
  usr/doc/HTML/en/ark/index.docbook does not exist
  usr/doc/HTML/en/ark/man-ark.1.docbook does not exist
  usr/doc/HTML/en/ark/index.cache.bz2 does not exist
ark-4.8.2-i486-1
  usr/doc/HTML/en/blinken/ does not exist
  usr/doc/HTML/en/blinken/blinken_nickprompt.png does not exist
  usr/doc/HTML/en/blinken/blinken_helpbutton.png does not exist
  usr/doc/HTML/en/blinken/index.docbook does not exist
  usr/doc/HTML/en/blinken/index.cache.bz2 does not exist
  usr/doc/HTML/en/blinken/blinken_highscoresbutton.png does not exist
  usr/doc/HTML/en/blinken/blinken1.png does not exist
  usr/doc/HTML/en/blinken/blinken_accesskeys.png does not exist
  usr/doc/HTML/en/blinken/blinken2.png does not exist
  usr/doc/HTML/en/blinken/blinken_quitbutton.png does not exist
blinken-4.8.2-i486-1

Skipping the devs-2.3.1, ca-certificates, and glibc packages that are listed, should I reinstall all of the listed packages to get the documentation back? I've done a couple on a test machine and the missing files re-appeared.

Did I do something wrong on the upgrade? I simply did:
Code:

slackpkg update
slackpkg install-new
slackpkg upgrade-all
removepkg <packages listed in Changelog NOTES>

Thanks for reading and thanks, too, for any advice.

alekow 06-03-2012 03:25 PM

If I were you, I wouldn't worry and upgraded to kde 4.8.3 using Alien Bob's packages:
http://alien.slackbook.org/blog/kde-4-8-3-packages/

jamesf 06-03-2012 09:43 PM

Thanks, but I'm trying to stay pretty close to -current. Less to clean up that way, hopefully.

I was hoping that someone else using KDE would run those scripts and see if they got similar results.

Of course, there's one error in them: verifypackages.sh calls /home/james/verifypackagefiles.sh and should instead call /root/verifypackagefiles.sh.

Oh, well. Who's perfect? ;vD

jamesf 06-05-2012 02:12 AM

Did anyone using -current notice anything similar? Are the files mentioned in the snippet above there?

thanks.


All times are GMT -5. The time now is 11:56 PM.