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 05-09-2009, 08:54 AM   #1
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
SlackPkg trying to upgrade rpm2tgz-1.0-i486-1.txt in -current


For those who noticed that "slackpkg upgrade-all" with the -current version of Slackware is trying to upgrade the rpm2tgz-1.0-i486-1.txt package...

The problem seems to be in the update function in SlackPkg that creates the local pkglist file, since the rpm2tgz .txt file has the "tgz" sequence in its name.

I patched /usr/libexec/core-functions.sh as follows:
Code:
--- /usr/libexec/slackpkg/core-functions.sh	2009-04-25 21:56:26.000000000 -0300
+++ core-functions.sh	2009-05-09 10:52:57.000000000 -0300
@@ -749,7 +749,7 @@
 	#
 	echo -e "\tFormatting lists to slackpkg style..."
 	echo -e "\t\tPackage List: using $( basename $FILELIST ) as source"
-	grep ".t[blxg]z" $FILELIST| \
+	grep ".t[blxg]z$" $FILELIST| \
 		awk -f /usr/libexec/slackpkg/pkglist.awk |\
 		sed -e 's/^M//g' > ${TMPDIR}/pkglist
 	cp ${TMPDIR}/pkglist ${WORKDIR}/pkglist
And that seemed to solve the problem. I had to force a "slackpkg update" again to rebuild the local pkglist file.
 
Old 05-09-2009, 09:01 AM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Thanks niels - I have just noticed this problem myself - following your patch now - thanks again..

(I was looking here to see if anyone else had found this and posted on it. I was starting to think it was just me !)
 
Old 05-09-2009, 09:35 AM   #3
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by niels.horn View Post
Code:
--- /usr/libexec/slackpkg/core-functions.sh	2009-04-25 21:56:26.000000000 -0300
+++ core-functions.sh	2009-05-09 10:52:57.000000000 -0300
@@ -749,7 +749,7 @@
 	#
 	echo -e "\tFormatting lists to slackpkg style..."
 	echo -e "\t\tPackage List: using $( basename $FILELIST ) as source"
-	grep ".t[blxg]z" $FILELIST| \
+	grep ".t[blxg]z$" $FILELIST| \
 		awk -f /usr/libexec/slackpkg/pkglist.awk |\
 		sed -e 's/^M//g' > ${TMPDIR}/pkglist
 	cp ${TMPDIR}/pkglist ${WORKDIR}/pkglist
I think this patch is insufficient because the dot in the search patten means "any signal character" which is absolutely not what we want to mean. So let the dots be the dots:
Code:
--- /usr/libexec/slackpkg/core-functions.sh	2009-04-25 21:56:26.000000000 -0300
+++ core-functions.sh	2009-05-09 10:52:57.000000000 -0300
@@ -749,7 +749,7 @@
 	#
 	echo -e "\tFormatting lists to slackpkg style..."
 	echo -e "\t\tPackage List: using $( basename $FILELIST ) as source"
-	grep ".t[blxg]z" $FILELIST| \
+	grep "\.t[blxg]z$" $FILELIST| \
 		awk -f /usr/libexec/slackpkg/pkglist.awk |\
 		sed -e 's/^M//g' > ${TMPDIR}/pkglist
 	cp ${TMPDIR}/pkglist ${WORKDIR}/pkglist
Maybe there are other places have the same problem...
 
Old 05-09-2009, 09:43 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
I had noticed the "dot" error, but I left it alone.
Now the grep command will only pick lines that end with ".t[blxg]z", not any file that ends with "t[blxg]z".

You're right, since we are correcting it, might as well do it the best way possible, to avoid other problems in the future
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
hal-0.5.11-i486-2 in current shows no volume devices jazzor Slackware 10 10-10-2008 07:32 AM
Updating to -current with slackpkg macbeth8 Slackware 8 04-04-2008 07:14 PM
Using slackpkg to Upgrade to Slackware-Current x94qvi Slackware 8 10-20-2007 07:53 PM
slackpkg update = slackware-current? trashbird1240 Slackware 2 04-24-2007 08:50 AM
slackware-current: rpm2tgz screwing up carboncopy Slackware 3 04-17-2006 09:16 PM

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

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