LinuxQuestions.org
Review your favorite Linux distribution.
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 09-15-2009, 12:43 AM   #16
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45

Quote:
Originally Posted by gegechris99 View Post
@ grissiom,

I'm sorry but it seems that your patch does not work for security updates to a stable release.

In my case, I used mirror: http://slackware.osuosl.org/slackware-13.0/.

Your patch failed to detect the 3 patches since release of 13.0 (namely, mozilla-firefox, seamonkey and seamonkey-solibs).

Could the reason be that file PACKAGES.TXT is not updated for a stable release (it's rather patches/PACKAGES.TXT) contrary to -current?
Could you attach the output of "grep seamonkey-solibs /var/lib/slackpkg/pkglist"? Thanks!
 
Old 09-15-2009, 02:55 AM   #17
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 728
Blog Entries: 3

Rep: Reputation: 77
Hello Grissiom,

I've upgraded the packages yesterday: I removed your patch and then slackpkg correctly showed the 3 packages to upgrade.

Do you still want the result of "grep seamonkey-solibs /var/lib/slackpkg/pkglist"?

If so, I'll post it tonight as I'm not at home at the moment
 
Old 09-15-2009, 09:04 AM   #18
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
@Grissiom,

Just another feedback: I am using the patched version on -current and that picked up the packages to upgrade.
I have not patched SlackPkg on my 'stable' machine.
 
Old 09-15-2009, 09:31 AM   #19
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by gegechris99 View Post
Hello Grissiom,

I've upgraded the packages yesterday: I removed your patch and then slackpkg correctly showed the 3 packages to upgrade.

Do you still want the result of "grep seamonkey-solibs /var/lib/slackpkg/pkglist"?

If so, I'll post it tonight as I'm not at home at the moment
Yes, I still want the result of "grep seamonkey-solibs /var/lib/slackpkg/pkglist". Could you please also attach the result of "ls -l /var/lib/slackpkg/pkglist"? I still could not figure out what triggered the bug...
 
Old 09-15-2009, 09:32 AM   #20
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by niels.horn View Post
@Grissiom,

Just another feedback: I am using the patched version on -current and that picked up the packages to upgrade.
I have not patched SlackPkg on my 'stable' machine.
Thanks for your feedback. I run -current and there is nothing wrong as well But I don't have a 'stable' system installed..
 
Old 09-15-2009, 10:14 AM   #21
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
grissiom,

I have replied twice, and both times I got some message about
my token has expired and press the back button. There was nothing
here, so I refreshed and posted again ... same result. I am too
tired to focus correctly, so I will just post some output and you
can evaluate it and we'll go from there tomorrow:
Code:
root@silas64:~# slackpkg update

Updating the package lists...
        Downloading...       
                        Copying ChangeLog.txt...

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)? y      

                List of all files
                        Copying patches/MANIFEST.bz2...
                        Copying slackware64/MANIFEST.bz2...
                        Copying extra/MANIFEST.bz2...      
                        Copying pasture/MANIFEST.bz2...    
                        Copying testing/MANIFEST.bz2...    
                Checksums                                  
                        Copying CHECKSUMS.md5...           
                        Copying CHECKSUMS.md5.asc...

                WARNING: Your mirror appears incomplete and is missing the
                         CHECKSUMS.md5 file. We recommend you change your mirror
                         so that package integrity can be verified against
                         CHECKSUMS.md5.

                Package List
                        Copying FILELIST.TXT...
grep: /tmp/slackpkg.M65RB3/CHECKSUMS.md5: No such file or directory

                ERROR: No CHECKSUMS.md5 and no FILELIST.TXT.
                       We strongly recommend that you change your mirror
                       to prevent security problems.

root@silas64:~# grep 'file:' /etc/slackpkg/mirrors
file://server2/ftp/pub/Linux/Slackware/slackware64-13.0/

root@silas64:~# grep 'CHECKSUMS.md5' /server2/ftp/pub/Linux/Slackware/slackware64-13.0/patches/

root@silas64:~# grep 'FILELIST.TXT' /server2/ftp/pub/Linux/Slackware/slackware64-13.0/patches/

root@silas64:~# ls /server2/ftp/pub/Linux/Slackware/slackware64-13.0/patches/
CHECKSUMS.md5  CHECKSUMS.md5.asc  FILE_LIST  MANIFEST.bz2  PACKAGES.TXT  packages/  source/

root@silas64:~# ls /server2/ftp/pub/Linux/Slackware/slackware64-13.0/patches/packages/
mozilla-firefox-3.5.3-x86_64-1.txt  mozilla-firefox-3.5.3-x86_64-1.txz.asc  seamonkey-1.1.18-x86_64-1.txz      seamonkey-solibs-1.1.18-x86_64-2.txt  seamonkey-solibs-1.1.18-x86_64-2.txz.asc
mozilla-firefox-3.5.3-x86_64-1.txz  seamonkey-1.1.18-x86_64-1.txt           seamonkey-1.1.18-x86_64-1.txz.asc  seamonkey-solibs-1.1.18-x86_64-2.txz

root@silas64:~# grep seamonkey-solibs /var/lib/slackpkg/pkglist
slackware64 seamonkey-solibs 1.1.17 x86_64 1 seamonkey-solibs-1.1.17-x86_64-1 ./slackware64/l txz

root@silas64:~# diff -u /usr/libexec/slackpkg/core-functions.sh /usr/libexec/slackpkg/core-functions.sh~
--- /usr/libexec/slackpkg/core-functions.sh     2009-08-22 09:08:24.091148641 +0800
+++ /usr/libexec/slackpkg/core-functions.sh~    2009-07-27 09:33:49.000000000 +0800
@@ -567,11 +567,7 @@
                        done
                ;;
                upgrade-all)
-                       cut -f2-6 -d\  ${TMPDIR}/tmplist > ${TMPDIR}/lpkg
-                       cut -f2-6 -d\  ${TMPDIR}/pkglist > ${TMPDIR}/spkg
-                       potential=$(cat ${TMPDIR}/{s,l}pkg | sort | uniq -u | cut -f1 -d\  - | uniq -d )
-                       #for i in $(cut -f2 -d\  ${TMPDIR}/tmplist); do
-                       for i in $potential; do
+                       for i in $(cut -f2 -d\  ${TMPDIR}/tmplist); do

                                givepriority ${i}
                                [ ! "$FULLNAME" ] && continue
 
Old 09-15-2009, 11:47 AM   #22
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Finally worked out a patch for this problem. But I have to admit that this patch is "stupid and ugly". So if anyone there have a better idea, please tell me.

The "patch":
please edit your /usr/libexec/slackpkg/core-functions.sh around line 569 to something like this:
Code:
   568                 ;;
   569                 upgrade-all)
   570                         cut -f2-6 -d\  ${TMPDIR}/tmplist > ${TMPDIR}/lpkg
   571                         cut -f2-6 -d\  ${TMPDIR}/pkglist > ${TMPDIR}/spkg
   572                         grep -E '^patches' ${TMPDIR}/pkglist | cut -f2-6 -d' ' > ${TMPDIR}/ppkg
   573                         # use packages in patches mask anther packages.
   574                         for i in $(cut -f1 -d' ' ${TMPDIR}/ppkg); do
   575                                 sed -i -e "/^$i /d" ${TMPDIR}/spkg
   576                         done
   577                         # bring the patches back
   578                         cat ${TMPDIR}/ppkg >> ${TMPDIR}/spkg
   579                         potential=$(cat ${TMPDIR}/{s,l}pkg | sort | uniq -u | cut -f1 -d\  - | uniq -d )
   580                         #for i in $(cut -f2 -d\  ${TMPDIR}/tmplist); do
   581                         for i in $potential; do
Hope this time all would be Ok
 
Old 09-15-2009, 11:49 AM   #23
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
@Bruce Hill

I think you need to change your mirror as there are so many warnings Thanks for your help anyway
 
Old 09-15-2009, 03:26 PM   #24
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 728
Blog Entries: 3

Rep: Reputation: 77
Hello Grissiom,

Thank you for the new patch. I'll test it when the next 13.0 security update occurs.

For the record, here are the data you requested:

Code:
chris@darkstar ~ $ grep seamonkey-solibs /var/lib/slackpkg/pkglist
patches seamonkey-solibs 1.1.18 i486 2 seamonkey-solibs-1.1.18-i486-2 ./patches/packages txz
slackware seamonkey-solibs 1.1.17 i486 1 seamonkey-solibs-1.1.17-i486-1 ./slackware/l txz
chris@darkstar ~ $ ls -l /var/lib/slackpkg/pkglist
-rw-r--r-- 1 root root 86135 2009-09-14 20:44 /var/lib/slackpkg/pkglist
 
Old 09-15-2009, 06:58 PM   #25
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by gegechris99 View Post
Hello Grissiom,

Thank you for the new patch. I'll test it when the next 13.0 security update occurs.

For the record, here are the data you requested:

Code:
chris@darkstar ~ $ grep seamonkey-solibs /var/lib/slackpkg/pkglist
patches seamonkey-solibs 1.1.18 i486 2 seamonkey-solibs-1.1.18-i486-2 ./patches/packages txz
slackware seamonkey-solibs 1.1.17 i486 1 seamonkey-solibs-1.1.17-i486-1 ./slackware/l txz
chris@darkstar ~ $ ls -l /var/lib/slackpkg/pkglist
-rw-r--r-- 1 root root 86135 2009-09-14 20:44 /var/lib/slackpkg/pkglist
Ok. Thank you for testing my patch ;-)
 
Old 09-20-2009, 10:37 AM   #26
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 728
Blog Entries: 3

Rep: Reputation: 77
Hello Grissiom,

I tested your latest patch on Slackware 13.0 with the security update of 19th September. It works

Thanks again.

I hope it somehow will make it into a future version of slackpkg.
 
  


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
[SOLVED] "slackpkg upgrade-all" finishes with WARNING Bruce Hill Slackware 4 08-01-2009 09:06 PM
upgrade to kernel 2.6.16.1 : "make bzImage" print "parse error" math_physics Red Hat 2 06-29-2007 11:04 PM
Blacklisting packages with "slackpkg"??? Southpaw76 Slackware 2 05-19-2007 03:50 PM
"Shutdown" and "Restart" option missing after upgrade hansalfredche Mandriva 8 11-02-2006 07:23 AM
How to use synaptic "smart upgrade or "apt-get dist-upgrade" PenguinMolester Ubuntu 2 04-04-2005 02:11 PM


All times are GMT -5. The time now is 08:45 AM.

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