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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Talk is cheap, patch here: (against slackpkg-2.80.2-noarch-3)
Code:
--- /ext4/slackware_rsync/slackware64-current/slackware64/ap/slackpkg-2.80.2-noarch-3/usr/libexec/slackpkg/core-functions.sh 2009-07-27 09:33:49.000000000 +0800
+++ /usr/libexec/slackpkg/core-functions.sh 2009-08-22 07:41:30.106445523 +0800
@@ -567,7 +567,11 @@
done
;;
upgrade-all)
- for i in $(cut -f2 -d\ ${TMPDIR}/tmplist); do
+ 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
givepriority ${i}
[ ! "$FULLNAME" ] && continue
Before applying this patch, slackpkg will loop 800+ times which will take minutes for one "upgrade-all" on my box. After this patch, it only loop 5 times... There is even no time for spinning bar to appear ;D
Although I haven't tested it so much (I reverted two packages and "new slackpkg" can find them) but I think it would have no regressions. Any feedback is strongly welcome.
Are you updating from a local mirror, such as I do from my Slackware64 -current
mirror; or are you updating via the internut (Great Chinese Firewall version)?
I applied the patch and it took maybe 2 seconds for the line:
Code:
Looking for packages to upgrade. Please wait... DONE
to pop up in my terminal. Then the spinner appeared and BAM! the window with
the packages listed was there. And, yes, they are exactly the ones from the
ChangeLog that I had not updated, minus my blacklist such as kernel.
Thanks, and I too think you should send it to PiterPUNK. It's still his choice
what to do, and probably won't happen until Slackware-13.0 comes out.
Are you updating from a local mirror, such as I do from my Slackware64 -current
mirror; or are you updating via the internut (Great Chinese Firewall version)?
Local mirror. But, anyway, rsync will have to go through the Great Firewall right?
Quote:
Originally Posted by Bruce Hill
I applied the patch and it took maybe 2 seconds for the line:
Code:
Looking for packages to upgrade. Please wait... DONE
to pop up in my terminal. Then the spinner appeared and BAM! the window with
the packages listed was there. And, yes, they are exactly the ones from the
ChangeLog that I had not updated, minus my blacklist such as kernel.
Glad to here that Now I know the patch works on your box at least
Quote:
Originally Posted by Bruce Hill
Thanks, and I too think you should send it to PiterPUNK. It's still his choice
what to do, and probably won't happen until Slackware-13.0 comes out.
Yes, I mailed Piter. But it seems Piter is out for a vacation or something like that? I sent "search for .new file" patch to him weeks ago but don't get his reply yet...
rsync doesn't have to go through the firewall, if you just use it local -- which I do
for everything where the files are important. Maybe you have better bandwidth in
Beijing that I do in a village here in Dali. Heck, the phone wires coming in to my
house to use the ADSL modem look like chicken intestines, so I doubt the copper
quality is very good. And they're hung all over roofs, trees, etc.
PiterPUNK most probably wouldn't submit any changes until after Slackware-13.0 anyway.
Pat surely has a freeze on anything that's not broken, and important.
Now you have niels.horn (also in PiterPUNK's area) using it with good results.
PiterPUNK really does appreciate us using and submitting suggestions for slackpkg.
Although I haven't tested it so much (I reverted two packages and "new slackpkg" can find them) but I think it would have no regressions. Any feedback is strongly welcome.
Feedback:
I am updating a desktop machine expecting to see the 8/20 thunderbird-2.0.0.23 patch from an LAN mirror via NFS. I replaced the 1 line (-) with the 5 lines (+) in /usr/libexec/slackpkg/core-functions.sh and got the following response.
Code:
root@slacker:~# slackpkg upgrade-all
Looking for packages to upgrade. Please wait... cut: /tmp/slackpkg.BK9mE8/pkglist: No such file or directory
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
root@slacker:~#
When I backed out the changes it worked as expected. Did I do something wrong?
PiterPUNK most probably wouldn't submit any changes until after Slackware-13.0 anyway.
Pat surely has a freeze on anything that's not broken, and important.
Yes, it's reasonable.
Quote:
Now you have niels.horn (also in PiterPUNK's area) using it with good results.
PiterPUNK really does appreciate us using and submitting suggestions for slackpkg.
Yes, I think every developer's dream is getting people's suggestions and patches. Maybe he is busy this time. But I don't think he will miss it. Never mind~;-)
root@slacker:~# slackpkg upgrade-all
Looking for packages to upgrade. Please wait... cut: /tmp/slackpkg.BK9mE8/pkglist: No such file or directory
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
root@slacker:~#
When I backed out the changes it worked as expected. Did I do something wrong?
Thanks~ So I know the patch won't work with slackpkg-2.70.5-noarch-1. Make it to generate pkglist and apply my patch is just painful...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.