LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-02-2012, 10:33 PM   #1
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
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.

Last edited by jamesf; 06-05-2012 at 02:11 AM. Reason: fixed script error
 
Old 06-03-2012, 03:25 PM   #2
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Rep: Reputation: 75
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/
 
Old 06-03-2012, 09:43 PM   #3
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236

Original Poster
Blog Entries: 1

Rep: Reputation: 57
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
 
Old 06-05-2012, 02:12 AM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236

Original Poster
Blog Entries: 1

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

thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move apr & apr-util install locations? jbennett Linux - Newbie 3 04-20-2012 10:02 AM
APR-util with APR - configure error on Linux nicky77 Linux - Software 1 03-10-2010 10:25 AM
Did I configure apr, apr-util, and subversion correctly? Quip11 Linux - Server 2 06-11-2009 08:38 AM
GNOME VS KDE software, what a mess? numtre Linux - Newbie 18 02-07-2009 10:31 AM
Upgrading php in deb stable..., Is this gonna mess everything up? heelNtoin Debian 3 08-02-2004 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration