LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-24-2014, 04:24 AM   #1
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 922

Rep: Reputation: 92
Installing or uninstalling package breaks the system


Hi all,

I'm running Slackware64 14.1 on several computers and I observed this issue on each one of them: I have a .tgz package for TeXmacs, created using src2pkg. Whenever I install or uninstall this package (using installpkg or removepkg), my system breaks down. The icons of XFCE menus disappear, for example. The programs start misbehaving or not running at all. Although I wasn't able to reproduce it, once I even got "command not found" error for "ddate", for example. The logs in /var/log do not give any information. I can only fix the situation by going down to runlevel 1 and then up again (or, a restart of course).

By the way, I remember this sort of behaviour occurring in previous versions of Slackware, though I don't remember which packages were involved (I never had to time to investigate it carefully).

Here is the doinst.sh script of the package, which I believe is created automatically by src2pkg:

Code:
#!/bin/sh

# Figure out our root directory
ROOTDIR=$(pwd)
unset CHROOT
if [ "${ROOTDIR}" != "/" ] ; then
  ROOTDIR="${ROOTDIR}/"
  CHROOT="chroot ${ROOTDIR} "
fi

# update the applications menu database
if [ -x usr/bin/update-desktop-database ] ; then
 ${CHROOT} usr/bin/update-desktop-database -q usr/share/applications 2> /dev/null
fi


# update the gtk-icon-cache
if [ -x usr/bin/gtk-update-icon-cache ] ; then
  for dir in usr/share/icons/* ; do
    if [ -d $dir ]; then
       ${CHROOT} usr/bin/gtk-update-icon-cache --quiet -f -t $dir 2> /dev/null
    fi
  done
fi


# update the mime database
if [ -x usr/bin/update-mime-database ] ; then
 ${CHROOT} usr/bin/update-mime-database -q usr/share/mime 2> /dev/null
fi
I think this is the part which is most likely to be the root of the problem but I cannot see how. Any ideas?

Note: On Slackware 14.1 I can no more compile TeXmacs successfully (due to Guile being upgraded to version 2.0), so I can not make any tests using a freshly compiled package.
 
Old 01-24-2014, 04:38 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,231

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
I'd suggest making a Slackware package using the SlackBuild provided @slackbuilds.org.
 
Old 01-24-2014, 04:50 AM   #3
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56
i think the problem is the first block of doints.sh, i've never seen using chroot; and the slackbuild linked by didier is the same without the chroot block
 
1 members found this post helpful.
Old 01-24-2014, 05:06 AM   #4
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 922

Original Poster
Rep: Reputation: 92
Thanks, I think I now see the reason: Instead of using the system-wide directories, this script updates the databases by scanning the to-be-installed local directories which are populated by TeXmacs-related files only.

I must have used src2pkg either because TeXmacs wasn't available at SB.org at the time or it was out-of-date. I'll try to test it with the latest src2pkg again. If the problem reoccurs I'll report it to gnashley. I'm marking the thread as "solved". Thanks again.
 
Old 01-24-2014, 11:09 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,755

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
Yes, please, I wuld like to know if that is indeed the problem.
 
Old 01-24-2014, 12:39 PM   #6
enorbet
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 14 is Main OpSys on Main PC, 2ndary are OpenSuSe 13 and SolydK
Posts: 691

Rep: Reputation: 286Reputation: 286Reputation: 286
Frankly I wish OP would rename the title. It is very misleading about one of the main benefits of Slackware IMHO. It's almost like saying "My Slackware system keeps disappearing" and later mentioning you're running an init script that "rm -rf /*" :P
 
  


Reply

Tags
error, install, sr2pkg, texmacs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Upgraded sdl package breaks mouse in OpenTTD elesmod Slackware 8 06-22-2013 10:28 PM
fontconfig-compat32 package breaks VLC build Daedra Slackware 1 09-17-2009 05:23 AM
Uninstalling a package Yossi Stern Linux - Newbie 2 05-11-2005 08:20 AM
Uninstalling Package djljjm Linux - Newbie 1 02-16-2005 11:53 AM
Uninstalling a none RPM package Wolf Linux - Newbie 7 07-21-2002 09:30 PM


All times are GMT -5. The time now is 09:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration