LinuxQuestions.org
Visit Jeremy's Blog.
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 12-22-2004, 01:05 PM   #16
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612

Install new, remove old, install new again -that's what upgradepkg does, but this won't always work since you can't overwrite a file while it's in use. This is a good way to hose your system, if you try to replace something basic, like libc.
 
Old 01-23-2005, 03:59 PM   #17
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Rep: Reputation: 2
pkgtools 10.1 VIEW not working

I have experienced this problem (rapid blinking cursor using view with no text) with no less that 9 machines now (that equates to 100% of my linux machines) that I have upgraded pkgtools to 10.1 either from scratch or various old versions - can't find any consistency except for it doesn't work with pkgtools 10.1 and it does every other version.

Does anyone have any idea what the workaround is to this or if there is a new version of pkgtools in the works that addresses this?

Thanks
 
Old 01-23-2005, 08:27 PM   #18
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
Here is what I did to resolve it:

As root:

cp /sbin/pkgtool pkgtool.org #make backup just in case
(I use .org signifying 'original')

Then I downloaded the pkgtools-10.0.0 from the (a) slack ftp and extracted it.
Entered the /pkgtools-10.0.0-i486-1/sbin/ directory.

Opened up the pkgtool script.

I copied lines 192 to 221
Code:
 if [ "$REPLY" = "View" ]; then # line 192

to the next 

fi # line 221
Then I pasted them into the file /sbin/pkgtool overwritting lines 190 to 215 . - save and exit
(NOTE: the first and last line that I copied over in the 10.1.0 script are the same as
the first and last line that I copied from the 10.0.0 script.)
(I REALLY hope that makes scence ).

Double check the line numbers, but thats where they were for me.
SO, in the 10.1.0 pkgtool script, I am using the working 10.0.0 "view" routine.

It works and it works faster like 10.1.0 should.

good luck.
-tw

Last edited by tw001_tw; 01-23-2005 at 08:37 PM.
 
Old 01-24-2005, 11:21 AM   #19
hungry tom
LQ Newbie
 
Registered: Apr 2003
Location: Germany
Posts: 12

Rep: Reputation: 0
Hi!

The problem is caused by the description file of "checkinstall" (quotation marks). I think, everybody who installed it should have this problem. Try this patch against pkgtool-10.1.0:

--- /sbin/pkgtool.orig 2004-11-04 04:32:15.000000000 +0100
+++ /sbin/pkgtool 2005-01-24 18:04:49.000000000 +0100
@@ -194,7 +194,7 @@
Pkgtool scans your system to determine which packages you have \
installed and prepares a list for you." 0 0
echo 'dialog $DEFITEM --item-help --menu "Please select the package you wish to view." 17 68 10 \' > $TMP/viewscr
- (cd $ADM_DIR/packages; grep '' `ls` | sed -n '/PACKAGE DESCRIPTION:/{n;s/^\([^:]*\):[^:]* *:/\1\n/;s/ */ /g;p;}') | {
+ (cd $ADM_DIR/packages; grep '' `ls` | sed -n '/PACKAGE DESCRIPTION:/{n;s/^\([^:]*\):[^:]* *:/\1\n/;s/ */ /g;s/\"//g;p;}') | {
while read name; do
read BLURB
echo " \"$name\" \"$BLURB\" \"View information about package $name\" \\" >> $TMP/viewscr
 
Old 01-24-2005, 02:59 PM   #20
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
Quote:
Originally posted by hungry tom
Hi!

The problem is caused by the description file of "checkinstall" (quotation marks). I think, everybody who installed it should have this problem. Try this patch against pkgtool-10.1.0:
You appear to be correct. I do not have checkinstall installed, and I can use pkgtool-->view with no problems.

Slack-current since 9.0, custom 2.6.10 kernel

Installing checkinstall breaks pkgtool for me, and uninstalling it fixes pkgtool again.

I propose we get pkgtool fixed instead of checkinstall for the long term stability of pkgtool. If an improperly written package can break pkgtool, it's only a matter of time before it happens again.
 
Old 01-24-2005, 08:37 PM   #21
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
Hold on - complete screw up - back to the drawing board.

-tw

Last edited by tw001_tw; 01-24-2005 at 09:10 PM.
 
Old 01-24-2005, 11:24 PM   #22
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
hungry tom, exactly what is it that messes up the routine -what's the error with the checkinstall slack-desc file?
 
Old 01-25-2005, 03:18 AM   #23
hungry tom
LQ Newbie
 
Registered: Apr 2003
Location: Germany
Posts: 12

Rep: Reputation: 0
It seems, they have corrected it already:

a/pkgtools-10.1.0-i486-2.tgz: Fixed a couple bugs and sped up pkgtool more.
 
Old 01-25-2005, 05:19 AM   #24
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
I just had to revert from pkgtools-10.1.0-i486-2.tgz to pkgtools-10.1.0-i486-1.tgz.

The pkgtools-...-1 package works fine for me and has since I installed it back in November, but the newest pkgtools-...-2 package is broken on my 10.1 beta (current) system.

FYI, my system started as a Slackware 10 stock system and has been regularly updated to current.

Last edited by dhave; 01-25-2005 at 05:21 AM.
 
Old 01-25-2005, 05:53 AM   #25
hungry tom
LQ Newbie
 
Registered: Apr 2003
Location: Germany
Posts: 12

Rep: Reputation: 0
Quote:
The pkgtools-...-1 package works fine for me and has since I installed it back in November,
Ok, but the view option should definitely break if you install checkinstall. It's not checkinstall's fault, it's just the description has quotation marks (") inside, which confuse pkgtools-10.1.0-i486-1 when it generates the dialog.

Quote:
but the newest pkgtools-...-2 package is broken on my 10.1 beta (current) system.
This is strange, how exactly is it broken?
 
Old 01-25-2005, 08:25 AM   #26
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Quote:
Originally posted by hungry tom
Ok, but the view option should definitely break if you install checkinstall. It's not checkinstall's fault, it's just the description has quotation marks (") inside, which confuse pkgtools-10.1.0-i486-1 when it generates the dialog.



This is strange, how exactly is it broken?
Well, to express it in technical terms, it goes bonkers.

It (pkgtools-10.1.0-i486-2) loads fine, but if I select the Remove option, I get a black console screen of filenames that flashes by in an instant. Then I get the standard "Packages have been removed" message that normally follows a successful package removal.

The thing is, this happens when I haven't asked Pkgtool to remove anything at all, but rather just to generate a list of installed packages, which is what choosing Remove does first when things are working properly.

However, with the previous release (pkgtools-10.1.0-i486-1, which I installed in November 2004), everything works fine, including the View function. And, yes, I do have checkinstall installed and use it frequently.
 
Old 01-25-2005, 10:22 AM   #27
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
I am happy to report that the patched pkgtool solves the problem for me :-)

cccc828
 
Old 01-27-2005, 03:30 PM   #28
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
wget --exclude-directories option broken? (fc2) fsbooks Fedora 3 06-20-2009 06:08 PM
dns named.conf: "view" unknown option rioguia Linux - Networking 16 11-02-2004 11:04 AM
Where is the file:lists all installed pkg's-like 'pkgtool-view'? BearClaw Slackware 2 07-19-2003 10:06 AM
"View Recent Posts" option wanted deadseasquirrel LQ Suggestions & Feedback 6 04-23-2003 06:00 PM
View New Posts link broken? wrc1944 LQ Suggestions & Feedback 2 09-11-2002 11:44 AM

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

All times are GMT -5. The time now is 10:15 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