LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-04-2009, 08:06 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 526

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, 03: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, 03:49 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 526

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, 04:42 PM   #4
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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, 07:06 PM   #5
ljb643
Member
 
Registered: Nov 2003
Posts: 526

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, 03:36 PM   #6
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
@ljb643

It's up to you if you don't want to use the suggested address.
 
Old 10-21-2009, 02:25 PM   #7
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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, 07:35 PM   #8
ljb643
Member
 
Registered: Nov 2003
Posts: 526

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



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] pkgtool directory & xfce in slackware Asinine Linux - Newbie 2 09-02-2009 11:56 PM
Installing in Slackware with rpm/pkgtool Ariox Linux - Newbie 4 06-19-2006 12:19 AM
LAMP on Slackware;Use pkgtool or compile? Swift&Smart Slackware 2 03-20-2005 10:45 AM
where does pkgtool install slackware packages? salviadud Slackware 3 02-25-2005 11:58 AM
pkgtool 10.1 view option broken? cccc828 Slackware 27 01-27-2005 03:30 PM

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

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