SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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...
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..
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.