LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-27-2021, 07:06 PM   #166
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352

Quote:
Originally Posted by drgibbon View Post
I'm not sure I understand completely. With the default settings, there are two issues that I can see:

1) `slackpkg update` always acts like there are updates, even when there's nothing to update.
Specifically, on every run (with VERBOSE=3) I see something like this:
Code:
Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.9Nstx0/CHECKSUMS.md5.asc differ
But why should they differ if nothing changed? On the user end, the outcome is that unlike with regular slackpkg, I never see this prompt anymore:
Code:
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?
2) `slackpkg check-updates` pulls the whole ChangeLog
With the default slackpkg+ settings, `slackpkg check-updates` will download the entire ChangeLog from each repo to see if there are updates. That's pretty inefficient/slow, couldn't slackpkg+ just use the method of comparing cached vs upstream CHECKSUMS.md5.asc file on both 14.2 and -current? Or at a minimum, use that method if slackpkg-15 is detected?
I could not fix it becouse slackpkg+ 1.7.0d0 had to work both with slackware 14.2 and slackware 15, and the fix is an huge patch.

Now that slackpkg+ 1.7.1 no longer supports slackware 14.2, I can fix it.

please test that release

Code:
# wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
It works for me. If it works for someother I will package it as 1.7.3 (not today since it's my birthday )

Last edited by zerouno; 02-27-2021 at 07:21 PM. Reason: fixed bad link in wget
 
Old 02-27-2021, 08:51 PM   #167
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Sounds like a good idea not to try and support 14.2/15.0 at the same time, too much work!

I tested the new code, seems to work nicely for the official Slackware packages when I did `slackpkg update`, but it didn't check any of my other repos (slackpkg+dev and alienbob), even though SLACKPKGPLUS=on.

Thanks for looking at it though, check it out whenever. And happy birthday !
 
Old 02-28-2021, 01:46 AM   #168
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by zerouno View Post

please test that release

Code:
# wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
It works for me. If it works for someother I will package it as 1.7.3 (not today since it's my birthday )
Happy birthday.


I use slackpkg+ with third-party repositories and tested the new release.
"slackpkg update" works as advertised (question appears if nothing changed) and "slackpkg check-updates" is much quicker.

Thanks for the continued good work on slackpkg+.
 
1 members found this post helpful.
Old 02-28-2021, 02:14 AM   #169
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by gegechris99 View Post
I use slackpkg+ with third-party repositories and tested the new release.
"slackpkg update" works as advertised (question appears if nothing changed)
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).

check-updates is super fast too, very nice!
 
Old 02-28-2021, 03:00 AM   #170
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by drgibbon View Post
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).

check-updates is super fast too, very nice!
This is what I am seeing. It's checking all repositories with meta data. (highlighted in red)
Code:
slackpkg update

Updating the package lists...
        Downloading...
                Signatures
'/home/slackware/slackware64-current/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5.asc'
'/home/non-slack/slackbuilds/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-nonslack.asc'
2021-02-28 16:51:31 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-slackpkgplus.asc" [1]
'/home/non-slack/multilib/current/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-multilib.asc'
'/home/non-slack/alienbob_restricted/current/x86_64/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-restricted.asc'
'/home/non-slack/alienbob/current/x86_64/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-alienbob.asc'

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

Last edited by chrisretusn; 02-28-2021 at 03:03 AM.
 
Old 02-28-2021, 03:08 AM   #171
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?

This is what I get now.
Code:
slackpkg check-updates ; echo $?

Slackpkg: Updated packages are available since last check.

  [ Repository               ] [ Status               ]
    slackware                    AVAILABLE UPDATES    
    nonslack                        Up to date        
    slackpkgbeta                    Up to date        
    slackpkgplus                    Up to date        
    multilib                        Up to date        
    restricted                      Up to date        
    alienbob                     AVAILABLE UPDATES    

0
Code:
SLACKPKGPLUS=off slackpkg check-updates ; echo $?

Slackpkg: Updated packages are available since last check.

1
Edit: Using a patched version of slackpkg-15.0.1_testC-noarch-1
patches here, here and here

Last edited by chrisretusn; 02-28-2021 at 03:38 AM.
 
Old 02-28-2021, 03:24 AM   #172
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by drgibbon View Post
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).
Yes it does.

Code:
$ slackpkg update

Updating the package lists...
        Downloading...
                Signatures
    File: slackware            -> CHECKSUMS.md5.asc    .. Cached.
    File: slackpkgplus         -> CHECKSUMS.md5.asc    .. Cached.
    File: alienbob             -> CHECKSUMS.md5.asc    .. Cached.
    File: restricted           -> CHECKSUMS.md5.asc    .. Cached.

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?
You can see that slackpkg+ cycles through the repositories I have defined in my slackpkgplus.conf.

Without CACHE option, it's the same:

Code:
$ slackpkg update

Updating the package lists...
        Downloading...
                Signatures
2021-02-28 10:24:24 URL:https://slackware.nl/slackware/slackware64-current/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5.asc" [1]
2021-02-28 10:24:25 URL:http://slakfinder.org/slackpkg+15/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-slackpkgplus.asc" [1]
2021-02-28 10:24:25 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-alienbob.asc" [1]
2021-02-28 10:24:25 URL:https://slackware.nl/people/alien/restricted_sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-restricted.asc" [1]

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?
 
Old 02-28-2021, 03:38 AM   #173
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Quote:
Originally Posted by drgibbon View Post
I did `slackpkg update`, but it didn't check any of my other repos
Can you pist the evidence?

Quote:
And happy birthday !
Thanks you all


Quote:
Originally Posted by chrisretusn
Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?
Yes I will do
 
Old 02-28-2021, 08:53 AM   #174
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by zerouno View Post
Can you post the evidence?
I take it back, the problem was not with slackpkg+ but my configuration. Not sure exactly what, but I reset to a standard config and set things up again, and it works nicely:

Code:
# slackpkg update

Updating the package lists...
        Downloading...
                Signatures
2021-02-28 22:51:25 URL:http://mirrors.us.kernel.org/slackware/slackware64-current/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5.asc" [1]
2021-02-28 22:51:26 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5-slackpkgplus.asc" [1]
2021-02-28 22:51:27 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5-alienbob.asc" [1]

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?
WOo, thanks!
 
Old 02-28-2021, 09:23 AM   #175
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Which configuration you had?
 
Old 02-28-2021, 09:39 AM   #176
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
I got rid of /etc/slackpkg/slackpkgplus.conf and started fresh, but looking again I probably didn't chmod +x the new slackpkgplus.sh in /usr/libexec/slackpkg/functions.d/ the first time around, since chmod -x on it produces the same behaviour I was seeing. In any case, there's no problem with slackpkg+.
 
Old 02-28-2021, 01:46 PM   #177
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Does this address all of the issues with vanilla slackpkg? https://slackpkg.org/slackpkg-15.0.1_testD-noarch-1.txz
 
Old 03-01-2021, 01:19 PM   #178
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Quote:
Originally Posted by chrisretusn View Post
Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?
slackpkg-15.0.1_testD-noarch-1 does not add the fix, so I will wait to add to slackpkg+
 
1 members found this post helpful.
Old 03-01-2021, 02:34 PM   #179
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
slackpkg+-1.7.3-noarch-1mt.txz released in slackpkg+dev branch
 
2 members found this post helpful.
Old 03-02-2021, 03:27 AM   #180
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
I had to read your post a few times. LOL.
Quote:
Originally Posted by zerouno View Post
slackpkg-15.0.1_testD-noarch-1 does not add the fix, so I will wait to add to slackpkg+
I missed that this part

Quote:
Originally Posted by zerouno View Post
slackpkg+-1.7.3-noarch-1mt.txz released in slackpkg+dev branch
My excuse? This post. LOL

I was testing and saw a "0", then after reading again.
 
  


Reply



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] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

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

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