Register a domain and help support LQ
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, 04:24 AM   #1
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 939

Rep: Reputation: 98
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, 04:38 AM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 5,639

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

Rep: Reputation: 68
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, 05:06 AM   #4
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 939

Original Poster
Rep: Reputation: 98
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, 11:09 AM   #5
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,805

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

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
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 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 10:07 AM.

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