LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-26-2005, 08:49 AM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
"Token" error when I run new pkgtool


When I use the Remove option of the newest (Current as of 24jan05, pkgname="pkgtools-10.1.0-i486-2.tgz") version of pkgtool, I get this error:

"Error: Expected at least 6 tokens for --menu, have 5. Use --help to list options."

A long list of filenames scrolls by, and then I get the "Package has been removed" message that normally follows a successful package removal. This is doubly strange since the script didn't even permit me to select a package *for* removal.

When I use the View option of the new pkgtool, I get this error:

"Error: Expected at least 7 tokens for --menu, have 6. Use --help to list options."

Again, I get along list of filenames, and no viewable package content.

The previous version of pkgtools (Current as of 04nov04, pkgname="pkgtools-10.1.0-i486-1.tgz"), this doesn't happen.

Can anyone steer me in the right direction? I tried comparing the old and new script in /sbin/pkgtool, but nothing jumped off the page. I saw that the "ls" command was used slightly differently, so I tried undoing all my ls-related aliases. However, that didn't change things. Yes, I did source the config files after editing them.

Thanks for any suggestions.
 
Old 01-26-2005, 11:51 AM   #2
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Here's the problem, apparently

I wrote one of the maintainers of pkgtools, and he quickly analyzed the problem by looking atthe files in my /var/log/packages/ directory. I have a number of "home-made" packages that I compiled from source and which I used checkinstall to install. When checkinstall would ask for a package description, I would write a few things that were meaningful to me -- but which apparently do *not* follow the Slackware convention for describing packages (look at a description of an official package and you'll see an example).

Apparently the new pkgtool script is less tolerant of this sort of deviation than the older versions were. I think a fix is in the offing, but, meanwhile, I'm going to set about cleaning up my package descriptions so that they conform. I don't want to lose package utility functionality and I trust the judgment of those Slackers who've gone before me.

If checkinstall includes instructions for properly naming a package, I didn't see them. However, I'm sure this is well documented elsewhere and I just missed it.

A word to the wise ... from one who is less so.
 
Old 01-26-2005, 01:51 PM   #3
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Confirmed

Jim Hawkins, one of the pkgtools maintainer-developers, was right on target with his diagnosis of my pkgtool problem.

If you have non-standard package descriptions in your /var/log/packages/ subdirectory, it is very likely that the latest version of pkgtools won't work properly, at least pending a fix from Jim. The version in question is pkgtools-10.1.0-i486-2.tgz.

The Slackware standard requires exactly 11 lines of information beginning with the first line following the "PACKAGE DESCRIPTION:" line. Each of these 11 lines should begin with the package name followed by a colon. For example:

Code:
PACKAGE NAME:     libtiff-3.7.1-i486-2
COMPRESSED PACKAGE SIZE:     463 K
UNCOMPRESSED PACKAGE SIZE:     1240 K
PACKAGE LOCATION: ./libtiff-3.7.1-i486-2.tgz
PACKAGE DESCRIPTION:
libtiff: libtiff (a library for reading and writing TIFF files)
libtiff:
libtiff: This package provides support for the Tag Image File Format (TIFF),
libtiff: a widely used format for storing image data.  Included is the libtiff
libtiff: library (for reading and writing TIFF files), and a collection of
libtiff: tools for working with TIFF images.
libtiff:
libtiff:
libtiff:
libtiff:
libtiff:
FILE LIST:
./
usr/
usr/bin/
usr/bin/tiff2rgba
[etc., etc., etc. ...]
Probably everybody knows this but me. But now I know, because I have just finished hand-editing 77 package descriptions to conform to the Slackware standard.

I had compiled numerous packages from source, using checkinstall to install. When checkinstall would prompt me for a package description, I should have followed the Slackware standard as above. I didn't, which caused pkgtool to break.

Using a text editor, I edited all my non-standard package descriptions within the files from /var/log/packages/, making them all conform to the Slackware standard. After doing that, the new, improved pkgtool utility works beautifully -- and, as everyone is saying, much more quickly.

Maybe this will help somebody else who was, um, slack with his or her package descriptions.

Thanks to Jim for pointing this out and not making me feel at all like a dummy. Good on ya, Jim.

Moral: Don't be slack, be Slack.
 
Old 01-27-2005, 07:15 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Thanks for this info
 
Old 01-27-2005, 03:29 PM   #5
jawkins
LQ Newbie
 
Registered: Jan 2005
Location: London
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Please see this thread:

http://www.linuxquestions.org/questions/showthread.php?s=&threadid=282998

Jim
 
  


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
"passwd: Authentication token manipulation error" Neowulf Linux - Newbie 8 03-05-2014 04:01 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM
[Bash] 09: value too great for base (error token is "09") Erhnam Programming 3 02-25-2005 04:25 AM
"Segmentation Fault" error message when trying to run Yahoo Messenger on Linux 8.0 niranjanpage Linux - Software 6 10-27-2003 01:21 AM

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

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

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