Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-24-2014, 05:24 AM   #1
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 954

Rep: Reputation: 102Reputation: 102
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 script of the package, which I believe is created automatically by src2pkg:


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

# 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

# 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

# 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
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, 05:38 AM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2rc on Lenovo Thinkpad W520
Posts: 6,946

Rep: Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195Reputation: 2195
I'd suggest making a Slackware package using the SlackBuild provided
Old 01-24-2014, 05:50 AM   #3
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 323

Rep: Reputation: 72
i think the problem is the first block of, 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, 06:06 AM   #4
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 954

Original Poster
Rep: Reputation: 102Reputation: 102
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 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, 12:09 PM   #5
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,844

Rep: Reputation: 529Reputation: 529Reputation: 529Reputation: 529Reputation: 529Reputation: 529
Yes, please, I wuld like to know if that is indeed the problem.
Old 01-24-2014, 01:39 PM   #6
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware has beern Main OpSys for decades while testing others to keep up
Posts: 1,269

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
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


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

All times are GMT -5. The time now is 12:34 PM.

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