LinuxQuestions.org
Help answer threads with 0 replies.
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 04-16-2009, 07:10 AM   #1
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Problem with latest -current patch - Error in Slackpkg?


Hi,

Today I tried to install the latest update in -current (pkgtools-12.34567890-noarch-2.tgz) with slackpkg, but it returned with an error that the md5sum was not matching.

After some research, I found out that in the 'checkpkg' function in /usr/libexec/slackpkg/core-functions.sh the 'MD5ORIGINAL' variable receives the md5sum of both the package to be installed and the source package (source/a/pkgtools/pkgtools-12.34567890-noarch-2.tgz).

A temporary solution is to turn of md5sum checking in Slackpkg in /etc/slackpkg/slackpkg.conf: change CHECKPKG=on to CHECKPKG=off
 
Old 04-16-2009, 04:55 PM   #2
+Alan Hicks+
Member
 
Registered: Feb 2005
Distribution: Slackware
Posts: 72

Rep: Reputation: 54
Thanks for the bug report. It's been mentioned to PiterPUNK already. After looking into this, I noticed that this only ever happens when the Slackware package and the source archive both have the same name. Thus, pkgtools encounters this bug but the majority of packages don't. The following diff should fix the problem.

http://www.slackware.com/~alan/core-...ns.sh.diff.txt

I've already sent it to PiterPUNK and expect to hear something back from him soon.
 
Old 04-16-2009, 06:18 PM   #3
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 89
Alan,

ok, looking at the diff it should fix the problem.
I'm still at work (no machine running -current here) but will try it as soon as I get home.

Thanks for the quick reply!
 
Old 04-16-2009, 07:41 PM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 89
And, as expected, the patch works fine!

Just upgraded my -current machine at home with the latest package

<edit>
Eh, well, almost fixed

It updates the package, but tries to update it twice. Probably there is some other point in Slackpkg where it gets confused by the duplicated name.
</edit>

In an attempt to give some additional info, the output after "slackpkg upgrade-all" is like this:

Code:
Package: pkgtools-12.34567890-noarch-2.tgz
	Downloading pkgtools-12.34567890-noarch-2.tgz...
...
...
2009-04-16 21:41:18 (16.0 MB/s) - `/var/cache/packages/pkgtools-12.34567890-noarch-2.tgz.asc' saved [197]

	Upgrading pkgtools-12.34567890-noarch-2...
basename: extra operand `.tbz'
Try `basename --help' for more information.

+==============================================================================
| Upgrading pkgtools-12.34567890-noarch-1 package using ./pkgtools-12.34567890-noarch-2.tgz
+==============================================================================

Pre-installing package pkgtools-12.34567890-noarch-2...

Removing package /var/log/packages/pkgtools-12.34567890-noarch-1-upgraded-2009-04-16,21:41:18...

Verifying package pkgtools-12.34567890-noarch-2.tgz.
Installing package pkgtools-12.34567890-noarch-2.tgz:
...
...
Package pkgtools-12.34567890-noarch-2.tgz installed.

Package pkgtools-12.34567890-noarch-1 upgraded with new package ./pkgtools-12.34567890-noarch-2.tgz.

Package: pkgtools-12.34567890-noarch-2.tgz
	Downloading pkgtools-12.34567890-noarch-2.tgz...
...
...
	Upgrading pkgtools-12.34567890-noarch-2...

+==============================================================================
| Skipping package pkgtools-12.34567890-noarch-2 (already installed)
+==============================================================================
The lines in red probably have nothing to do with this problem, but might be interesting as well.

Last edited by niels.horn; 04-16-2009 at 07:55 PM. Reason: not completely fixed...
 
Old 04-17-2009, 05:34 AM   #5
arny
Bluewhite64
 
Registered: Jun 2006
Location: Baia Mare, Maramures, Romania
Distribution: Bluewhite
Posts: 87

Rep: Reputation: 17
Quote:
Originally Posted by niels.horn View Post
The lines in red probably have nothing to do with this problem, but might be interesting as well.
The pkgtools-12.34567890-noarch-2 package should fix this problem.
 
  


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
How to patch my redhat Enterprise Linux 5.1 to the latest patch level? shaybery Red Hat 4 10-05-2008 02:04 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
alsa problem after the latest slackware-current update perfect_circle Slackware 8 04-26-2006 02:15 PM


All times are GMT -5. The time now is 02:39 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 Google+: linuxquestions
Open Source Consulting | Domain Registration