LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 10-04-2009, 09:06 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 60

Rep: Reputation: Disabled
pkgtool option bug, Slackware 13


If you are trying to do an automated or scripted Slackware 13 install with pkgtool, be aware of the following new problem. The manual page for pkgtool now lists the command options only with 2 dashes, like "--sets", instead of "-sets" as in older versions. (The single-dash options do still work.) But two of the option names were mis-typed in the manual page. (Or perhaps the manual has the intended syntax, and the command itself is wrong.) If you use the options as documented, then pkgtool will loop using 100% CPU time doing nothing, which it does on any incorrect option, e.g "pkgtool --help".

Instead of the documented --ignore_tagfiles use --ignore-tagfiles
Instead of the documented --source_mounted use --source-mounted
(--source_dir, --target_dir, and --source_device are correct as documented.)
 
Old 10-05-2009, 04:04 PM   #2
hartz4ever
LQ Newbie
 
Registered: Nov 2006
Location: Aachen, Germany
Distribution: Slackware64 13.0
Posts: 5

Rep: Reputation: 0
case...esac without *)

pkgtool is a shell script that uses a case...esac statement to process command line parameters inside a while loop

Code:
189: while [ $# -gt 0 ]; do
190:  case "$1" in
but there is no *) to catch all unhandled stuff at the end. But with an unknown parameter $# is still !=0, so the while loop simply cannot terminate. I've simply added

Code:
*)
    echo "unknown parameter"
    exit 1
;;
before the next "esac" and now pkgtool bails out. Perhaps you should file a bug report.
 
Old 10-06-2009, 04:49 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Perhaps you should file a bug report.
Yes, I should. However, I've looked through www.slackware.com, and all the information files that come with my (paid subscription!) Slackware CD set, etc, and I see no indication that bug reports are welcome. Now, I know that "volkerdi -at- slackware.com" has been used on these forums for that purpose, but it feels wrong to me to use that without some official indication that it is the right thing to do.
 
Old 10-10-2009, 05:42 PM   #4
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 13.37
Posts: 653
Blog Entries: 1

Rep: Reputation: 59
Quote:
Originally Posted by ljb643 View Post
Yes, I should. However, I've looked through www.slackware.com, and all the information files that come with my (paid subscription!) Slackware CD set, etc, and I see no indication that bug reports are welcome. Now, I know that "volkerdi -at- slackware.com" has been used on these forums for that purpose, but it feels wrong to me to use that without some official indication that it is the right thing to do.

You can send your bug report to security@slackware.com as mentioned in the contact section of www.slackware.com

Also refer to this post. Patrick Volkerding himself answered on this forum two posts later.
 
Old 10-10-2009, 08:06 PM   #5
ljb643
Member
 
Registered: Nov 2003
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
You can send your bug report to security@slackware.com as mentioned in the contact section of www.slackware.com
But it says there:
Quote:
Use this address to report security issues with Slackware.
Which this certainly is not.

Instructions for general bug reporting would be nice. (A bug tracking system would be even nicer, like launchpad or bugzilla.) Just my opinion.
 
Old 10-11-2009, 04:36 PM   #6
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 13.37
Posts: 653
Blog Entries: 1

Rep: Reputation: 59
@ljb643

It's up to you if you don't want to use the suggested address.
 
Old 10-21-2009, 03:25 PM   #7
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 13.37
Posts: 653
Blog Entries: 1

Rep: Reputation: 59
Hello,

I had a look at the pkgtool script and here's the part of interest to you:

Code:
# Here, we read the list of arguments passed to the pkgtool script.
if [ $# -gt 0 ]; then # there are arguments to the command
 while [ $# -gt 0 ]; do
  case "$1" in
  -sets | --sets)
   DISK_SETS=$(echo $2 | tr "[A-Z]" "[a-z]") ; shift 2 ;;
  -source_mounted | --source-mounted)
   SOURCE_MOUNTED="always" ; shift 1 ;;
  -ignore_tagfiles | --ignore-tagfiles)
   ASK="never" ; shift 1 ;;
  -tagfile | --tagfile)
   USETAG=$2 ; shift 2 ;;
  -source_dir | --source_dir)
   SOURCE_DIR=$2 ; shift 2 ;;
  -target_dir | --target_dir)
   TARGET_DIR=$2
   ADM_DIR=$TARGET_DIR/var/log
   shift 2 ;;
  -source_device | --source_device)
   SOURCE_DEVICE=$2 ; shift 2 ;;
  esac
 done
So definitively it's a bug in the man pages.

As you are reluctant to send a mail to security@slackware.com, I'll do it myself.
 
Old 10-21-2009, 08:35 PM   #8
ljb643
Member
 
Registered: Nov 2003
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gegechris99 View Post
So definitively it's a bug in the man pages.

As you are reluctant to send a mail to security @ slackware.com, I'll do it myself.
Thank you.

Whether it is a manual error or a script bug is up to the Slackware maintainer(s), however in my opinion the manual is correct and the script is wrong. The other options use underscores, not dashes, in both old and new form options. If it is --source_dir, it should be --source_mounted, not --source-mounted. But that isn't how it is coded.

The other part that should be fixed is that if the script is invoked with an unknown argument it should not just loop.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pkgtool directory & xfce in slackware Asinine Linux - Newbie 2 09-03-2009 12:56 AM
Installing in Slackware with rpm/pkgtool Ariox Linux - Newbie 4 06-19-2006 01:19 AM
LAMP on Slackware;Use pkgtool or compile? Swift&Smart Slackware 2 03-20-2005 11:45 AM
where does pkgtool install slackware packages? salviadud Slackware 3 02-25-2005 12:58 PM
pkgtool 10.1 view option broken? cccc828 Slackware 27 01-27-2005 04:30 PM


All times are GMT -5. The time now is 06:07 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
Open Source Consulting | Domain Registration