LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2014, 07:25 PM   #1
eternauta2001
LQ Newbie
 
Registered: Dec 2008
Distribution: Slackware Linux 13.1
Posts: 18

Rep: Reputation: 7
tracepkg in Slackware 14.1 (problem and solution)


Occasionally I use the tracepkg application to list the dependencies of installed packages. The last version is available in http://pkgs.dr.ea.ms/Slackware/Any/t.../1.1.1/source/. However, in Slackware 14.1, it fails when it scans the list of packages.

The problem is in the fillFileArray function which is located at /usr/libexec/tracepkg/core-functions, specifically in the parsing of the command file which generates one more space in their output. For example, en Slackware 14.1:
Code:
$ file /usr/bin/xpdf
/usr/bin/xpdf: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
but in Slackware 13.1:
Code:
$ file /usr/bin/xpdf
/usr/bin/xpdf: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
The quickest solution is to change in /etc/tracepkg/tracepkg.conf the line
Code:
ENC=LSB
by
Code:
ENC="LSB "
In this way tracepkg works again.
 
Old 02-18-2014, 02:13 AM   #2
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.0
Posts: 452

Rep: Reputation: Disabled
Thanks - a useful tool. I will install it and make the suggested corrections (I'm on 14.0)
 
Old 11-03-2014, 05:21 PM   #3
pedro77
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
core-function fixed

core-function fixed https://dl.dropboxusercontent.com/u/...core-functions

previous fix is unneeded, but it can be mantained

thanks
 
Old 11-03-2014, 07:34 PM   #4
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: SlackMATE on top of Slackware64-14.2
Posts: 444

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
There is another little problem in core-functions for 64bit.

lib64 has to be added to TEMPFILELIST

Orig:
Code:
TEMPFILELIST=(`sed -n -e "1,/^FILE\ LIST:/!{/\/$/!{s/ /$SPACEFIX/g; /\/bin\/\|\/lib\/\|\/sbin\/\|\/libexec\/\|^lib\/\|^bin\/\|^sbin\//p}}" $1`)
It's a quick hack but it works for Slackware64:
Code:
TEMPFILELIST=(`sed -n -e "1,/^FILE\ LIST:/!{/\/$/!{s/ /$SPACEFIX/g; /\/bin\/\|\/lib\/\|\/lib64\/\|\/sbin\/\|\/libexec\/\|^lib\/\|^lib64\/\|^bin\/\|^sbin\//p}}" $1`)
Great tool. It is indispensable for setting up a container or a minimal system to play with.
If Pat is reading this please consider including it in the next release.

Cheers.
 
1 members found this post helpful.
  


Reply

Tags
dependencies, tracepkg


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
[SOLVED] NAS / Backup solution used by Slackware users Grischuna Slackware 31 01-07-2014 08:37 PM
Slackware 14.0 : Problem (and solution) with Intel FakeRAID MDPI314 Slackware 2 10-10-2012 10:04 PM
LXer: Slackbuilds: A Slackware solution LXer Syndicated Linux News 0 09-13-2007 01:50 AM
Easy solution for finder like windows in Slackware? Synesthesia Linux - Software 5 03-21-2005 11:42 AM
solution for partition for installing Slackware ICO Slackware 9 12-23-2003 04:53 PM

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

All times are GMT -5. The time now is 04:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration